diff options
author | Rob Mensching <rob@firegiant.com> | 2022-01-13 13:14:19 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-01-13 13:57:33 -0800 |
commit | 6d1c4cc83214b65032251c67239b02da59a3e635 (patch) | |
tree | f96a6341979992a7dbc68260c80d1a154e1d8100 | |
parent | 842f9728ab64f11fc8be30d927c732d8728d0fdc (diff) | |
download | wix-6d1c4cc83214b65032251c67239b02da59a3e635.tar.gz wix-6d1c4cc83214b65032251c67239b02da59a3e635.tar.bz2 wix-6d1c4cc83214b65032251c67239b02da59a3e635.zip |
Small Microsoft.Common.targets integration improvements
-rw-r--r-- | src/wix/WixToolset.Sdk/tools/wix.props | 6 | ||||
-rw-r--r-- | src/wix/WixToolset.Sdk/tools/wix.targets | 35 |
2 files changed, 21 insertions, 20 deletions
diff --git a/src/wix/WixToolset.Sdk/tools/wix.props b/src/wix/WixToolset.Sdk/tools/wix.props index 487574a3..0f7cf469 100644 --- a/src/wix/WixToolset.Sdk/tools/wix.props +++ b/src/wix/WixToolset.Sdk/tools/wix.props | |||
@@ -16,6 +16,12 @@ | |||
16 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | 16 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
17 | 17 | ||
18 | <PropertyGroup> | 18 | <PropertyGroup> |
19 | <Configurations Condition=" '$(Configurations)' == '' ">Debug;Release</Configurations> | ||
20 | <Platforms Condition=" '$(Platforms)' == '' ">x86,x64,ARM64,AnyCPU</Platforms> | ||
21 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
22 | </PropertyGroup> | ||
23 | |||
24 | <PropertyGroup> | ||
19 | <ProjectTypeGuids>B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0</ProjectTypeGuids> | 25 | <ProjectTypeGuids>B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0</ProjectTypeGuids> |
20 | <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences> | 26 | <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences> |
21 | <DisableTransitiveProjectReferences>true</DisableTransitiveProjectReferences> | 27 | <DisableTransitiveProjectReferences>true</DisableTransitiveProjectReferences> |
diff --git a/src/wix/WixToolset.Sdk/tools/wix.targets b/src/wix/WixToolset.Sdk/tools/wix.targets index 8f96be8c..b9bacb42 100644 --- a/src/wix/WixToolset.Sdk/tools/wix.targets +++ b/src/wix/WixToolset.Sdk/tools/wix.targets | |||
@@ -43,6 +43,10 @@ | |||
43 | <EmbeddedResource Include="**/*.wxl" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " /> | 43 | <EmbeddedResource Include="**/*.wxl" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " /> |
44 | </ItemGroup> | 44 | </ItemGroup> |
45 | 45 | ||
46 | <ItemGroup> | ||
47 | <AvailableItemName Include="BindPath;WixLibrary;WixExtension" /> | ||
48 | </ItemGroup> | ||
49 | |||
46 | <!-- | 50 | <!-- |
47 | *********************************************************************************************** | 51 | *********************************************************************************************** |
48 | *********************************************************************************************** | 52 | *********************************************************************************************** |
@@ -56,15 +60,18 @@ | |||
56 | <Language>wix</Language> | 60 | <Language>wix</Language> |
57 | <TargetRuntime>wix</TargetRuntime> | 61 | <TargetRuntime>wix</TargetRuntime> |
58 | 62 | ||
63 | <!-- Ensure BaseOutputPath for Microsoft.Common.targets --> | ||
64 | <BaseOutputPath Condition="'$(BaseOutputPath)' == ''">bin\</BaseOutputPath> | ||
65 | <BaseOutputPath Condition="!HasTrailingSlash('$(BaseOutputPath)')">$(BaseOutputPath)\</BaseOutputPath> | ||
66 | |||
59 | <!-- Use OutputName to set the AssemblyName for Microsoft.Common.targets --> | 67 | <!-- Use OutputName to set the AssemblyName for Microsoft.Common.targets --> |
60 | <OutputName Condition=" '$(OutputName)'=='' ">$(MSBuildProjectName)</OutputName> | 68 | <OutputName Condition=" '$(OutputName)'=='' ">$(MSBuildProjectName)</OutputName> |
61 | <AssemblyName>$(OutputName)</AssemblyName> | 69 | <AssemblyName>$(OutputName)</AssemblyName> |
62 | 70 | ||
63 | <!-- Default OutputType to a known WiX Toolset type. --> | 71 | <!-- Default OutputType to a known WiX Toolset type. --> |
64 | <OutputType Condition=" '$(OutputType)' == '' ">Package</OutputType> | 72 | <OutputType Condition=" '$(OutputType)' == '' ">Package</OutputType> |
65 | <AvailablePlatforms>x86,x64,ARM,ARM64,AnyCPU</AvailablePlatforms> | 73 | <AvailablePlatforms>x86,x64,ARM64,AnyCPU</AvailablePlatforms> |
66 | 74 | ||
67 | <!-- Default WixPdbType to a known WiX Toolset type. --> | ||
68 | <WixPdbType Condition=" '$(WixPdbType)' == '' ">full</WixPdbType> | 75 | <WixPdbType Condition=" '$(WixPdbType)' == '' ">full</WixPdbType> |
69 | </PropertyGroup> | 76 | </PropertyGroup> |
70 | 77 | ||
@@ -86,28 +93,21 @@ | |||
86 | <TargetExt Condition=" '$(OutputType)' == 'IntermediatePostLink' ">.wixipl</TargetExt> | 93 | <TargetExt Condition=" '$(OutputType)' == 'IntermediatePostLink' ">.wixipl</TargetExt> |
87 | </PropertyGroup> | 94 | </PropertyGroup> |
88 | 95 | ||
89 | <!-- | ||
90 | <PropertyGroup> | ||
91 | <DefaultContentType Condition="$(DefaultContentType) == ''">Default</DefaultContentType> | ||
92 | </PropertyGroup> | ||
93 | --> | ||
94 | |||
95 | <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" /> | 96 | <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" /> |
96 | 97 | ||
97 | <!-- This will override some targets that get defined in Microsoft.Common so this needs to be imported after --> | 98 | <!-- |
98 | <Import Condition="Exists('$(DisableNetFrameworkResolutionTargets)') and '$(SkipImportDisableNetFrameworkResolutionTargets)' != 'true'" Project="$(DisableNetFrameworkResolutionTargets)" /> | 99 | This will override some targets that get defined in Microsoft.Common just like Microsoft.NET.DisableStandardFrameworkResolution.targets |
99 | <!-- being Import that mimics the above line where DisableNetFrameworkResolutionTargets == Microsoft.NET.DisableStandardFrameworkResolution.targets --> | 100 | so this needs to be imported after |
101 | --> | ||
100 | <Target Name="GetReferenceAssemblyPaths" /> | 102 | <Target Name="GetReferenceAssemblyPaths" /> |
101 | <Target Name="GetFrameworkPaths" /> | 103 | <Target Name="GetFrameworkPaths" /> |
102 | |||
103 | <PropertyGroup> | 104 | <PropertyGroup> |
104 | <_TargetFrameworkDirectories /> | 105 | <_TargetFrameworkDirectories /> |
105 | <FrameworkPathOverride /> | 106 | <FrameworkPathOverride /> |
106 | <TargetFrameworkDirectory /> | 107 | <TargetFrameworkDirectory /> |
107 | |||
108 | <NoStdLib>true</NoStdLib> | 108 | <NoStdLib>true</NoStdLib> |
109 | </PropertyGroup> | 109 | </PropertyGroup> |
110 | <!-- end DisableNetFrameworkResolutionTargets == Microsoft.NET.DisableStandardFrameworkResolution.targets --> | 110 | <!-- end Microsoft.NET.DisableStandardFrameworkResolution.targets --> |
111 | 111 | ||
112 | <PropertyGroup> | 112 | <PropertyGroup> |
113 | <!-- We don't target any frameworks, so clear what the Microsoft.Common.targets set --> | 113 | <!-- We don't target any frameworks, so clear what the Microsoft.Common.targets set --> |
@@ -182,9 +182,8 @@ | |||
182 | <WixExtension Include="$(WixExtension)" Condition=" '$(WixExtension)' != '' " /> | 182 | <WixExtension Include="$(WixExtension)" Condition=" '$(WixExtension)' != '' " /> |
183 | </ItemGroup> | 183 | </ItemGroup> |
184 | 184 | ||
185 | <!-- Defaut Compiler properties. --> | 185 | <!-- Default Compiler properties. --> |
186 | <PropertyGroup> | 186 | <PropertyGroup> |
187 | <!-- TODO: This probably doesn't work any longer since Platform won't be defined until Microsoft.Common.targets is included --> | ||
188 | <InstallerPlatform Condition=" '$(InstallerPlatform)' == '' and '$(Platform)' != 'AnyCPU' and '$(Platform)' != 'Any CPU' ">$(Platform)</InstallerPlatform> | 187 | <InstallerPlatform Condition=" '$(InstallerPlatform)' == '' and '$(Platform)' != 'AnyCPU' and '$(Platform)' != 'Any CPU' ">$(Platform)</InstallerPlatform> |
189 | </PropertyGroup> | 188 | </PropertyGroup> |
190 | 189 | ||
@@ -192,10 +191,6 @@ | |||
192 | <ItemGroup> | 191 | <ItemGroup> |
193 | <BindInputPaths Include="$(BindInputPaths)" Condition=" '$(BindInputPaths)' != '' " /> | 192 | <BindInputPaths Include="$(BindInputPaths)" Condition=" '$(BindInputPaths)' != '' " /> |
194 | <LinkerBindInputPaths Include="$(LinkerBindInputPaths)" Condition=" '$(LinkerBindInputPaths)' != '' " /> | 193 | <LinkerBindInputPaths Include="$(LinkerBindInputPaths)" Condition=" '$(LinkerBindInputPaths)' != '' " /> |
195 | </ItemGroup> | ||
196 | |||
197 | <!-- Default Lit and Light "properties" --> | ||
198 | <ItemGroup> | ||
199 | <LinkerBindInputPaths Condition=" '@(LinkerBindInputPaths)' == '' " Include="@(BindInputPaths)" /> | 194 | <LinkerBindInputPaths Condition=" '@(LinkerBindInputPaths)' == '' " Include="@(BindInputPaths)" /> |
200 | </ItemGroup> | 195 | </ItemGroup> |
201 | 196 | ||