-
Notifications
You must be signed in to change notification settings - Fork 1
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
Setting a type as design-time data context of a XAML control will cause issues in the code generator #42
Comments
The linked project doesn't reference |
May bad, try this branch please: https://github.com/rezanid/xrmtools/tree/assembly-to-config-file To reproduce you can replace line 10 (currently empty) of this file: with this: xmlns:ui="clr-namespace:XrmGen.UI" d:DataContext="{d:DesignInstance Type=ui:AssemblySelectionViewModel}" |
I think this issue is because of the Design build, but I'm not an expert with this kind of special builds triggered by VS. This package is a standard source generator package. So, I don't know if there is something I can do to fix your issue. Maybe you can report the issue on VS to understand who can and how to fix that. |
I didn't know there can be different kinds of builds. I will try to debug the generator to see if I can understand better what's happening. |
You can use https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProjectSystemTools2022 to track all builds in VS. |
👍🏼
Best regards,
Reza
…________________________________
From: Gérald Barré ***@***.***>
Sent: Friday, August 23, 2024 5:22:49 PM
To: meziantou/Meziantou.Polyfill ***@***.***>
Cc: Reza ***@***.***>; Author ***@***.***>
Subject: Re: [meziantou/Meziantou.Polyfill] Setting a type as design-time data context of a XAML control will cause issues in the code generator (Issue #42)
You can use https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProjectSystemTools2022 to track all builds in VS.
—
Reply to this email directly, view it on GitHub<#42 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADLIVMGAQZWYRLIJND6I7N3ZS5HUTAVCNFSM6AAAAABM33MKGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXGMYTEMBUGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Version of the Meziantou.Polyfill NuGet package
1.0.39
Description
Earlier today I faced a compilation issue, which I thought was related to upgrading .Net Framework to 4.8, but it turned out that it is related to this issue. In summary setting a type as design-time data context of a XAML control will cause issues in the code generator.
Reproduction Steps
Other information
You might need the Extensibility workload of VS to be able to build.
The text was updated successfully, but these errors were encountered: