You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've trying to get this generator to work with an existing WPF project.
DependencyPropertyGenerator does not seem to work when the project has other packages with custom targets. For example CompiledBindings
I thought that is was just not passing the DefineConstants but that doesn't seem to be the case:
The generated editorconfig also seems to have the correct data:
With the roslyn debugger on a PackageReference the CompilerAnalyzerConfigOptions.GlobalOptions looks like
I cloned the main branch to see if there was difference when using ProjectReference instead and when using the debugger the CompilerAnalyzerConfigOptions.GlobalOptions looks like
The text was updated successfully, but these errors were encountered:
At first glance, it seems to me that the problem may be due to the fact that one of the packages in the project defines in its NuGet .props file, using the syntax <DefineConstants>NEW_CONSTANT</DefineConstants> instead <DefineConstants>$(DefineConstants) ;NEW_CONSTANT</DefineConstants>
I will look deeper
Describe the bug
Hi,
I've trying to get this generator to work with an existing WPF project.
DependencyPropertyGenerator does not seem to work when the project has other packages with custom targets. For example CompiledBindings
I thought that is was just not passing the DefineConstants but that doesn't seem to be the case:
The generated editorconfig also seems to have the correct data:
Steps to reproduce the bug
Please see attached repro.
DependencyPropertyGeneratorTest.zip
I've also included another project with a launch profile to help with debugging the source generator. To use:
Interestingly it looks like it detects the framework when run from the debugger just not when building the actual project.
Expected behavior
No response
Screenshots
No response
NuGet package version
1.4.0
IDE
Visual Studio 2022
Additional context
I've tried adding a .props file as recommended in https://github.com/HavenDV/H.Generators.Extensions but no luck there.
With the roslyn debugger on a PackageReference the CompilerAnalyzerConfigOptions.GlobalOptions looks like
I cloned the main branch to see if there was difference when using ProjectReference instead and when using the debugger the CompilerAnalyzerConfigOptions.GlobalOptions looks like
The text was updated successfully, but these errors were encountered: