-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to NetStandard 2 #28
Conversation
23a7788
to
8a4658d
Compare
8a4658d
to
88188d4
Compare
Sorry for the delay in reviewing and many many thanks @Shatl I would prefer to keep the .NET 3.5 build as an option so this does not become a .NET Core only project. For this I'd create a separate .NET Core solution and separate project files for .NET Core (or for 3.5, don't really care) and let them sit next to the other build. Don't worry about the complexity of building a release, it will be me who'll have to suffer. :-) I hope to find some time to build upon your change over the next few days, it shouldn't be too hard after you have done the bigger part of the work. Thanks again. |
@Shatl I've started to integrate your work in a new branch netstandard.2.0. My main development platform has always been Linux, so for the 3.5 framework stuff I've used xbuild and Mono and for the new NetStandard build I intend to use the dotnet CLI. For now I am willing to maintain two parallel build environments. The state right now is not finished, but this is where I am
I haven't even started to look into building nuget packages with separate assemblies for NetStandard, adapting the shell scripts I use for release tarballs or either AppVeyor or Travis CI. I have made a few changes to your PR:
|
One reason many tests failed was they couldn't find the test resources. The current working directory when running the tests via msbuild/xbuild is the directory containing the project file. For the dotnet CLI build it is the directory containing the assembly under test. Unfortunately the project files are three levels away from the solution file, the assemblies are four levels away. I have moved to .NET Framework project files so both are now four levels away. The next problem now stems from the placeholder tests where all tests fail with a stack trace like
I'll likely need some extra time to figure this out, |
Ah, Jon Skeet has solved that for me :-) - now all tests pass. https://stackoverflow.com/questions/7889228/how-to-prevent-reflectiontypeloadexception-when-calling-assembly-gettypes @Shatl , It would be good if you could confirm the dotnet build of the netstandard-2.0 still works for you and I'll look into getting CI working next. |
AppVeyor ☑️ |
Travis ☑️ Next up getting Nuget packaging do what I want. Once that is done I'm willing to merge the branch to master and cut a beta. Anybody who could confirm things are working well prior to that would be more than welcome. |
Just got back from vacation, will check on weekend. |
Thanks I've modified the nuspec files and the packages I get by running something like |
I've merged the netstandard-2.0 branch to master and will publish a beta soon. |
Breaking
Not tested / not working