KirillOsenkov / SourceBrowser

Source browser website generator that powers http://referencesource.microsoft.com and http://sourceroslyn.io
Apache License 2.0
1.07k stars 196 forks source link

Index sources generated by source generators #192

Open KirillOsenkov opened 3 years ago

KirillOsenkov commented 3 years ago

Need to tell the workspace to write generated source to disk and index that source?

KirillOsenkov commented 3 years ago

This is where the Roslyn workspace is created: https://github.com/KirillOsenkov/SourceBrowser/blob/e517b8023bc124839622543903297075a4872a54/src/HtmlGenerator/Pass1-Generation/SolutionGenerator.cs#L132

KirillOsenkov commented 3 years ago

prob just needs to set the property EmitCompilerGeneratedFiles to true.

KirillOsenkov commented 3 years ago

This is how you control emit location: https://github.com/dotnet/roslyn/blob/86ff365d5d28fddd4a4738cf1d9d101522dffd50/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets#L312