Skip to content

Commit 51726fb

Browse files
committed
Adding Nuget Pack msbuild task
The msbuild version that ships with mono doens't include the nuget pack task so we need to include this manually.
1 parent 50ae328 commit 51726fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

projects/client/RabbitMQ.Client/RabbitMQ.Client.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<NuGetBuildTasksPackTargets>junk-value-to-avoid-conflicts</NuGetBuildTasksPackTargets>
4+
</PropertyGroup>
25

36
<PropertyGroup>
47
<Description>The RabbitMQ .NET client is the official client library for C# (and, implicitly, other .NET languages)</Description>
5-
<VersionPrefix>5.3.2</VersionPrefix>
8+
<VersionPrefix>5.0.0</VersionPrefix>
69
<TargetFrameworks>net451;netstandard1.5</TargetFrameworks>
710
<NoWarn>$(NoWarn);CS1591</NoWarn>
811
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -41,6 +44,7 @@
4144
<PropertyGroup Condition=" '$(Configuration)' == 'SignedRelease' ">
4245
<DelaySign>true</DelaySign>
4346
<OutputType>Library</OutputType>
47+
<Optimize>true</Optimize>
4448
<AssemblyOriginatorKeyFile>../../../rabbit.snk</AssemblyOriginatorKeyFile>
4549
<SignAssembly>true</SignAssembly>
4650
</PropertyGroup>
@@ -64,4 +68,7 @@
6468
<PackageReference Include="System.Threading.Timer" Version="4.3.0" />
6569
</ItemGroup>
6670

71+
<ItemGroup>
72+
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="4.0.0" PrivateAssets="All" />
73+
</ItemGroup>
6774
</Project>

0 commit comments

Comments
 (0)