aspnet-identity-mongo
aspnet-identity-mongo copied to clipboard
Upgrade solution to .NET Standard 2.0
🔥 You don't want to merge this as you would lose compatibility with .NET Core 1.x. Instead you need to adopt this branch :)
I upgraded the solution to the new projects and used .NET Standard 2.0. I tested that it can install to ASP.NET Core 2.0 project as well as to .NET Framework 4.6.1 project. I am using this in my project and it works fine.
I also did not find aby recommended deployment model to publish packages for .NET Standard 1.x and .NET Standard 2.0. So I did what MSFT did and changed the version of your package to 2.0.0.
The problematic part is tests, I don't have experience making nUnit tests work with VS as I always use xUnit, so maybe you can fix this much quicker. The tests run fine through re-sharper test runner (one of them fails, but it also failed for me even before I started migrating). Normal VS Test runner does not detect the tests for me.
I tried making the test projects .NET Core, but it does not run the tests, and I cannot find a runner for nUnit and .NET Core 2.0 (did not try the console, because I think you already have some workflow that I don't want to break). So I ended up with projects that are net461 and autogenerate bindings to libraries otherwise you will get a lot of Cannot load assembly errors).

Fix #34 Fix #35
Might be a good idea to also add a global.json? https://docs.microsoft.com/en-us/dotnet/core/tools/global-json
@g0t4 would be awesome to get this going and released in some form, pretty much waiting for this :/
@g0t4 thank you for writing this out. Do you have an idea when this branch will be merged/released? Thank you!
Any progress on this? This is blocking us from porting the last component to dotnet2.0. Would be great to get this package updated, thanks!