Migration auf .NET Framework 4.0: Tipps und Tricks

by Oliver 12. May 2010 15:14

Wenn nach dem Konvertieren einer Solution folgender Fehler auftritt:

   1: Error    86    The type or namespace name 'PortalBuilder' could not be found (are you missing a using directive or an assembly reference?)    C:\Projects\Camping.info\Tool.PortalBuildRunner\Program.cs    8    7    Tool.PortalBuildRunner

dann liegt es daran, dass das referenzierte Projekt als Target Framework schon .NET 4.0 ausgewählt hat, während das referenzierende Projekt noch auf eine ältere Version zielt. Zu sehen ist auch schön im Solution-Explorer, dass es hier ein Problem gibt:

missing-#assembly

Hier habe ich die Lösung gefunden: per Rechtsklick in die Projekteigenschaften gehen und dort das Framework 4.0 auswählen:

choose-4.0

Mal schauen, was noch auf uns wartet!

Oliver

enjoyed the post?

Tags:

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About Oliver

shades-of-orange.com code blog logo I build web applications using ASP.NET and have a passion for javascript. Enjoy MVC 4 and Orchard CMS, and I do TDD whenever I can. I like clean code. Love to spend time with my wife and our children. My profile on Stack Exchange, a network of free, community-driven Q&A sites

About Anton

shades-of-orange.com code blog logo I'm a software developer at teamaton. I code in C# and work with MVC, Orchard, SpecFlow, Coypu and NHibernate. I enjoy beach volleyball, board games and Coke.