c# - ASP.NET 5 Web Application that references the new Class Library (package) -


i in process of creating large solution contains asp.net 5 mvc web app targets following frameworks:

  "frameworks": {     "dnx451": { },     "dnxcore50": { }   }, 

i have several of new class library (package) in solution business layer, data layer, etc.. of these libraries target following frameworks:

  "frameworks": {     "net451": { },     "dotnet5.4": {       "dependencies": {         "microsoft.csharp": "4.0.1-beta-23516",         "system.collections": "4.0.11-beta-23516",         "system.linq": "4.0.1-beta-23516",         "system.runtime": "4.0.21-beta-23516",         "system.threading": "4.0.11-beta-23516"       }     }   } 

i have few test projects target following frameworks mvc web app does:

  "frameworks": {     "dnx451": { },     "dnxcore50": { }   }, 

after doing research found project mvc app , test libraries should target dnx , projects act class libraries should keep defaults , target net/dotnet5.4.

can please tell me doing wrong because mvc web application unable reference items class libraries (dal, bll) unless add dnx451 them...

you have "dnxcore50" in web application , "dotnet5.4" in dll, different sets of referenced libraries. either class library should target "dnxcore50" or web app should target "dotnet5.4" it's dependencies


Comments

Popular posts from this blog

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -