mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-10-05 21:10:51 +00:00
Use the AssemblyFileVersion for the package version, but default to 1.0.0.0 if it's not available.
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
<PackagePath>$(TargetDir)$(PackageName)</PackagePath>
|
||||
<CreateUser Condition="'$(CreateUser)' == ''">false</CreateUser>
|
||||
<InstallService Condition="'$(InstallService)' == ''">false</InstallService>
|
||||
|
||||
<!-- Use the AssemblyFileVersion as the PackageVersion, but default to 1.0.0.0 if an AssemblyFileVersion has not been set. -->
|
||||
<PackageVersion Condition="'$(AssemblyFileVersion)' != ''">$(AssemblyFileVersion)</PackageVersion>
|
||||
<PackageVersion Condition="'$(AssemblyFileVersion)' == ''">1.0.0.0</PackageVersion>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
|
||||
@@ -31,7 +35,7 @@
|
||||
RpmPath="$(RpmPath)"
|
||||
CpioPath="$(CpioPath)"
|
||||
Prefix="$(Prefix)"
|
||||
Version="$(AssemblyFileVersion)"
|
||||
Version="$(PackageVersion)"
|
||||
Release="$(Release)"
|
||||
PackageName="$(PackageName)"
|
||||
Content="@(Content)"
|
||||
|
||||
Reference in New Issue
Block a user