diff options
Diffstat (limited to 'src/WixToolset.Sdk/WixToolset.Sdk.csproj')
-rw-r--r-- | src/WixToolset.Sdk/WixToolset.Sdk.csproj | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/WixToolset.Sdk/WixToolset.Sdk.csproj b/src/WixToolset.Sdk/WixToolset.Sdk.csproj new file mode 100644 index 00000000..32bd66c0 --- /dev/null +++ b/src/WixToolset.Sdk/WixToolset.Sdk.csproj | |||
@@ -0,0 +1,38 @@ | |||
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>netcoreapp2.1</TargetFramework> | ||
7 | <IncludeBuildOutput>false</IncludeBuildOutput> | ||
8 | <Description>WiX Toolset MSBuild integration</Description> | ||
9 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> | ||
10 | <NuspecBasePath>$(OutputPath)publish\WixToolset.Sdk\</NuspecBasePath> | ||
11 | <NuspecProperties>Id=$(MSBuildThisFileName);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description)</NuspecProperties> | ||
12 | </PropertyGroup> | ||
13 | |||
14 | <ItemGroup> | ||
15 | <Content Include="build\$(MSBuildThisFileName).props" CopyToOutputDirectory="PreserveNewest" /> | ||
16 | <Content Include="tools\wix.ca.targets" CopyToOutputDirectory="PreserveNewest" /> | ||
17 | <Content Include="tools\wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" /> | ||
18 | <Content Include="tools\wix.signing.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" /> | ||
22 | </ItemGroup> | ||
23 | |||
24 | <ItemGroup> | ||
25 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> | ||
26 | </ItemGroup> | ||
27 | |||
28 | <PropertyGroup> | ||
29 | <GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetNuspecVersion</GenerateNuspecDependsOn> | ||
30 | </PropertyGroup> | ||
31 | <Target Name="SetNuspecVersion"> | ||
32 | <Error Text="Cannot pack $(MSBuildThisFileName) until all projects are published to: '$(NuspecBasePath)'. Run appveyor.cmd to publish projects properly." Condition=" !Exists('$(NuspecBasePath)') " /> | ||
33 | |||
34 | <PropertyGroup> | ||
35 | <NuspecProperties>$(NuspecProperties);Version=$(Version);ProjectFolder=$(MSBuildThisFileDirectory)</NuspecProperties> | ||
36 | </PropertyGroup> | ||
37 | </Target> | ||
38 | </Project> | ||