The microsoft.aspnetcore.mvc 1.0.0 dependency does not support the .NETCoreApp structure, Version = v1.0

An attempt to create an ASP.NET Core project, given that it has just reached RTM. I created a new project using the Visual Studio 2015 Update 3 template called "ASP.NET Core Web Application (.NET Core)." Then I went to Nuget package manager and upgraded all package.json packages to 1.0.0. Visual Studio cannot restore the package with an error in the header of this message.

The following is project.json after updating Nuget packages:

 { "dependencies": { "Microsoft.AspNetCore.Mvc": "1.0.0", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0", "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", "Microsoft.Extensions.Configuration.FileExtensions": "1.0.0", "Microsoft.Extensions.Configuration.Json": "1.0.0", "Microsoft.Extensions.Logging": "1.0.0", "Microsoft.Extensions.Logging.Console": "1.0.0", "Microsoft.Extensions.Logging.Debug": "1.0.0", "Microsoft.NETCore.App": "1.0.0" }, "tools": { "Microsoft.AspNetCore.Server.IISIntegration.Tools": { "version": "1.0.0-preview-final", "imports": "portable-net45+win8+dnxcore50" } }, "frameworks": { "netcoreapp1.0": { "imports": [ "dotnet5.6", "dnxcore50", "portable-net45+win8" ] } }, "buildOptions": { "emitEntryPoint": true, "preserveCompilationContext": true }, "runtimeOptions": { "gcServer": true }, "publishOptions": { "include": [ "wwwroot", "Views", "appsettings.json", "web.config" ] }, "scripts": { "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ] } } 

Nuget Package Manager Output:

Microsoft.AspNetCore.Mvc 1.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp, Version = v1.0). Microsoft.AspNetCore.Mvc 1.0.0 package supports: - net451 (.NETFramework, Version = v4.5.1) - netstandard1.6 (.NETStandard, Version = v1.6)

+7
asp.net-core
source share
5 answers

Did you remember to install: .NET Core Tools for Visual Studio? You can get it here .

Take a look at the Scott Hanselman Blog .

+7
source share

NetCoreApp must be of type platform.

+1
source share

The goal should be solved: "Microsoft.NETCore.App": {"version": "1.0.0", "type": "platform"},

0
source share

Installing the latest version of .Net Core 1.0 seems to have done the trick for me on Windows.

https://github.com/dotnet/cli/issues/3703

You can get the latest version here.

https://www.microsoft.com/net

0
source share

I had to add these NuGet channels (not sure if both of them are needed) and then just rebuild:

 https://dotnet.myget.org/F/dotnet-core/api/v3/index.json https://dotnet.myget.org/F/dotnet-cli/api/v3/index.json 

I did this in Visual Studio:

  • Tools> Options> NuGet Package Manager> Package Sources
0
source share

All Articles