diff options
author | Rob Mensching <rob@firegiant.com> | 2021-03-01 08:26:35 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-03-01 12:18:32 -0800 |
commit | 456fe41a126412b822371a338870ec39dfcdf4ad (patch) | |
tree | 365dac57ef40dbbb4d4366488205b5ca679a8af7 /src | |
parent | aa072ea259b9685804134debda936436b142e12f (diff) | |
download | wix-456fe41a126412b822371a338870ec39dfcdf4ad.tar.gz wix-456fe41a126412b822371a338870ec39dfcdf4ad.tar.bz2 wix-456fe41a126412b822371a338870ec39dfcdf4ad.zip |
Update to latest build infrastructure
Diffstat (limited to 'src')
-rw-r--r-- | src/Directory.Build.props | 4 | ||||
-rw-r--r-- | src/Directory.Build.targets | 9 | ||||
-rw-r--r-- | src/Directory.csproj.props (renamed from src/CSharp.Build.props) | 0 | ||||
-rw-r--r-- | src/Directory.csproj.targets | 25 |
4 files changed, 28 insertions, 10 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 cb988931..2fcc765a 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets | |||
@@ -10,11 +10,6 @@ | |||
10 | --> | 10 | --> |
11 | <Project> | 11 | <Project> |
12 | <PropertyGroup> | 12 | <PropertyGroup> |
13 | <CreateDocumentation Condition=" '$(CreateDocumentationFile)'!='true' ">false</CreateDocumentation> | ||
14 | <DocumentationFile Condition=" '$(CreateDocumentationFile)'=='true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
15 | </PropertyGroup> | ||
16 | |||
17 | <PropertyGroup> | ||
18 | <ReplacePackageReferences>true</ReplacePackageReferences> | 13 | <ReplacePackageReferences>true</ReplacePackageReferences> |
19 | <TheSolutionPath Condition=" '$(NCrunch)'=='' ">$(SolutionPath)</TheSolutionPath> | 14 | <TheSolutionPath Condition=" '$(NCrunch)'=='' ">$(SolutionPath)</TheSolutionPath> |
20 | <TheSolutionPath Condition=" '$(NCrunch)'=='1' ">$(NCrunchOriginalSolutionPath)</TheSolutionPath> | 15 | <TheSolutionPath Condition=" '$(NCrunch)'=='1' ">$(NCrunchOriginalSolutionPath)</TheSolutionPath> |
@@ -45,12 +40,12 @@ | |||
45 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> | 40 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> |
46 | 41 | ||
47 | <!-- Remove the package references that are now referenced as projects --> | 42 | <!-- Remove the package references that are now referenced as projects --> |
48 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)' )"/> | 43 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)')"/> |
49 | </ItemGroup> | 44 | </ItemGroup> |
50 | 45 | ||
51 | </When> | 46 | </When> |
52 | </Choose> | 47 | </Choose> |
53 | 48 | ||
54 | <Import Project="Wix.Build.targets" Condition=" Exists('Wix.Build.targets') And '$(MSBuildProjectExtension)'=='.wixproj' " /> | 49 | <Import Project="Directory$(MSBuildProjectExtension).targets" Condition=" Exists('Directory$(MSBuildProjectExtension).targets') " /> |
55 | <Import Project="Custom.Build.targets" Condition=" Exists('Custom.Build.targets') " /> | 50 | <Import Project="Custom.Build.targets" Condition=" Exists('Custom.Build.targets') " /> |
56 | </Project> | 51 | </Project> |
diff --git a/src/CSharp.Build.props b/src/Directory.csproj.props index 81d24ad1..81d24ad1 100644 --- a/src/CSharp.Build.props +++ b/src/Directory.csproj.props | |||
diff --git a/src/Directory.csproj.targets b/src/Directory.csproj.targets new file mode 100644 index 00000000..623228ef --- /dev/null +++ b/src/Directory.csproj.targets | |||
@@ -0,0 +1,25 @@ | |||
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 | </PropertyGroup> | ||
23 | </Target> | ||
24 | |||
25 | </Project> | ||