You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
However, I am trying to use a project that was created with :
Updated global.json
Updated project.json (bumped all assemblies to Beta6)
Deleted/regenerated project.json.lock
Corrected EF errors (namespace moves, ValueGeneratedOnAdd, etc)
Removed ErrorPageOptions.ShowAll from middleware config
The app runs at this point. But I have the need to consume a 4.6 library, so, I:
Add a new ClassLibrary to the solution (Windows class library, targeting 4.6)
Add a reference from MVC project to ClassLibrary
Set framework to dnx46 in project.json
After saving project.json, references under dnx46 update correctly and restore.
At this point, I can no longer run the app. If I start with a debugger, I get a 500. If I start without debugging, I get the following:
The current runtime target framework is not compatible with 'WebApplication6'.
Current runtime Target Framework: 'DNX,Version=v4.5.1 (dnx451)'
Type: CLR
Architecture: x86
Version: 1.0.0-beta6-12256
Please make sure the runtime matches a framework specified in project.json
Installed, active/default on my machine:
Active Version Runtime Architecture OperatingSystem Alias
------ ------- ------- ------------ --------------- -----
1.0.0-beta5 clr x64 win
1.0.0-beta5 clr x86 win
1.0.0-beta5 coreclr x64 win
1.0.0-beta5 coreclr x86 win
1.0.0-beta6 clr x64 win
* 1.0.0-beta6 clr x86 win default
1.0.0-beta6 coreclr x64 win
1.0.0-beta6 coreclr x86 win
Are there other bits I need to touch to get dnx46 working?
The text was updated successfully, but these errors were encountered:
Finally - and not sure if this helps - when I remove the DLL from the project, remove the dependency from project.json, and move back to dnx451, I noticed this warning: Warning The primary reference "C:\Users\James\Documents\Visual Studio 2015\Projects\WebApplication6\src\ClassLibrary1\bin\Debug\ClassLibrary1.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5". WebApplication6 C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets 1819
However, I am trying to use a project that was created with :
The app runs at this point. But I have the need to consume a 4.6 library, so, I:
After saving project.json, references under dnx46 update correctly and restore.
At this point, I can no longer run the app. If I start with a debugger, I get a 500. If I start without debugging, I get the following:
Installed, active/default on my machine:
Are there other bits I need to touch to get dnx46 working?
The text was updated successfully, but these errors were encountered: