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