Skip to content

Commit 76e044d

Browse files
noiseonwiresKirill Ovchinnikov
andauthored
Add MauiXamlHotReload to the list of CompilerVisibleProperties (dotnet#34405)
The MauiXamlHotReload MSBuild property was introduced in dotnet#34028 but was not registered as a compiler-visible property. Without this entry, Roslyn source generators cannot read the property value via AnalyzerConfigOptions.GlobalOptions. This change makes it accessible so IDE and source generators can adjust their behavior based on the configured hot reload mode (Legacy or SourceGen). Co-authored-by: Kirill Ovchinnikov <kovchinnikov@microsoft.com>
1 parent 6c123d7 commit 76e044d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Controls/src/Build.Tasks/nuget/buildTransitive/netstandard2.0/Microsoft.Maui.Controls.Common.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<CompilerVisibleProperty Include="MauiXamlLineInfo" />
3131
<CompilerVisibleItemMetadata Include="AdditionalFiles" MetadataName="LineInfo" />
3232
<CompilerVisibleProperty Include="Configuration" />
33+
<CompilerVisibleProperty Include="MauiXamlHotReload" />
3334
<CompilerVisibleProperty Include="EnablePreviewFeatures" />
3435
</ItemGroup>
3536
</Project>

0 commit comments

Comments
 (0)