aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj9
-rw-r--r--src/WixToolset.BuildTasks/redirects/wix.ca.targets (renamed from src/WixToolset.BuildTasks/redirect.wix.ca.targets)1
-rw-r--r--src/WixToolset.BuildTasks/redirects/wix.props8
-rw-r--r--src/WixToolset.BuildTasks/redirects/wix.targets (renamed from src/WixToolset.BuildTasks/redirect.wix.targets)1
-rw-r--r--src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.csproj26
-rw-r--r--src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.nuspec21
-rw-r--r--src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj5
-rw-r--r--src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/i.txtbin1670 -> 0 bytes
-rw-r--r--src/wix/wix.csproj2
9 files changed, 63 insertions, 10 deletions
diff --git a/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj b/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj
index 34a1a9f5..ce65ea41 100644
--- a/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj
+++ b/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj
@@ -3,7 +3,7 @@
3 3
4<Project Sdk="Microsoft.NET.Sdk"> 4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup> 5 <PropertyGroup>
6 <TargetFramework>net462</TargetFramework> 6 <TargetFramework>net461</TargetFramework>
7 <Description></Description> 7 <Description></Description>
8 <Title>WiX Toolset MSBuild Tasks</Title> 8 <Title>WiX Toolset MSBuild Tasks</Title>
9 </PropertyGroup> 9 </PropertyGroup>
@@ -14,8 +14,9 @@
14 </PropertyGroup> 14 </PropertyGroup>
15 15
16 <ItemGroup> 16 <ItemGroup>
17 <Content Include="redirect.wix.targets" CopyToOutputDirectory="PreserveNewest" /> 17 <Content Include="redirects\wix.targets" CopyToOutputDirectory="PreserveNewest" />
18 <Content Include="redirect.wix.ca.targets" CopyToOutputDirectory="PreserveNewest" /> 18 <Content Include="redirects\wix.ca.targets" CopyToOutputDirectory="PreserveNewest" />
19 <Content Include="redirects\wix.props" CopyToOutputDirectory="PreserveNewest" />
19 <Content Include="wix.targets" CopyToOutputDirectory="PreserveNewest" /> 20 <Content Include="wix.targets" CopyToOutputDirectory="PreserveNewest" />
20 <Content Include="wix.ca.targets" CopyToOutputDirectory="PreserveNewest" /> 21 <Content Include="wix.ca.targets" CopyToOutputDirectory="PreserveNewest" />
21 <Content Include="wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" /> 22 <Content Include="wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" />
@@ -32,7 +33,7 @@
32 33
33 <ItemGroup> 34 <ItemGroup>
34 <PackageReference Include="Nerdbank.GitVersioning" Version="2.0.41" PrivateAssets="all" /> 35 <PackageReference Include="Nerdbank.GitVersioning" Version="2.0.41" PrivateAssets="all" />
35 <PackageReference Include="Microsoft.Build.Tasks.Core" Version="14.3" PrivateAssets="all" Condition="'$(TargetFramework)'=='net462' " /> 36 <PackageReference Include="Microsoft.Build.Tasks.Core" Version="14.3" PrivateAssets="all" Condition="'$(TargetFramework)'=='net461' " />
36 <PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.3.409" PrivateAssets="all" Condition="'$(TargetFramework)'=='netstandard2.0' " /> 37 <PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.3.409" PrivateAssets="all" Condition="'$(TargetFramework)'=='netstandard2.0' " />
37 </ItemGroup> 38 </ItemGroup>
38</Project> 39</Project>
diff --git a/src/WixToolset.BuildTasks/redirect.wix.ca.targets b/src/WixToolset.BuildTasks/redirects/wix.ca.targets
index 74e6ec3c..ecb6e09f 100644
--- a/src/WixToolset.BuildTasks/redirect.wix.ca.targets
+++ b/src/WixToolset.BuildTasks/redirects/wix.ca.targets
@@ -1,7 +1,6 @@
1<?xml version="1.0" encoding="utf-8" ?> 1<?xml version="1.0" encoding="utf-8" ?>
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 3
4
5<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> 4<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
6 <PropertyGroup> 5 <PropertyGroup>
7 <WixInstallFolder>$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WiX Toolset\v4', 'InstallFolder', null, RegistryView.Registry32))</WixInstallFolder> 6 <WixInstallFolder>$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WiX Toolset\v4', 'InstallFolder', null, RegistryView.Registry32))</WixInstallFolder>
diff --git a/src/WixToolset.BuildTasks/redirects/wix.props b/src/WixToolset.BuildTasks/redirects/wix.props
new file mode 100644
index 00000000..7448d192
--- /dev/null
+++ b/src/WixToolset.BuildTasks/redirects/wix.props
@@ -0,0 +1,8 @@
1<?xml version="1.0" encoding="utf-8"?>
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
4<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
5 <PropertyGroup>
6 <WixTargetsPath>$(MSBuildThisFileDirectory)..\tools\wix.targets</WixTargetsPath>
7 </PropertyGroup>
8</Project>
diff --git a/src/WixToolset.BuildTasks/redirect.wix.targets b/src/WixToolset.BuildTasks/redirects/wix.targets
index b40c4c36..ba354b65 100644
--- a/src/WixToolset.BuildTasks/redirect.wix.targets
+++ b/src/WixToolset.BuildTasks/redirects/wix.targets
@@ -1,7 +1,6 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
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 3
4
5<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> 4<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
6 <PropertyGroup> 5 <PropertyGroup>
7 <WixInstallFolder>$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WiX Toolset\v4', 'InstallFolder', null, RegistryView.Registry32))</WixInstallFolder> 6 <WixInstallFolder>$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WiX Toolset\v4', 'InstallFolder', null, RegistryView.Registry32))</WixInstallFolder>
diff --git a/src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.csproj b/src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.csproj
new file mode 100644
index 00000000..613c6b88
--- /dev/null
+++ b/src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.csproj
@@ -0,0 +1,26 @@
1<?xml version="1.0" encoding="utf-8"?>
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
4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup>
6 <TargetFramework>netstandard2.0</TargetFramework>
7 <IncludeBuildOutput>false</IncludeBuildOutput>
8 <Description>Internal WiX Toolset Tools</Description>
9 <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile>
10 <NuspecBasePath>$(OutputPath)publish</NuspecBasePath>
11 <NuspecProperties>Id=$(MSBuildThisFileName);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description)</NuspecProperties>
12 </PropertyGroup>
13
14 <ItemGroup>
15 <PackageReference Include="Nerdbank.GitVersioning" Version="2.0.41" PrivateAssets="all" />
16 </ItemGroup>
17
18 <Target Name="SetNuspecVersion"
19 AfterTargets="GetBuildVersion">
20 <Error Text="Cannot pack $(MSBuildThisFileName) until all projects are published to: $(NuspecBasePath). Run appveyor.cmd to publish projects properly." Condition=" !Exists('$(NuspecBasePath)') " />
21
22 <PropertyGroup>
23 <NuspecProperties>$(NuspecProperties);Version=$(Version)</NuspecProperties>
24 </PropertyGroup>
25 </Target>
26</Project>
diff --git a/src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.nuspec b/src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.nuspec
new file mode 100644
index 00000000..5879b7a5
--- /dev/null
+++ b/src/WixToolset.Core.InternalPackage/WixToolset.Core.InternalPackage.nuspec
@@ -0,0 +1,21 @@
1<?xml version="1.0" encoding="utf-8"?>
2<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3 <metadata>
4 <id>$id$</id>
5 <version>$version$</version>
6 <authors>$authors$</authors>
7 <owners>$authors$</owners>
8 <requireLicenseAcceptance>false</requireLicenseAcceptance>
9 <description>$description$</description>
10 <copyright>$copyright$</copyright>
11 </metadata>
12
13 <files>
14 <file src="redirects\wix.props" target="build" />
15
16 <file src="redirects\wix.targets" target="msbuild" />
17 <file src="redirects\wix.ca.targets" target="msbuild" />
18
19 <file src="*" target="tools" />
20 </files>
21</package>
diff --git a/src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj b/src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj
index cd956964..de3fce83 100644
--- a/src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj
+++ b/src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj
@@ -12,10 +12,7 @@
12 </PropertyGroup> 12 </PropertyGroup>
13 13
14 <PropertyGroup> 14 <PropertyGroup>
15 <WixTargetsPath>..\..\..\..\..\..\build\Debug\net462\wix.targets</WixTargetsPath> 15 <WixTargetsPath>..\..\..\..\..\..\build\Release\publish\wix.targets</WixTargetsPath>
16 <WixTargetsPath>..\..\..\..\..\..\build\Debug\netstandard2.0\wix.targets</WixTargetsPath>
17 <WixTargetsPath>..\..\..\..\..\..\build\publish\wix.targets</WixTargetsPath>
18 <WixTargetsPath>..\..\..\..\..\..\build\Debug\net462\wix.targets</WixTargetsPath>
19 </PropertyGroup> 16 </PropertyGroup>
20 17
21 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 18 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
diff --git a/src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/i.txt b/src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/i.txt
deleted file mode 100644
index 53f23c98..00000000
--- a/src/test/WixToolsetTest.BuildTasks/data/SimpleMsiPackage/MsiPackage/i.txt
+++ /dev/null
Binary files differ
diff --git a/src/wix/wix.csproj b/src/wix/wix.csproj
index f9bd6704..f183be39 100644
--- a/src/wix/wix.csproj
+++ b/src/wix/wix.csproj
@@ -13,9 +13,11 @@
13 <NoWarn>NU1701</NoWarn> 13 <NoWarn>NU1701</NoWarn>
14 </PropertyGroup> 14 </PropertyGroup>
15 15
16 <!--
16 <ItemGroup> 17 <ItemGroup>
17 <Content Include="wix.cmd" CopyToOutputDirectory="PreserveNewest" /> 18 <Content Include="wix.cmd" CopyToOutputDirectory="PreserveNewest" />
18 </ItemGroup> 19 </ItemGroup>
20 -->
19 21
20 <ItemGroup> 22 <ItemGroup>
21 <ProjectReference Include="..\WixToolset.Core\WixToolset.Core.csproj" /> 23 <ProjectReference Include="..\WixToolset.Core\WixToolset.Core.csproj" />