Skip to content

Commit 60dd12f

Browse files
Backport fix for nuget packaging during build (Azure#868)
* Backport fix for nuget packaging during build * Use 99.99.99 version for PR builds
1 parent 9a7899c commit 60dd12f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

builds/azure-pipelines/build-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ stages:
4444
parameters:
4545
solution: '$(solution)'
4646
configuration: '$(configuration)'
47-
nugetVersion: '1.0.0-test'
48-
binariesVersion: '1.0.0'
49-
supportedVersion: '1.*-*'
47+
nugetVersion: '99.99.99-test'
48+
binariesVersion: '99.99.99'
49+
supportedVersion: '99.99.99'

src/Microsoft.Azure.WebJobs.Extensions.Sql.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
<Target Name="PackAndCopyNupkg" AfterTargets="Build">
3737
<!-- Removed the GeneratePackageOnBuild and adding this explicit Pack command to run post build
3838
and also adding the copy package to local-packages to be available for the worker extension project. -->
39-
<Exec Command="dotnet pack &quot;$(MSBuildProjectDirectory)\$(PackageId).csproj&quot; --no-build --include-symbols" />
39+
<Exec Command="dotnet pack &quot;$(MSBuildProjectDirectory)\$(PackageId).csproj&quot; --no-build --include-symbols -p:Version=$(Version)" />
4040
<ItemGroup>
4141
<_Packages Include=".\bin\$(Configuration)\*.nupkg" />
4242
</ItemGroup>
4343
<Copy SourceFiles="@(_Packages)" DestinationFolder="..\local-packages" />
4444
<Message Text="Copied sql .nupkg to local-packages" Importance="high" />
4545
</Target>
4646
<Target Name="RemoveNugetPackageCache" BeforeTargets="Build">
47-
<RemoveDir Directories="$(NugetPackageRoot)\$(PackageId.ToLower())\99.99.99"></RemoveDir>
48-
<Message Text="Deleted nuget cache for $(PackageId.ToLower())\99.99.99" Importance="high" />
47+
<RemoveDir Directories="$(NugetPackageRoot)\$(PackageId.ToLower())\$(Version)"></RemoveDir>
48+
<Message Text="Deleted nuget cache for $(PackageId.ToLower())\$(Version)" Importance="high" />
4949
</Target>
5050
</Project>

0 commit comments

Comments
 (0)