File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
SourceLink.Git.IntegrationTests Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 7
7
8
8
<PropertyGroup >
9
9
<!--
10
- Do not query source control manager for any information when building in the IDE or for Live Unit Testing.
11
- Features that need this information will be disabled if false.
10
+ Used to suppress querying source control and features that use the information (e.g. git commit SHA).
12
11
-->
13
- <EnableSourceControlManagerQueries Condition =" '$(EnableSourceControlManagerQueries)' == '' and '$(DesignTimeBuild)' != 'true' and '$(BuildingForLiveUnitTesting)' != 'true' " >true</EnableSourceControlManagerQueries >
14
-
12
+ <EnableSourceControlManagerQueries Condition =" '$(EnableSourceControlManagerQueries)' == ''" >true</EnableSourceControlManagerQueries >
13
+
15
14
<!--
16
15
Do not generate SourceLink when building in the IDE or for Live Unit Testing.
17
16
-->
18
17
<EnableSourceLink Condition =" '$(EnableSourceLink)' == '' and '$(DesignTimeBuild)' != 'true' and '$(BuildingForLiveUnitTesting)' != 'true'" >true</EnableSourceLink >
19
- </PropertyGroup >
18
+ </PropertyGroup >
20
19
</Project >
Original file line number Diff line number Diff line change 14
14
Triggers SetEmbeddedFilesFromSourceControlManagerUntrackedFiles target defined by a source control package Microsoft.Build.Tasks.{Git|Tfvc|...}.
15
15
Assumes that all targets that generate source files and add them to Compile items run before BeforeCompile target.
16
16
This is a convention established by common targets.
17
+
18
+ Disabled for design-time build since calculating untracked files is non-trivial operation
19
+ and embedding them only affects the content of the generated PDB, which has no impact on design-time build.
17
20
-->
18
21
<Target Name =" _SetEmbeddedFilesFromSourceControlManagerUntrackedFiles"
19
22
DependsOnTargets =" BeforeCompile;SetEmbeddedFilesFromSourceControlManagerUntrackedFiles"
20
23
BeforeTargets =" CoreCompile"
21
- Condition =" '$(EmbedUntrackedSources)' == 'true' and '$(EmbedAllSources)' != 'true' and '$(DebugType)' != 'none' and '$(EnableSourceControlManagerQueries)' == 'true'" />
24
+ Condition =" '$(EmbedUntrackedSources)' == 'true' and '$(EmbedAllSources)' != 'true' and '$(DebugType)' != 'none' and '$(EnableSourceControlManagerQueries)' == 'true' and '$(DesignTimeBuild)' != 'true' " />
22
25
23
26
<!--
24
27
If defined populates MappedPath metadata of SourceRoot items.
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ public void DefaultValuesForEnableProperties_DesignTimeBuild()
90
90
expectedResults : new [ ]
91
91
{
92
92
NuGetPackageFolders ,
93
- "" ,
93
+ ProjectSourceRoot ,
94
+ "true" ,
94
95
"" ,
95
96
""
96
97
} ,
@@ -125,7 +126,8 @@ public void DefaultValuesForEnableProperties_BuildingForLiveUnitTesting()
125
126
expectedResults : new [ ]
126
127
{
127
128
NuGetPackageFolders ,
128
- "" ,
129
+ ProjectSourceRoot ,
130
+ "true" ,
129
131
"" ,
130
132
""
131
133
} ,
You can’t perform that action at this time.
0 commit comments