dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.44k stars 10.02k forks source link

"does not support framework DNXCore,Version=v5.0" after upgrading from beta8 to RC #1106

Closed Daniel15 closed 8 years ago

Daniel15 commented 8 years ago

After upgrading one of my projects from beta8 to the RC, I'm seeing these build errors:

2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.FileProviders.Physical 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.Hosting.Abstractions 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.Hosting.Server.Abstractions 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.AspNet\project.json(14,30,14,30): DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.Http 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.AspNet\project.json(15,43,15,43): DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.Http.Abstractions 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.Http.Extensions 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json(6,44,6,44): DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.IISPlatformHandler 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.AspNet\project.json(16,29,16,29): DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.Mvc 6.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.AspNet\project.json(17,33,17,33): DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.Routing 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json(10,37,10,37): DNX Core 5.0 error NU1002: The dependency Microsoft.AspNet.StaticFiles 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Dnx.Compilation.Abstractions 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.Configuration 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.Configuration.CommandLine 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.Configuration.EnvironmentVariables 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.Configuration.Json 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.DependencyInjection 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.Logging 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.Logging.Abstractions 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.
2>C:\Users\danlo\Documents\Visual Studio 2015\Projects\RouteJs\src\RouteJs.Samples.Mvc6\project.json : DNX Core 5.0 error NU1002: The dependency Microsoft.Extensions.PlatformAbstractions 1.0.0-rc1-final in project RouteJs.Samples.Mvc6 does not support framework DNXCore,Version=v5.0.

Do I need to change dnxcore50 in my project.json to something else?

Daniel15 commented 8 years ago

My fault, I had two global.json files. The one at the root correctly used rc1-final, but the one in RouteJs.Samples.Mvc used beta8. Using two different versions of the SDK resulted in this strange behaviour.