I created two projects using Visual Studio 2015 RC
- a class library
MyLib
which its target framework is.NET Framework 4.5.1
an ASP.NET 5 project
MyWebApp
which referencesMyLib
inproject.json
:"frameworks": { "dnx451": { "dependencies": { "Lib01": "1.0.0-*" } }, }
When I trying to build MyWebApp
, an warning occurs:
MSB3274: The primary reference "C:\MyWebApp\src\MyLib\bin\Debug\MyLib.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.5.1" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".
The warning will disappear if I change the target framework of MyLib
to 4.5.
It seems like the MyWebApp
is targeting .net framework 4.5 rather than 4.5.1?
How to make MyWebApp
references a library targeting .net 4.5.1?