and razor-corefx test project can’t build sucesss ( error with use “ServiceStack, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null” “ServiceStack, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587”
at same project
)
my env is WIN7 X64 VS2017.5.2
If you’re not using OrmLite, you should be able to resolve this issue by removing from your App.Config:
<add namespace="ServiceStack.OrmLite" />
The razor-corefx project runs without issue, I’m not sure where you’re seeing the assembly reference issues since it uses the new MSBuild project format where those references don’t exist. So it’s not clear what issue you’re running into, you can try clearing out your NuGet cache and re-installing them again:
when I update to v5.0.3 (must reopen vs, it will get many warnings otherwise) ,it still show same error like above, and ServiceStack version in error list alway 5.0.0.0?
The issue was that the ServiceStack.Kestrel had a dependency on the main ServiceStack NuGet package which installs the .NET Framework version of ServiceStack.dll. I’ve removed the reference to the “ServiceStack” NuGet package so now it will just install the “ServiceStack.Core” NuGet package defined in the test project.
So if you clear your cache:
$ nuget locals all -clear
and delete the /packages folder and install ServiceStack v5.0.3 packages it should without issues.
The project builds but the tests only run when targeting .netcoreapp2.0 because it can’t resolve lib_uv module. Still looking for workarounds.