Use mvvm source generators
Use MVVM source generators.
- [x] Update
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
Generators don't work in some versions of Visual Studio and WPF. I would wait until the patch is officially published.
dotnet/wpf#6792
dotnet/wpf#6793

On my pc project builds.
On my pc project builds.
Good old - "Weird, it works for me"
Perhaps this is due to the fact that I am using a preview version of visual studio.
Still in Known Issues https://github.com/dotnet/core/blob/main/release-notes/6.0/known-issues.md#issues-building-wpf-application-with-windows-desktop-607-and-608=
With workaround:
- To enable build in Windows Desktop 6.0.7, navigate to the directory containing the
Microsoft.WinFx.targetsfile (C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets) - Add the following target in the file:
<Target Name="RemoveDuplicateAnalyzers" BeforeTargets="CoreCompile">
<ItemGroup>
<FilteredAnalyzer Include="@(Analyzer->Distinct())" />
<Analyzer Remove="@(Analyzer)" />
<Analyzer Include="@(FilteredAnalyzer)" />
</ItemGroup>
</Target>
Strange, with sdk 6.0.400-preview.22330.6, everything builds normally
I hope that the build errors will be fixed in sdk 6.0.400.