I'm currently in progress of migrating a class library project to dotnet cli (RC2) from DNX (RC1). Previously, the project referenced the .NET v4.5.1 framework libraries, and the project.json
file looks like this:
"frameworks": {
"net451": {
"frameworkAssemblies": {
"System.Runtime": "4.0.10.0",
"System.Web": "4.0.0.0",
"System.DirectoryServices": "4.0.0.0",
"System.DirectoryServices.AccountManagement": "4.0.0.0",
"System.ServiceModel": "4.0.0.0",
"System.ServiceModel.Security": "4.0.0.0"
}
}
}
Now as far as I'm aware, (and I could be wrong,) unlike DNX, the new dotnet Cli doesn't support .NET 4.5.1, and instead supports .NET Standard.
So problem is, .NET Standard doesn't have all the libraries I want. What do I have to change so I can reference the .NET 4.5.1 framework libraries? I read about the imports statement, but I can't get it to work. Here is what I have so far (updated):
"frameworks": {
"net451": {
"frameworkAssemblies": {
"System.Runtime": "4.0.10.0",
"System.Web": "4.0.0.0",
"System.DirectoryServices": "4.0.0.0",
"System.DirectoryServices.AccountManagement": "4.0.0.0",
"System.ServiceModel": "4.0.0.0",
"System.ServiceModel.Security": "4.0.0.0"
}
},
"netstandard1.5": {
"imports": [ "dnxcore50", "portable-net451+win8" ]
}
}
I am a bit lost on what else I need to do... Any ideas?