diff options
author | Rob Mensching <rob@firegiant.com> | 2018-07-21 07:36:34 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2018-07-21 07:36:34 -0700 |
commit | 306f1d0c528cb6c151594ff96a41b5c01a5c4d9b (patch) | |
tree | 95deb0884b59decc082eae7adf5d65d45c5f3848 /src/WixToolset.MSBuild | |
parent | 6fc54af07b10742e883f3a39ef0114e55e6a36a0 (diff) | |
download | wix-306f1d0c528cb6c151594ff96a41b5c01a5c4d9b.tar.gz wix-306f1d0c528cb6c151594ff96a41b5c01a5c4d9b.tar.bz2 wix-306f1d0c528cb6c151594ff96a41b5c01a5c4d9b.zip |
Integrate tools from Core project
Diffstat (limited to 'src/WixToolset.MSBuild')
-rw-r--r-- | src/WixToolset.MSBuild/WixToolset.MSBuild.csproj | 28 | ||||
-rw-r--r-- | src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec | 21 | ||||
-rw-r--r-- | src/WixToolset.MSBuild/WixToolset.MSBuild.props | 9 |
3 files changed, 58 insertions, 0 deletions
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj b/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj new file mode 100644 index 00000000..76e42911 --- /dev/null +++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj | |||
@@ -0,0 +1,28 @@ | |||
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>WiX Toolset MSBuild integration</Description> | ||
9 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> | ||
10 | <NuspecBasePath>$(OutputPath)publish\WixToolset.MSBuild\</NuspecBasePath> | ||
11 | <NuspecProperties>Id=$(MSBuildThisFileName);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description)</NuspecProperties> | ||
12 | </PropertyGroup> | ||
13 | |||
14 | <ItemGroup> | ||
15 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> | ||
16 | </ItemGroup> | ||
17 | |||
18 | <PropertyGroup> | ||
19 | <GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetNuspecVersion</GenerateNuspecDependsOn> | ||
20 | </PropertyGroup> | ||
21 | <Target Name="SetNuspecVersion"> | ||
22 | <Error Text="Cannot pack $(MSBuildThisFileName) until all projects are published to: '$(NuspecBasePath)'. Run appveyor.cmd to publish projects properly." Condition=" !Exists('$(NuspecBasePath)') " /> | ||
23 | |||
24 | <PropertyGroup> | ||
25 | <NuspecProperties>$(NuspecProperties);Version=$(Version);ProjectFolder=$(MSBuildThisFileDirectory)</NuspecProperties> | ||
26 | </PropertyGroup> | ||
27 | </Target> | ||
28 | </Project> | ||
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec b/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec new file mode 100644 index 00000000..1a21315a --- /dev/null +++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.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="$projectFolder$$id$.props" target="build" /> | ||
15 | <file src="net461\*" target="tools\net461" /> | ||
16 | <file src="net461\runtimes\win-x86\native\*.exe" target="tools\net461" /> | ||
17 | <file src="netcoreapp2.1\*" target="tools\netcoreapp2.1" /> | ||
18 | <file src="netcoreapp2.1\runtimes\**" target="tools\netcoreapp2.1\runtimes" /> | ||
19 | <file src="netcoreapp2.1\runtimes\win-x86\native\*.exe" target="tools\netcoreapp2.1" /> | ||
20 | </files> | ||
21 | </package> | ||
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.props b/src/WixToolset.MSBuild/WixToolset.MSBuild.props new file mode 100644 index 00000000..b1d207f4 --- /dev/null +++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.props | |||
@@ -0,0 +1,9 @@ | |||
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 Condition=" '$(WixTargetsPath)' == '' and '$(MSBuildRuntimeType)' == 'Core' ">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\netcoreapp2.1\wix.targets'))</WixTargetsPath> | ||
7 | <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\net461\wix.targets'))</WixTargetsPath> | ||
8 | </PropertyGroup> | ||
9 | </Project> | ||