Generators are based on the Uno.SourceGeneration project.
At compile time, they analyze the Roslyn compilation and use it to generate relevant
code. Generated code are placed in the <project>\obj\<config>\<platform>\g\<generatorname>
folder and they are dynamically added to the project compilation.
You can set the UnoSourceGeneratorOutputPath
in your csproj
file to the desired location
(relative to your project folder).
If you are using Sdk projects - projects were all .cs
files are automatically compiled
in your project, the generated files will be part of your project.
Example:
<UnoSourceGeneratorOutputPath>GeneratedFiles</UnoSourceGeneratorOutputPath>
It should work fine for Sdk projects (new project format that comes with dot net core), but for classical probjects (WPF, Xamarin, UWP, etc...) it seems you need to force VisualStudio to reset its cache. A quick way to do that is to toggle the Show All files in the Solution Explorer.