diff options
author | Rob Mensching <rob@firegiant.com> | 2022-10-14 22:58:30 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-10-15 11:45:54 -0700 |
commit | e550b63845a90e1a9452060b50a00ca5d9ee8c67 (patch) | |
tree | e1ca7fef941d704c682c29eece292adc350a6f37 | |
parent | 9d631dd64891936738077e4b2e1153c3d84b5f86 (diff) | |
download | wix-e550b63845a90e1a9452060b50a00ca5d9ee8c67.tar.gz wix-e550b63845a90e1a9452060b50a00ca5d9ee8c67.tar.bz2 wix-e550b63845a90e1a9452060b50a00ca5d9ee8c67.zip |
Name the bind path item group "BindPath" in MSBuild
Closes 6959
9 files changed, 21 insertions, 25 deletions
diff --git a/src/ext/Bal/test/examples/Directory.wixproj.targets b/src/ext/Bal/test/examples/Directory.wixproj.targets index 7e6fe9f2..f126c632 100644 --- a/src/ext/Bal/test/examples/Directory.wixproj.targets +++ b/src/ext/Bal/test/examples/Directory.wixproj.targets | |||
@@ -2,7 +2,7 @@ | |||
2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
3 | <Project> | 3 | <Project> |
4 | <ItemGroup> | 4 | <ItemGroup> |
5 | <BindInputPaths Include="$(OutputPath)" /> | 5 | <BindPath Include="$(OutputPath)" /> |
6 | <WixExtension Include="$(OutputPath)..\netstandard2.0\WixToolset.Bal.wixext.dll" /> | 6 | <WixExtension Include="$(OutputPath)..\netstandard2.0\WixToolset.Bal.wixext.dll" /> |
7 | </ItemGroup> | 7 | </ItemGroup> |
8 | </Project> | 8 | </Project> |
diff --git a/src/ext/Bal/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.wixproj b/src/ext/Bal/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.wixproj index 3f81710e..1179bea7 100644 --- a/src/ext/Bal/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.wixproj +++ b/src/ext/Bal/test/examples/EarliestCoreBundleSCD/EarliestCoreBundleSCD.wixproj | |||
@@ -1,7 +1,7 @@ | |||
1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
2 | <Project Sdk="WixToolset.Sdk"> | 2 | <Project Sdk="WixToolset.Sdk"> |
3 | <ItemGroup> | 3 | <ItemGroup> |
4 | <BindInputPaths Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd" /> | 4 | <BindPath Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd" /> |
5 | <HarvestDirectory Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd"> | 5 | <HarvestDirectory Include="$(OutputPath)publish\Example.EarliestCoreMBA\scd"> |
6 | <DirectoryRefId>publish.Example.EarliestCoreMBA.scd</DirectoryRefId> | 6 | <DirectoryRefId>publish.Example.EarliestCoreMBA.scd</DirectoryRefId> |
7 | <Transforms>ba.xslt</Transforms> | 7 | <Transforms>ba.xslt</Transforms> |
diff --git a/src/ext/Bal/wixlib/bal.wixproj b/src/ext/Bal/wixlib/bal.wixproj index b350dbce..64552f1a 100644 --- a/src/ext/Bal/wixlib/bal.wixproj +++ b/src/ext/Bal/wixlib/bal.wixproj | |||
@@ -7,12 +7,12 @@ | |||
7 | </PropertyGroup> | 7 | </PropertyGroup> |
8 | 8 | ||
9 | <ItemGroup> | 9 | <ItemGroup> |
10 | <BindInputPaths Include="..\wixstdba\Resources\" /> | 10 | <BindPath Include="..\wixstdba\Resources\" /> |
11 | <BindInputPaths Include="$(OutputPath)net6.0" /> | 11 | <BindPath Include="$(OutputPath)net6.0" /> |
12 | <BindInputPaths Include="$(OutputPath)net20" /> | 12 | <BindPath Include="$(OutputPath)net20" /> |
13 | <BindInputPaths Include="$(OutputPath)x86" BindName="x86" /> | 13 | <BindPath Include="$(OutputPath)x86" BindName="x86" /> |
14 | <BindInputPaths Include="$(OutputPath)x64" BindName="x64" /> | 14 | <BindPath Include="$(OutputPath)x64" BindName="x64" /> |
15 | <BindInputPaths Include="$(OutputPath)arm64" BindName="arm64" /> | 15 | <BindPath Include="$(OutputPath)arm64" BindName="arm64" /> |
16 | </ItemGroup> | 16 | </ItemGroup> |
17 | 17 | ||
18 | <ItemGroup> | 18 | <ItemGroup> |
diff --git a/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectPreSdkStyle/HeatProjectPreSdkStyle.wixproj b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectPreSdkStyle/HeatProjectPreSdkStyle.wixproj index a05348a5..642b349d 100644 --- a/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectPreSdkStyle/HeatProjectPreSdkStyle.wixproj +++ b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectPreSdkStyle/HeatProjectPreSdkStyle.wixproj | |||
@@ -2,7 +2,7 @@ | |||
2 | <Project Sdk="WixToolset.Sdk"> | 2 | <Project Sdk="WixToolset.Sdk"> |
3 | 3 | ||
4 | <ItemGroup> | 4 | <ItemGroup> |
5 | <BindInputPaths Include="." /> | 5 | <BindPath Include="." /> |
6 | </ItemGroup> | 6 | </ItemGroup> |
7 | 7 | ||
8 | <PropertyGroup> | 8 | <PropertyGroup> |
diff --git a/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectSdkStyle/HeatProjectSdkStyle.wixproj b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectSdkStyle/HeatProjectSdkStyle.wixproj index 202921fe..c0048434 100644 --- a/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectSdkStyle/HeatProjectSdkStyle.wixproj +++ b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/HeatProjectSdkStyle/HeatProjectSdkStyle.wixproj | |||
@@ -2,7 +2,7 @@ | |||
2 | <Project Sdk="WixToolset.Sdk"> | 2 | <Project Sdk="WixToolset.Sdk"> |
3 | 3 | ||
4 | <ItemGroup> | 4 | <ItemGroup> |
5 | <BindInputPaths Include="." /> | 5 | <BindPath Include="." /> |
6 | </ItemGroup> | 6 | </ItemGroup> |
7 | 7 | ||
8 | <PropertyGroup> | 8 | <PropertyGroup> |
diff --git a/src/wix/WixToolset.BuildTasks/WixBuild.cs b/src/wix/WixToolset.BuildTasks/WixBuild.cs index 923567ed..8696230f 100644 --- a/src/wix/WixToolset.BuildTasks/WixBuild.cs +++ b/src/wix/WixToolset.BuildTasks/WixBuild.cs | |||
@@ -43,7 +43,7 @@ namespace WixToolset.BuildTasks | |||
43 | [Required] | 43 | [Required] |
44 | public ITaskItem[] SourceFiles { get; set; } | 44 | public ITaskItem[] SourceFiles { get; set; } |
45 | 45 | ||
46 | public ITaskItem[] BindInputPaths { get; set; } | 46 | public ITaskItem[] BindPaths { get; set; } |
47 | 47 | ||
48 | public bool BindFiles { get; set; } | 48 | public bool BindFiles { get; set; } |
49 | 49 | ||
@@ -89,9 +89,9 @@ namespace WixToolset.BuildTasks | |||
89 | 89 | ||
90 | private IEnumerable<string> CalculateBindPathStrings() | 90 | private IEnumerable<string> CalculateBindPathStrings() |
91 | { | 91 | { |
92 | if (null != this.BindInputPaths) | 92 | if (null != this.BindPaths) |
93 | { | 93 | { |
94 | foreach (var item in this.BindInputPaths) | 94 | foreach (var item in this.BindPaths) |
95 | { | 95 | { |
96 | var path = item.GetMetadata("FullPath"); | 96 | var path = item.GetMetadata("FullPath"); |
97 | 97 | ||
diff --git a/src/wix/WixToolset.Sdk/tools/wix.targets b/src/wix/WixToolset.Sdk/tools/wix.targets index 8665f05c..a1edaed1 100644 --- a/src/wix/WixToolset.Sdk/tools/wix.targets +++ b/src/wix/WixToolset.Sdk/tools/wix.targets | |||
@@ -158,21 +158,17 @@ | |||
158 | *********************************************************************************************** | 158 | *********************************************************************************************** |
159 | --> | 159 | --> |
160 | 160 | ||
161 | <!-- If WixExtension was passed in via the command line, then convert it to an ItemGroup --> | ||
162 | <ItemGroup> | ||
163 | <WixExtension Include="$(WixExtension)" Condition=" '$(WixExtension)' != '' " /> | ||
164 | </ItemGroup> | ||
165 | |||
166 | <!-- Default Compiler properties. --> | 161 | <!-- Default Compiler properties. --> |
167 | <PropertyGroup> | 162 | <PropertyGroup> |
168 | <InstallerPlatform Condition=" '$(InstallerPlatform)' == '' and '$(Platform)' != 'AnyCPU' and '$(Platform)' != 'Any CPU' ">$(Platform)</InstallerPlatform> | 163 | <InstallerPlatform Condition=" '$(InstallerPlatform)' == '' and '$(Platform)' != 'AnyCPU' and '$(Platform)' != 'Any CPU' ">$(Platform)</InstallerPlatform> |
169 | </PropertyGroup> | 164 | </PropertyGroup> |
170 | 165 | ||
171 | <!-- If BindInputPaths (or LinkerBindInputPaths) was passed in via the command line, then convert it to an ItemGroup --> | 166 | <!-- Convert legacy BindInputPaths and LinkerBindInputPaths (in the project or passed in via the command line) into the new BindPath items --> |
172 | <ItemGroup> | 167 | <ItemGroup> |
173 | <BindInputPaths Include="$(BindInputPaths)" Condition=" '$(BindInputPaths)' != '' " /> | 168 | <BindInputPaths Include="$(BindInputPaths)" Condition=" '$(BindInputPaths)' != '' " /> |
174 | <LinkerBindInputPaths Include="$(LinkerBindInputPaths)" Condition=" '$(LinkerBindInputPaths)' != '' " /> | 169 | <LinkerBindInputPaths Include="$(LinkerBindInputPaths)" Condition=" '$(LinkerBindInputPaths)' != '' " /> |
175 | <LinkerBindInputPaths Condition=" '@(LinkerBindInputPaths)' == '' " Include="@(BindInputPaths)" /> | 170 | <BindPath Include="$(BindPath)" Condition=" '$(BindPath)' != '' " /> |
171 | <BindPath Include="@(BindInputPaths);@(LinkerBindInputPaths)" /> | ||
176 | </ItemGroup> | 172 | </ItemGroup> |
177 | 173 | ||
178 | <!-- | 174 | <!-- |
@@ -308,7 +304,7 @@ | |||
308 | 304 | ||
309 | [OUT] | 305 | [OUT] |
310 | $(ProjectReferenceDefineConstants) - Define constants from project references. | 306 | $(ProjectReferenceDefineConstants) - Define constants from project references. |
311 | @(LinkerBindInputPaths) - Bind paths from project references. | 307 | @(BindPath) - Bind paths from project references. |
312 | @(WixLibrary) - Target paths from .vcxproj outputs added. | 308 | @(WixLibrary) - Target paths from .vcxproj outputs added. |
313 | @(_WixReferencedProjectOutputs) - Copy of _ResolvedProjectReferencePaths for use in up-to-date checks. | 309 | @(_WixReferencedProjectOutputs) - Copy of _ResolvedProjectReferencePaths for use in up-to-date checks. |
314 | @(_ResolvedProjectReferencePaths) - All resolved reference paths emptied. | 310 | @(_ResolvedProjectReferencePaths) - All resolved reference paths emptied. |
@@ -336,7 +332,7 @@ | |||
336 | <CreateProjectReferenceDefineConstantsAndBindPaths | 332 | <CreateProjectReferenceDefineConstantsAndBindPaths |
337 | ResolvedProjectReferences="@(_ResolvedProjectReferencePaths)" | 333 | ResolvedProjectReferences="@(_ResolvedProjectReferencePaths)" |
338 | ProjectConfigurations="$(VSProjectConfigurations)"> | 334 | ProjectConfigurations="$(VSProjectConfigurations)"> |
339 | <Output TaskParameter="BindPaths" ItemName="LinkerBindInputPaths" /> | 335 | <Output TaskParameter="BindPaths" ItemName="BindPath" /> |
340 | <Output TaskParameter="DefineConstants" PropertyName="ProjectReferenceDefineConstants" /> | 336 | <Output TaskParameter="DefineConstants" PropertyName="ProjectReferenceDefineConstants" /> |
341 | </CreateProjectReferenceDefineConstantsAndBindPaths> | 337 | </CreateProjectReferenceDefineConstantsAndBindPaths> |
342 | 338 | ||
@@ -603,7 +599,7 @@ | |||
603 | NoLogo="true" | 599 | NoLogo="true" |
604 | Pedantic="$(Pedantic)" | 600 | Pedantic="$(Pedantic)" |
605 | 601 | ||
606 | BindInputPaths="@(LinkerBindInputPaths)" | 602 | BindPaths="@(BindPath)" |
607 | BindFiles="$(BindFiles)" | 603 | BindFiles="$(BindFiles)" |
608 | BindTrackingFile="$(IntermediateOutputPath)$(BindTrackingFilePrefix)%(CultureGroup.Identity)$(BindTrackingFileExtension)" | 604 | BindTrackingFile="$(IntermediateOutputPath)$(BindTrackingFilePrefix)%(CultureGroup.Identity)$(BindTrackingFileExtension)" |
609 | 605 | ||
diff --git a/src/wix/test/WixToolsetTest.BuildTasks/WixBuildTaskFixture.cs b/src/wix/test/WixToolsetTest.BuildTasks/WixBuildTaskFixture.cs index 5271c1bb..92ee441a 100644 --- a/src/wix/test/WixToolsetTest.BuildTasks/WixBuildTaskFixture.cs +++ b/src/wix/test/WixToolsetTest.BuildTasks/WixBuildTaskFixture.cs | |||
@@ -45,7 +45,7 @@ namespace WixToolsetTest.BuildTasks | |||
45 | { | 45 | { |
46 | new TaskItem(Path.Combine(folder, "Package.en-us.wxl")), | 46 | new TaskItem(Path.Combine(folder, "Package.en-us.wxl")), |
47 | }, | 47 | }, |
48 | BindInputPaths = new[] | 48 | BindPaths = new[] |
49 | { | 49 | { |
50 | new TaskItem(Path.Combine(folder, "data")), | 50 | new TaskItem(Path.Combine(folder, "data")), |
51 | }, | 51 | }, |
diff --git a/src/wix/test/WixToolsetTest.Sdk/TestData/Wixlib/SimpleWixlib/SimpleWixlib.wixproj b/src/wix/test/WixToolsetTest.Sdk/TestData/Wixlib/SimpleWixlib/SimpleWixlib.wixproj index 7c83a339..88dfdc39 100644 --- a/src/wix/test/WixToolsetTest.Sdk/TestData/Wixlib/SimpleWixlib/SimpleWixlib.wixproj +++ b/src/wix/test/WixToolsetTest.Sdk/TestData/Wixlib/SimpleWixlib/SimpleWixlib.wixproj | |||
@@ -36,7 +36,7 @@ | |||
36 | </ItemGroup> | 36 | </ItemGroup> |
37 | 37 | ||
38 | <ItemGroup> | 38 | <ItemGroup> |
39 | <BindInputPaths Include="data" /> | 39 | <BindPath Include="data" /> |
40 | </ItemGroup> | 40 | </ItemGroup> |
41 | 41 | ||
42 | <Import Project="$(WixTargetsPath)" /> | 42 | <Import Project="$(WixTargetsPath)" /> |