I created an ASP.NET Core RC2 Class Library, named MyHelpers, and got the following on project.json:
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
},
"frameworks": {
"netstandard1.5": {
"imports": [
"dnxcore50",
"portable-net452+win81"
]
}
}
I then created an ASP.NET Core RC2 Class Library for testing, named MyHelpersTests, and got the following in project.json:
"testRunner": "xunit",
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"xunit": "2.2.0-beta1-build3239",
"dotnet-test-xunit": "1.0.0-rc2-build10015",
"MyHelpers": "1.0.0"
},
"frameworks": {
"netstandard1.5": {
"imports": [
"dnxcore50",
"portable-net452+win81"
]
}
}
When I compile it I get the error:
Package dotnet-test-xunit 1.0.0-rc2-build10015 is not compatible with netstandard1.5 (.NETStandard,Version=v1.5). Package dotnet-test-xunit 1.0.0-rc2-build10015 supports:
- net451 (.NETFramework,Version=v4.5.1) - netcoreapp1.0 (.NETCoreApp,Version=v1.0) One or more packages are incompatible with .NETStandard,Version=v1.5.
What am I missing?
1.0.0-rc2-build10015
dotnet runner. github.com/xunit/xunit/issues/843 You should use the rc from the myget feed (myget.org/F/xunit/api/v3/index.json):"dotnet-test-xunit": "1.0.0-rc3-build10019"
. When using it, you also additionally need"Microsoft.NETCore.Platforms": "1.0.1-rc2-24027"
as dependency – Tseng