Skip to content

Commit 7b810d7

Browse files
dsymeKevinRansom
authored andcommitted
fix incremental build (dotnet#6795)
1 parent b5a0fdf commit 7b810d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FSharpBuild.Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<MakeDir
2323
Directories="$(IntermediateOutputPath)"
2424
Condition="!Exists('$(IntermediateOutputPath)')" />
25-
<WriteLinesToFile File="$(__TargetFilePath)" Lines="$(_ReplacementText)" Overwrite="true" />
25+
<WriteLinesToFile File="$(__TargetFilePath)" Lines="$(_ReplacementText)" Overwrite="true" WriteOnlyWhenDifferent="true" />
2626

2727
<!-- Make sure it will get cleaned -->
2828
<ItemGroup >
@@ -51,7 +51,7 @@
5151
<MakeDir
5252
Directories="$(IntermediateOutputPath)"
5353
Condition="!Exists('$(IntermediateOutputPath)')" />
54-
<WriteLinesToFile File="$(IntermediateOutputPath)buildproperties.fs" Lines="@(_BuildPropertyLines)" Overwrite="true" />
54+
<WriteLinesToFile File="$(IntermediateOutputPath)buildproperties.fs" Lines="@(_BuildPropertyLines)" Overwrite="true" WriteOnlyWhenDifferent="true" />
5555

5656
<!-- Make sure it will get cleaned -->
5757
<ItemGroup>

fcs/Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<MakeDir
1818
Directories="$(IntermediateOutputPath)"
1919
Condition="!Exists('$(IntermediateOutputPath)')" />
20-
<WriteLinesToFile File="$(__TargetFilePath)" Lines="$(_ReplacementText)" Overwrite="true" />
20+
<WriteLinesToFile File="$(__TargetFilePath)" Lines="$(_ReplacementText)" Overwrite="true" WriteOnlyWhenDifferent="true" />
2121

2222
<!-- Make sure it will get cleaned -->
2323
<ItemGroup >
@@ -46,7 +46,7 @@
4646
<MakeDir
4747
Directories="$(IntermediateOutputPath)$(ProjectName)"
4848
Condition="!Exists('$(IntermediateOutputPath)$(ProjectName)')" />
49-
<WriteLinesToFile File="$(IntermediateOutputPath)$(ProjectName)\buildproperties.fs" Lines="@(_BuildPropertyLines)" Overwrite="true" />
49+
<WriteLinesToFile File="$(IntermediateOutputPath)$(ProjectName)\buildproperties.fs" Lines="@(_BuildPropertyLines)" Overwrite="true" WriteOnlyWhenDifferent="true" />
5050

5151
<!-- Make sure it will get cleaned -->
5252
<ItemGroup>

0 commit comments

Comments
 (0)