File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Build.Tasks/nuget/buildTransitive/netstandard2.0 Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2929 <CompilerVisibleItemMetadata Include =" AdditionalFiles" MetadataName =" EnableDiagnostics" />
3030 <CompilerVisibleProperty Include =" MauiXamlLineInfo" />
3131 <CompilerVisibleItemMetadata Include =" AdditionalFiles" MetadataName =" LineInfo" />
32+ <CompilerVisibleProperty Include =" Configuration" />
3233 </ItemGroup >
3334</Project >
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ public bool EnableDiagnostics
3232 return true ;
3333 if ( Options . IsFalse ( "build_metadata.additionalfiles.EnableDiagnostics" ) )
3434 return false ;
35- return Options . IsTrue ( "build_property.EnableMauiXamlDiagnostics" ) ;
35+ if ( Options . IsTrue ( "build_property.EnableMauiXamlDiagnostics" ) )
36+ return true ;
37+ if ( Options . IsFalse ( "build_property.EnableMauiXamlDiagnostics" ) )
38+ return false ;
39+ return ! Configuration . Equals ( "Release" , StringComparison . OrdinalIgnoreCase ) ;
3640 }
3741 }
3842
You can’t perform that action at this time.
0 commit comments