Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using .net 4 projects with 4.5 target?

Tags:

c#

.net

windows-8

I am new to .NET and c#.

There are so many good examples out there made for .NET 4.0, but when I do NUGET it complains that the target .net version mismatches.

I am developing for Windows 8 and Windows Phone 8, so they use .NET 4.5.

Is there any way to just convert the old projects and force them to use .NET 4.5? Or do I need to wait for the author to update his project?

like image 578
NoWhereToBeSeen Avatar asked Jan 19 '26 02:01

NoWhereToBeSeen


1 Answers

You can develop for Windows 8 with .NET 4.0, that's not a problem. Also you can load .NET 4.0 projects into Visual Studio 2012 and then change the properties of the project to .NET 4.5 if you want to. Also all APIs should be usable by themselves without modification.

So do you have a project that is for .NET 4.5 and you're trying to add .NET 4.0 stuff from NUGET or what?

Naturally WinRT projects are totally different from "normal" .NET projects, so they will need converting.

like image 126
Sami Kuhmonen Avatar answered Jan 21 '26 16:01

Sami Kuhmonen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!