Reputation: 5224
I can't find this property for the asp.net app. The project properties has just several property and not the targeted framework. I've already spent 1 hour trying to find it... please help. Thanks
Upvotes: 0
Views: 995
Reputation: 32694
ASP.NET 5 apps can build for multiple frameworks at the same time, this is configured in project.json
file. Here I'm building for two frameworks:
{
frameworks: {
"aspnet50": { },
"aspnetcore50": { }
}
}
This builds for aspnet50 (similar to .NET 4.5.2) and aspnetcore50 ( .NET Core 2015).
I can remove one of those lines to only target one framework. The .NET Core Framework is the new modular framework, which is much smaller than the full .NET framework. .NET Core doesn't have everything, for example System.Drawing
. If you want to do graphics related stuff in .NET Core, then you'll need to look in NuGet for another package that accomplishes your needs. And a lot of stuff that was included in the full .NET Framework has been broken up into separate packages that are available on NuGet. You can use compiler directives to run different code for different frameworks if you have code that you want to run in one framework but not the other.
For more information about the project.json
file and the frameworks configuration, see the wiki.
Upvotes: 1