-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
netcoreapp3.0 support #1323
netcoreapp3.0 support #1323
Conversation
I think for now you'll have to add a step in azure-pipelines.yml to get it to build using .NET Core 3. Try adding this task directly below line 21:
|
I forked your repo and used a "dotnet build" task instead of "VSBuild" and got it to build, but ran into the following issue further down the line:
The configuration I used (in azure-pipelines.yml):
So this replaces the task "VSBuild@1" (line 29). |
@wdkr there are some differences I'm trying to resolve between msbuild and dotnet build right now |
Seems good now, thanks for your effort! This is the last package preventing me from switching to .NET Core 3, will be happy when this gets merged :) |
@wdkr Thanks for the dotnet build yml task |
Same thing here. This is the last package preventing me from switching to .NET Core 3. |
The next effort is creating a net45+core combined nuget package for everyone to be happy |
I'd be happy to test this if needed, we're using this setup at my company as well. I could use our private NuGet feed to consume both the netfw and netcore versions of the package to see if it works as expected. |
This is great @jespersh! I will try to get this reviewed this week. I would really like to start seeing preview NuGets with this. |
Looks like things are working. Thanks for the great work. |
works on .net core 3.1? |
The csproj files for the WPF solution are updated to csproj2017 format and (almost) all nuget/paket packages are updated to packages that have (started to) support core 3.0. Buttons are no longer a mess because ShowMeTheXaml works 🎉
Packages that possibly need a replacement in the future because of wrong targeting framework (TF) or package versioning constraint conflicts (VCC):
ShowMeTheXAML.AvalonEdit 1.0.13-ci65 (VCC)ShowMeTheXAML.MSBuild (TF)There is 1 test that fail:
There are 2 tests that makes xunit crash. Something about the MemberData isn't serializableMaterialDesignThemes.Wpf.Tests: Catastrophic error during deserialization: System.InvalidOperationException: Could not de-serialize type 'Xunit.Sdk.UITheoryTestCase' because it lacks a parameterless constructor.:
CanParseLocalizedTimeStringDisplayExpectedTestMahAppsDragablzDemo
Currently runtime fails because baselight and basedark were removed in 2.0 and were instead replaced by a sort of combined light/dark+theme deal generated here: https://github.com/MahApps/MahApps.Metro/blob/69c80f396d2e7057779dce0238081cac179f5c7f/src/MahApps.Metro/Styles/Themes/GeneratorParameters.json
MahApps/MahApps.Metro@1d3cf16#diff-a45c69bf811dd66e5acb8d25802982be
dotnet build
I used msbuild in Visual studio I suspect is able to do something dotnet build isn't, since I am getting this error:ShowMeTheXaml.MSBuild
I modified MaterialDesignDemo.csproj to have this:
It might have been a false positive and the original might have worked
What I am unsure about and probably wont be able to fix
1.0.*
to1.0.1
for now as csproj2017 doesn't like as this format thinks the input and output should be deterministic. (see https://stackoverflow.com/questions/43019832/auto-versioning-in-visual-studio-2017-net-core for possible future solutions)Final notes
Used:
preview6preview7 https://dotnet.microsoft.com/download/dotnet-core/3.0