未验证 提交 b648755b 编写于 作者: T Tomáš Matoušek 提交者: GitHub

Add SourceRootMappedPathsFeatureSupported property (#26095) (#26127)

上级 8b688494
......@@ -88,7 +88,14 @@
<SourceRoot Include="@(_MappedSourceRoot)" />
</ItemGroup>
</Target>
<!--
Declare that target InitializeSourceRootMappedPaths that populates MappedPaths metadata on SourceRoot items is available.
-->
<PropertyGroup>
<SourceRootMappedPathsFeatureSupported>true</SourceRootMappedPathsFeatureSupported>
</PropertyGroup>
<!--
If InitializeSourceControlInformation target isn't supported, we just continue without invoking that synchronization target.
We'll proceed with SourceRoot (and other source control properties) provided by the user (or blank).
......
......@@ -74,7 +74,8 @@ public void TestSourceLink()
{
"@(SourceRoot->'%(Identity): %(MappedPath)')",
"$(DeterministicSourcePaths)",
"$(PathMap)"
"$(PathMap)",
"$(SourceRootMappedPathsFeatureSupported)"
},
expectedResults: new[]
{
......@@ -82,8 +83,9 @@ public void TestSourceLink()
$@"{root1}: /_/",
$@"{root1}sub1\: /_/sub1/",
$@"{root1}sub2\: /_/sub2/",
@"true",
$@"{root2}=/_1/,{root1}=/_/,PreviousPathMap"
"true",
$@"{root2}=/_1/,{root1}=/_/,PreviousPathMap",
"true"
});
AssertEx.AssertEqualToleratingWhitespaceDifferences(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册