ritterim / stuntman

Library for impersonating users during development leveraging ASP.NET Identity.
https://rimdev.io/stuntman/
MIT License
294 stars 35 forks source link

Add .NETStandard 2.0 support #163

Closed joopscheer closed 6 years ago

joopscheer commented 6 years ago

The latest version 1.7.1 supports .NETStandard 1.4. It would be great if you can support for .NETStandard 2.0. Thank you!

kendaleiv commented 6 years ago

.NET Standard 2.0 is supported by targeting .NET Standard 1.4. Is it not working?

Also, the vnext branch targets .NET Standard 2.0 which also unifies everything into a single project. It's not released yet, though.

joopscheer commented 6 years ago

Nope. When I try to run my application a TypeLoadException is thrown.

Unhandled Exception: System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions' from assembly 'Microsoft.AspNetCore.Authentication.Cookies, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
   at RimDev.Stuntman.Core.IApplicationBuilderExtensions.UseStuntman(IApplicationBuilder app, StuntmanOptions options)
kendaleiv commented 6 years ago

A pre-release version of the vnext branch has been published to NuGet. It should support netcoreapp2.0.

joopscheer commented 6 years ago

Yes. That one works. Thank you!