-
Notifications
You must be signed in to change notification settings - Fork 305
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
Results of the MVVM source generator are not always compiled #750
Comments
#158 looks indeed like a duplicate, which I have not seen before. I do not have a packages.config within the project. The MVVM Toolkit is added with a PackageReference-Tag. I do not understand the answer of Chris Sienkiewicz. Is there way to upgrade the csproj style without changing the target framework? |
A workaround:
|
VS17.7.3 + MvvmToolkit8.2.1 don't encounter this bug anymore! |
using VS17.7.5 and MvvmToolKit8.2.1 to create a .Net Framework 4.8 WPF project. |
Describe the bug
I have a solution consisting of multiple projects. Some are libraries and some are desktop applications based on WPF/XAML.
All projects use the code MVVM source generator.
The build of the desktop applications fail with CS0103 in the output window.
The build of the library projects works.
In both cases does IntelliSense not show any errors and I also find the generated code under "Analyse".
"CompilerGeneratedFilesOutputPath" and "EmitCompilerGeneratedFiles" also work only for the library projects, but not for the app projects.
Setting "IncludePackageReferencesDuringMarkupCompilation" to "true" does not solve anything.
Steps to reproduce
Expected behavior
I expect, that the code generator is working also for the WPF/XAML projects.
IDE and version
VS 2022
IDE version
17.7.2
Nuget packages
Nuget package version(s)
8.2.1
Help us help you
I could support, but I do not know how to start. It looks as if the compiler discards the generated sources under unknown circumstances. Perhaps this is a topic for the Microsoft VS-Team.
The text was updated successfully, but these errors were encountered: