Skip to content

Commit 1ff1010

Browse files
Set ProductVersion by having a common props file (#142)
* set ProductVersion by having a common props file * new line... * address feedback * dongo feedback
1 parent 884c22a commit 1ff1010

5 files changed

+17
-6
lines changed

PowerShellWorker.Common.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project>
2+
<PropertyGroup>
3+
<BuildNumber Condition="$(APPVEYOR) != ''">$(APPVEYOR_BUILD_NUMBER)</BuildNumber>
4+
<BuildNumber Condition="$(APPVEYOR) == ''">$([System.DateTime]::Now.ToString(`MMdd`))</BuildNumber>
5+
<Version>0.1.$(BuildNumber)-preview</Version>
6+
<PackageTags>PowerShell;AzureFunctions;language;Azure;</PackageTags>
7+
<PackageLicenseUrl>https://github.com/Azure/azure-functions-powershell-worker/blob/master/LICENSE</PackageLicenseUrl>
8+
<RepositoryType>git</RepositoryType>
9+
<RepositoryUrl>https://github.com/Azure/azure-functions-powershell-worker</RepositoryUrl>
10+
</PropertyGroup>
11+
</Project>

package/Microsoft.Azure.Functions.PowerShellWorker.Package.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ Copyright (c) Microsoft. All rights reserved.
33
Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
-->
55
<Project Sdk="Microsoft.NET.Sdk">
6+
<Import Project="..\PowerShellWorker.Common.props" />
67
<PropertyGroup>
78
<TargetFramework>netcoreapp2.2</TargetFramework>
89
<NoBuild>true</NoBuild>
910
<IncludeBuildOutput>false</IncludeBuildOutput>
1011
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1112
<NoWarn>NU5100;NU5123</NoWarn>
1213

13-
<BuildNumber Condition="$(APPVEYOR) != ''">$(APPVEYOR_BUILD_NUMBER)</BuildNumber>
14-
<BuildNumber Condition="$(APPVEYOR) == ''">9999</BuildNumber>
15-
1614
<NuspecFile>Microsoft.Azure.Functions.PowerShellWorker.nuspec</NuspecFile>
17-
<NuspecProperties>configuration=$(Configuration);targetFramework=$(TargetFramework);BuildNumber=$(BuildNumber)</NuspecProperties>
15+
<NuspecProperties>configuration=$(Configuration);targetFramework=$(TargetFramework);version=$(Version)</NuspecProperties>
1816
</PropertyGroup>
1917
</Project>

package/Microsoft.Azure.Functions.PowerShellWorker.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Licensed under the MIT license. See LICENSE file in the project root for full li
66
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
77
<metadata>
88
<id>Microsoft.Azure.Functions.PowerShellWorker</id>
9-
<version>0.1.$BuildNumber$-alpha</version>
9+
<!-- Needed to specify the version here for the nuspec to be valid -->
10+
<version>$version$</version>
1011
<title>Azure Function PowerShell Language Worker</title>
1112
<authors>Microsoft</authors>
1213
<owners>Microsoft</owners>

src/Microsoft.Azure.Functions.PowerShellWorker.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Copyright (c) Microsoft. All rights reserved.
33
Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
-->
55
<Project Sdk="Microsoft.NET.Sdk">
6+
<Import Project="..\PowerShellWorker.Common.props" />
67
<PropertyGroup>
78
<OutputType>Exe</OutputType>
89
<TargetFramework>netcoreapp2.2</TargetFramework>

test/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
2+
<Import Project="..\PowerShellWorker.Common.props" />
33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.2</TargetFramework>
55

0 commit comments

Comments
 (0)