diff options
author | Rob Mensching <rob@firegiant.com> | 2021-02-28 17:05:45 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-02-28 17:07:44 -0800 |
commit | 2db1935429110622a756960289857c28e7b1d366 (patch) | |
tree | c3167f808ed8108b678d89ab9d3e590c4de1bc28 /src | |
parent | 92fb1113afda38a9c764cb2d899626745bbdfa3c (diff) | |
download | wix-2db1935429110622a756960289857c28e7b1d366.tar.gz wix-2db1935429110622a756960289857c28e7b1d366.tar.bz2 wix-2db1935429110622a756960289857c28e7b1d366.zip |
Update to latest build process to build .snupkg with only the .pdbs
Diffstat (limited to 'src')
-rw-r--r-- | src/Directory.Build.props | 4 | ||||
-rw-r--r-- | src/Directory.Build.targets | 5 | ||||
-rw-r--r-- | src/Directory.csproj.props (renamed from src/CSharp.Build.props) | 2 | ||||
-rw-r--r-- | src/Directory.csproj.targets | 26 | ||||
-rw-r--r-- | src/Directory.vcxproj.props (renamed from src/Cpp.Build.props) | 5 | ||||
-rw-r--r-- | src/wixext/WixToolset.Dependency.wixext.csproj | 8 | ||||
-rw-r--r-- | src/wixext/WixToolset.Dependency.wixext.nuspec | 25 |
7 files changed, 64 insertions, 11 deletions
diff --git a/src/Directory.Build.props b/src/Directory.Build.props index f83cc154..b3c6287c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props | |||
@@ -22,8 +22,6 @@ | |||
22 | <Product>WiX Toolset</Product> | 22 | <Product>WiX Toolset</Product> |
23 | </PropertyGroup> | 23 | </PropertyGroup> |
24 | 24 | ||
25 | <Import Project="CSharp.Build.props" Condition=" '$(MSBuildProjectExtension)'=='.csproj' and Exists('CSharp.Build.props') " /> | 25 | <Import Project="Directory$(MSBuildProjectExtension).props" Condition=" Exists('Directory$(MSBuildProjectExtension).props') " /> |
26 | <Import Project="Cpp.Build.props" Condition=" Exists('Cpp.Build.props') And '$(MSBuildProjectExtension)'=='.vcxproj' " /> | ||
27 | <Import Project="Wix.Build.props" Condition=" Exists('Wix.Build.props') And '$(MSBuildProjectExtension)'=='.wixproj' " /> | ||
28 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> | 26 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> |
29 | </Project> | 27 | </Project> |
diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index dac7452a..2fcc765a 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets | |||
@@ -40,9 +40,12 @@ | |||
40 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> | 40 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> |
41 | 41 | ||
42 | <!-- Remove the package references that are now referenced as projects --> | 42 | <!-- Remove the package references that are now referenced as projects --> |
43 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)' )"/> | 43 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)')"/> |
44 | </ItemGroup> | 44 | </ItemGroup> |
45 | 45 | ||
46 | </When> | 46 | </When> |
47 | </Choose> | 47 | </Choose> |
48 | |||
49 | <Import Project="Directory$(MSBuildProjectExtension).targets" Condition=" Exists('Directory$(MSBuildProjectExtension).targets') " /> | ||
50 | <Import Project="Custom.Build.targets" Condition=" Exists('Custom.Build.targets') " /> | ||
48 | </Project> | 51 | </Project> |
diff --git a/src/CSharp.Build.props b/src/Directory.csproj.props index b12f4c6e..81d24ad1 100644 --- a/src/CSharp.Build.props +++ b/src/Directory.csproj.props | |||
@@ -5,7 +5,9 @@ | |||
5 | --> | 5 | --> |
6 | <Project> | 6 | <Project> |
7 | <PropertyGroup> | 7 | <PropertyGroup> |
8 | <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> | ||
8 | <SignAssembly>true</SignAssembly> | 9 | <SignAssembly>true</SignAssembly> |
9 | <AssemblyOriginatorKeyFile>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)wix.snk))</AssemblyOriginatorKeyFile> | 10 | <AssemblyOriginatorKeyFile>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)wix.snk))</AssemblyOriginatorKeyFile> |
11 | <NBGV_EmitThisAssemblyClass>false</NBGV_EmitThisAssemblyClass> | ||
10 | </PropertyGroup> | 12 | </PropertyGroup> |
11 | </Project> | 13 | </Project> |
diff --git a/src/Directory.csproj.targets b/src/Directory.csproj.targets new file mode 100644 index 00000000..c3270426 --- /dev/null +++ b/src/Directory.csproj.targets | |||
@@ -0,0 +1,26 @@ | |||
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 | Do NOT modify this file. Update the canonical version in Home\repo-template\src\Directory.csproj.targets | ||
4 | then update all of the repos. | ||
5 | --> | ||
6 | <Project> | ||
7 | <PropertyGroup> | ||
8 | <CreateDocumentation Condition=" '$(CreateDocumentationFile)'!='true' ">false</CreateDocumentation> | ||
9 | <DocumentationFile Condition=" '$(CreateDocumentationFile)'=='true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
10 | </PropertyGroup> | ||
11 | |||
12 | <Target Name="SetNuspecProperties" DependsOnTargets="InitializeSourceControlInformation" AfterTargets="GetBuildVersion" | ||
13 | Condition=" Exists('$(MSBuildProjectName).nuspec') "> | ||
14 | <PropertyGroup> | ||
15 | <ProjectUrl Condition=" '$(ProjectUrl)'=='' and '$(PrivateRepositoryUrl)'!='' ">$(PrivateRepositoryUrl.Replace('.git',''))</ProjectUrl> | ||
16 | |||
17 | <NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> | ||
18 | <NuspecBasePath Condition=" '$(NuspecBasePath)'=='' ">$(OutputPath)..\</NuspecBasePath> | ||
19 | <NuspecProperties>$(NuspecProperties);Id=$(PackageId);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description);Title=$(Title)</NuspecProperties> | ||
20 | <NuspecProperties>$(NuspecProperties);Version=$(PackageVersion);RepositoryCommit=$(SourceRevisionId);RepositoryType=$(RepositoryType);RepositoryUrl=$(PrivateRepositoryUrl);ProjectFolder=$(MSBuildProjectDirectory)\;ProjectUrl=$(ProjectUrl)</NuspecProperties> | ||
21 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
22 | <SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
23 | </PropertyGroup> | ||
24 | </Target> | ||
25 | |||
26 | </Project> | ||
diff --git a/src/Cpp.Build.props b/src/Directory.vcxproj.props index 8c7304ee..664bc1d8 100644 --- a/src/Cpp.Build.props +++ b/src/Directory.vcxproj.props | |||
@@ -6,6 +6,11 @@ | |||
6 | <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform> | 6 | <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform> |
7 | <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir> | 7 | <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir> |
8 | <OutDir>$(OutputPath)$(Platform)\</OutDir> | 8 | <OutDir>$(OutputPath)$(Platform)\</OutDir> |
9 | |||
10 | <!-- NBGV properties --> | ||
11 | <AssemblyCompany>$(Company)</AssemblyCompany> | ||
12 | <AssemblyCopyright>$(Copyright)</AssemblyCopyright> | ||
13 | |||
9 | <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers> | 14 | <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers> |
10 | <NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker> | 15 | <NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker> |
11 | </PropertyGroup> | 16 | </PropertyGroup> |
diff --git a/src/wixext/WixToolset.Dependency.wixext.csproj b/src/wixext/WixToolset.Dependency.wixext.csproj index fcdab28c..b2663231 100644 --- a/src/wixext/WixToolset.Dependency.wixext.csproj +++ b/src/wixext/WixToolset.Dependency.wixext.csproj | |||
@@ -9,8 +9,7 @@ | |||
9 | <Description>WiX Toolset Dependency Extension</Description> | 9 | <Description>WiX Toolset Dependency Extension</Description> |
10 | <Title>WiX Toolset Dependency Extension</Title> | 10 | <Title>WiX Toolset Dependency Extension</Title> |
11 | <IsTool>true</IsTool> | 11 | <IsTool>true</IsTool> |
12 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | 12 | <IncludeSymbols>true</IncludeSymbols> |
13 | <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
14 | </PropertyGroup> | 13 | </PropertyGroup> |
15 | 14 | ||
16 | <ItemGroup> | 15 | <ItemGroup> |
@@ -18,11 +17,6 @@ | |||
18 | </ItemGroup> | 17 | </ItemGroup> |
19 | 18 | ||
20 | <ItemGroup> | 19 | <ItemGroup> |
21 | <Content Include="$(MSBuildThisFileName).targets" PackagePath="build" /> | ||
22 | <Content Include="$(OutputPath)..\**\*.pdb" PackagePath="pdbs\%(RelativeFolder)" /> | ||
23 | </ItemGroup> | ||
24 | |||
25 | <ItemGroup> | ||
26 | <ProjectReference Include="..\wixlib\dependency.wixproj" ReferenceOutputAssembly="false" Condition=" '$(NCrunch)'=='' " /> | 20 | <ProjectReference Include="..\wixlib\dependency.wixproj" ReferenceOutputAssembly="false" Condition=" '$(NCrunch)'=='' " /> |
27 | </ItemGroup> | 21 | </ItemGroup> |
28 | 22 | ||
diff --git a/src/wixext/WixToolset.Dependency.wixext.nuspec b/src/wixext/WixToolset.Dependency.wixext.nuspec new file mode 100644 index 00000000..ba3eaade --- /dev/null +++ b/src/wixext/WixToolset.Dependency.wixext.nuspec | |||
@@ -0,0 +1,25 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
3 | <metadata minClientVersion="4.0"> | ||
4 | <id>$id$</id> | ||
5 | <version>$version$</version> | ||
6 | <title>$title$</title> | ||
7 | <description>$description$</description> | ||
8 | <authors>$authors$</authors> | ||
9 | <license type="expression">MS-RL</license> | ||
10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
11 | <copyright>$copyright$</copyright> | ||
12 | <projectUrl>$projectUrl$</projectUrl> | ||
13 | <repository type="$repositorytype$" url="$repositoryurl$" commit="$repositorycommit$" /> | ||
14 | </metadata> | ||
15 | |||
16 | <files> | ||
17 | <file src="$projectFolder$$id$.targets" target="build" /> | ||
18 | |||
19 | <file src="netstandard2.0\$id$.dll" target="tools" /> | ||
20 | |||
21 | <file src="ARM64\*.pdb" target="pdbs\ARM64" /> | ||
22 | <file src="x86\*.pdb" target="pdbs\x86" /> | ||
23 | <file src="x64\*.pdb" target="pdbs\x64" /> | ||
24 | </files> | ||
25 | </package> | ||