I have a DLL compiled under .NET 3.5 which represents a POCO data model. The client application is limited to .NET 3.5 and the DLL must be shared by both the client and server, so recompiling the DLL isn't an option.
I am attempting to rewrite the server REST API as an ASP.NET Core MVC project (using the 1.0 release and the Preview 2 tools under VS2015). I tried updating the project.json with the so-called "bin syntax" as shown below, but the package restore log shows a bunch of errors such as:
error: Package Microsoft.NETCore.App 1.0.0 is not compatible with net35 (.NETFramework,Version=v3.5). Package Microsoft.NETCore.App 1.0.0 supports: netcoreapp1.0 (.NETCoreApp,Version=v1.0)
"frameworks": {
"netcoreapp1.0": {
"imports": [ "dotnet5.6", "portable-net45+win8" ]
},
"net35": {
"bin": { "assembly": "c:\\source\\externaldllsdebug\\datadef.dll" }
}
I also tried setting up a nuget package in the DLL folder then making the folder a new nuget source. It opened the package fine but failed when it attempted to import the DLLs.