-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dev17 breaks ability to compile some WPF projects #18062
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@ryalanms Can you take a look? |
This may be a dupe of dotnet/wpf#4515 |
@dsplaisted yes that does look very similar |
Yes, this is a duplicate of dotnet/wpf#4515. Set This can be moved to the WPF repo. Thank you for the minimal repro projects. |
Here, the root of the problem is where the PBT that ships with Windows Desktop SDK is failing. We should look into that! |
In this case the PBT from the Windows Desktop SDK is not being imported, since the project doesn't specify the SDK or set |
Yeah, found that it was the case. Just now, I was combing through the You could use the Desktop SDK (projects using < v5 SDK) or set |
Dev17 breaks WPF project builds when project files were using the
Microsoft.Net.Sdk
and manually listing out the XAML files in the project. For example:This approach worked in both Dev15 and Dev16 but breaks in Dev17. I ran into this when migrating VsVim to work on top of Dev17. The break here is subtle because under the hood it's just not passing the
.g.cs
files to the compiler anymore. That means you end up with strange errors like in ability to access controls by name that you designed in a XAML file. If you have purely design XAML then likely you end up with compiling code but strange runtime behavior.The repro is a bit involved here so I created a GitHub repo that contains the full code that will reproduce the issue. The
README.md
has instructions.https://github.com/jaredpar/Dev17WpfUpgradeIssue
The text was updated successfully, but these errors were encountered: