Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Target Framework Version in ASP.NET Core app

Hi how can I change Target Framework Version in ASP.NET Core app in Visual Studio 2015 ?

I would like to target only "NETStandard.Library": "1.6.1".

My project.json frameworks section looks like:

  "frameworks": {
    "netcoreapp1.1": {
      "dependencies": {
        "Microsoft.NETCore.App": {
          "type": "platform",
          "version": "1.1.0"
        }
      }
    }
  }

and my xproj file target .NET 4.5.2

TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
like image 589
mskuratowski Avatar asked Feb 14 '26 00:02

mskuratowski


1 Answers

Update for VS2017 is that you can edit your .csproj file and manually change <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> to <TargetFrameworkVersion>netstandard1.6</TargetFrameworkVersion>.

More information about specifying different target frameworks and switching between them can be found here.

like image 83
AbsoluteSpace Avatar answered Feb 16 '26 19:02

AbsoluteSpace



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!