Open dansiegel opened 1 month ago
You can do it this way:
TestState.AnalyzerConfigFiles.Add(("/.globalconfig", """
is_global = true
build_property.SomeProperty = value
"""));
thanks @Youssef1313 if that's in the docs I couldn't find it. That seems to have done the trick!
Description
Some Generators require access to MSBuild properties to have additional context to be able to properly generate. How can I inject values into the Generator Test so that the generator can access properties that would normally be provided from MSBuild: