diff options
author | Rob Mensching <rob@firegiant.com> | 2021-04-16 23:35:06 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-04-29 16:47:06 -0700 |
commit | a2f0de28fc0f1ab71d4685c77f0b21d946f3e702 (patch) | |
tree | 585a60388d844515a21b5d8a786e5f91ff227127 /src/Directory.csproj.targets | |
parent | ae224f38e8349e2d0dfce95918571db4f18b5fba (diff) | |
download | wix-a2f0de28fc0f1ab71d4685c77f0b21d946f3e702.tar.gz wix-a2f0de28fc0f1ab71d4685c77f0b21d946f3e702.tar.bz2 wix-a2f0de28fc0f1ab71d4685c77f0b21d946f3e702.zip |
Introduce new versioning system based on GitInfo
Diffstat (limited to 'src/Directory.csproj.targets')
-rw-r--r-- | src/Directory.csproj.targets | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/Directory.csproj.targets b/src/Directory.csproj.targets index c3270426..49303a1d 100644 --- a/src/Directory.csproj.targets +++ b/src/Directory.csproj.targets | |||
@@ -9,18 +9,5 @@ | |||
9 | <DocumentationFile Condition=" '$(CreateDocumentationFile)'=='true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | 9 | <DocumentationFile Condition=" '$(CreateDocumentationFile)'=='true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> |
10 | </PropertyGroup> | 10 | </PropertyGroup> |
11 | 11 | ||
12 | <Target Name="SetNuspecProperties" DependsOnTargets="InitializeSourceControlInformation" AfterTargets="GetBuildVersion" | 12 | <Target Name="__SetAssemblyInfoFromGit" DependsOnTargets="__SetPropertiesFromGit" BeforeTargets="GetAssemblyVersion" /> |
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> | 13 | </Project> |