i'm trying add vanilla class library (classlibrary1, built .net 4.6.1 although have tried 4.5.1) asp.net 5 web project(1.0.0-rc1-update1, though i've tried 1.0.0-rc1-final too) both part of same solution.
i tried usual add reference vs, doesn't work. this:
i tried using dnu wrap this:
dnu wrap classlibrary1\classlibrary1.csproj
this generated following project.json:
{ "version": "1.0.0-*", "frameworks": { "net461": { "wrappedproject": "../../classlibrary1/classlibrary1.csproj", "bin": { "assembly": "../../classlibrary1/obj/{configuration}/classlibrary1.dll", "pdb": "../../classlibrary1/obj/{configuration}/classlibrary1.pdb" } } } }
i added asp.net 5 project.json
"frameworks": { "dnx451": { "dependencies": { "classlibrary1": "1.0.0-*" } }, "dnxcore50": { "dependencies": { "classlibrary1": "1.0.0-*" } } }
when restore packages, error
nu1002 dependency classlibrary1 1.0.0 in project webapplication1 not support framework dnx,version=v4.5.1.
i can't add namespace or anything.
i tried more sensible approach of targeting net461
"frameworks": { "net461": { "dependencies": { "classlibrary1": "1.0.0-*" } }, "dnx451": { "dependencies": { } }, "dnxcore50": { "dependencies": { } } }
on surface seems working won't build minute classlibrary1 referenced.
if remove dnx frameworks, build won't work when try debug it. error message
the program '[9328] dnx.exe' has exited code 1 (0x1). program '[15060] iisexpress.exe' has exited code -1 (0xffffffff).
i have tried , went far hardcoding paths no avail
"frameworks": { "net461": { "dependencies": { "classlibrary1": "1.0.0-*" } }, "dnx451": { "bin": { "assembly": "../../classlibrary1/obj/{configuration}/classlibrary1.dll", "pdb": "../../classlibrary1/obj/{configuration}/classlibrary1.pdb" } } }
is there way of doing this?
i must missing something...
Comments
Post a Comment