diff options
author | Bob Arnson <bob@firegiant.com> | 2020-06-25 16:40:41 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2020-06-25 16:44:41 -0400 |
commit | 37440a2e80c30cdce283bc570d92afe94430a345 (patch) | |
tree | 1b1fa1770ea595db5d016905d622842b76307d64 | |
parent | 431ac2dcd9823fa0abbbcb16b833a83e3bd4faf9 (diff) | |
download | wix-37440a2e80c30cdce283bc570d92afe94430a345.tar.gz wix-37440a2e80c30cdce283bc570d92afe94430a345.tar.bz2 wix-37440a2e80c30cdce283bc570d92afe94430a345.zip |
Support SDK-style projects with MSBuild SDK assets.
-rw-r--r-- | src/WixToolset.MSBuild/Sdk/Sdk.props | 22 | ||||
-rw-r--r-- | src/WixToolset.MSBuild/Sdk/Sdk.targets | 15 | ||||
-rw-r--r-- | src/WixToolset.MSBuild/WixToolset.MSBuild.csproj | 2 | ||||
-rw-r--r-- | src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec | 1 |
4 files changed, 40 insertions, 0 deletions
diff --git a/src/WixToolset.MSBuild/Sdk/Sdk.props b/src/WixToolset.MSBuild/Sdk/Sdk.props new file mode 100644 index 00000000..acbe994c --- /dev/null +++ b/src/WixToolset.MSBuild/Sdk/Sdk.props | |||
@@ -0,0 +1,22 @@ | |||
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 | |||
3 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0"> | ||
4 | <PropertyGroup> | ||
5 | <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
6 | </PropertyGroup> | ||
7 | |||
8 | <PropertyGroup> | ||
9 | <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\wix.targets'))</WixTargetsPath> | ||
10 | </PropertyGroup> | ||
11 | |||
12 | <PropertyGroup> | ||
13 | <EnableDefaultItems Condition=" '$(EnableDefaultItems)' == '' ">true</EnableDefaultItems> | ||
14 | <EnableDefaultCompileItems Condition=" '$(EnableDefaultCompileItems)' == '' ">true</EnableDefaultCompileItems> | ||
15 | <EnableDefaultEmbeddedResourceItems Condition=" '$(EnableDefaultEmbeddedResourceItems)' == '' ">true</EnableDefaultEmbeddedResourceItems> | ||
16 | </PropertyGroup> | ||
17 | |||
18 | <ItemGroup Condition=" '$(EnableDefaultItems)' == 'true' "> | ||
19 | <Compile Include="**/*.wxs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" Condition=" '$(EnableDefaultCompileItems)' == 'true' " /> | ||
20 | <EmbeddedResource Include="**/*.wxl" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " /> | ||
21 | </ItemGroup> | ||
22 | </Project> | ||
diff --git a/src/WixToolset.MSBuild/Sdk/Sdk.targets b/src/WixToolset.MSBuild/Sdk/Sdk.targets new file mode 100644 index 00000000..e21cf5c6 --- /dev/null +++ b/src/WixToolset.MSBuild/Sdk/Sdk.targets | |||
@@ -0,0 +1,15 @@ | |||
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 | |||
3 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0"> | ||
4 | <PropertyGroup> | ||
5 | <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
6 | </PropertyGroup> | ||
7 | |||
8 | <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' and Exists('$(WixTargetsPath)')" /> | ||
9 | |||
10 | <PropertyGroup> | ||
11 | <DefaultItemExcludes Condition=" '$(BaseOutputPath)' != '' ">$(DefaultItemExcludes);$(BaseOutputPath)**</DefaultItemExcludes> | ||
12 | <DefaultItemExcludes Condition=" '$(BaseIntermediateOutputPath)' != '' ">$(DefaultItemExcludes);$(BaseIntermediateOutputPath)**</DefaultItemExcludes> | ||
13 | <DefaultExcludesInProjectFolder>$(DefaultItemExcludesInProjectFolder);**/.*/**</DefaultExcludesInProjectFolder> | ||
14 | </PropertyGroup> | ||
15 | </Project> | ||
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj b/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj index ba67660c..a145c864 100644 --- a/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj +++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj | |||
@@ -17,6 +17,8 @@ | |||
17 | <Content Include="tools\wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" /> | 17 | <Content Include="tools\wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" /> |
18 | <Content Include="tools\wix.signing.targets" CopyToOutputDirectory="PreserveNewest" /> | 18 | <Content Include="tools\wix.signing.targets" CopyToOutputDirectory="PreserveNewest" /> |
19 | <Content Include="tools\wix.targets" CopyToOutputDirectory="PreserveNewest" /> | 19 | <Content Include="tools\wix.targets" CopyToOutputDirectory="PreserveNewest" /> |
20 | <Content Include="Sdk\Sdk.props" CopyToOutputDirectory="PreserveNewest" /> | ||
21 | <Content Include="Sdk\Sdk.targets" CopyToOutputDirectory="PreserveNewest" /> | ||
20 | </ItemGroup> | 22 | </ItemGroup> |
21 | 23 | ||
22 | <ItemGroup> | 24 | <ItemGroup> |
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec b/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec index be04d21b..591b63a6 100644 --- a/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec +++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | <files> | 13 | <files> |
14 | <file src="build\**\*" target="build" /> | 14 | <file src="build\**\*" target="build" /> |
15 | <file src="Sdk\**\*" target="Sdk" /> | ||
15 | <file src="tools\**\*" target="tools" /> | 16 | <file src="tools\**\*" target="tools" /> |
16 | </files> | 17 | </files> |
17 | </package> | 18 | </package> |