Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Change framework to 4.6.2

$
0
0

I generated a simple WebAPI using the aspnet yoeman generator and wanted to change the framework to run on 4.6.1 instead of netcoreapp1.0.
I removed the Microsoft.NETCore.App dependency.

dotnet restore then dotnet build and it says "error DOTNET1011: Framework not installed: .NETFramework,Version=v4.6.2 in" (The framework is installed, I get the result on 2 different machines)

What do I need to do to run on 4.6.2.

"frameworks": {
     "netcoreapp1.0": {
       "imports": [
             "dotnet5.6",
             "portable-net45+win8"
            ]
       }
},

"frameworks": {
       "net462": {
              "imports": [
                       "dotnet5.6",
                       "portable-net45+win8"
                        ]
                     }
},


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>