Skip to content

Commit 787c644

Browse files
committed
fix: Add workaround for editorconfig race condition
1 parent bd65c1b commit 787c644

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/SourceGenerators/Uno.UI.SourceGenerators/Content/Uno.UI.SourceGenerators.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,5 +405,16 @@
405405
Condition="$(MSBuildProjectFullPath.Contains('#')) and '$(UnoUIDisable5953Warning)'==''"
406406
Text="The path to your project contains the '#' character, which causes known build issues. Try moving your project to a different location. (See https://github.com/unoplatform/uno/issues/5953 for more details)."/>
407407
</Target>
408+
409+
<Target Name="Roslyn51768Workaround"
410+
BeforeTargets="BeforeBuild"
411+
Condition="'$(DisableRoslyn51768Workaround)'==''">
412+
<!-- Workaround for https://github.com/dotnet/roslyn/issues/51768 -->
413+
<CreateProperty Value="$(IntermediateOutputPath)$(MSBuildProjectName).d$(DesignTimeBuild)-b$(BuildingProject).GeneratedMSBuildEditorConfig.editorconfig">
414+
<Output
415+
TaskParameter="Value"
416+
PropertyName="GeneratedMSBuildEditorConfigFile" />
417+
</CreateProperty>
418+
</Target>
408419

409420
</Project>

0 commit comments

Comments
 (0)