Skip to content

Commit ca93809

Browse files
authored
Merge pull request #779 from rabbitmq/rabbitmq-dotnet-client-768
Generate assembly attributes using MinVer and csproj
2 parents 1186f3f + 86b7049 commit ca93809

File tree

4 files changed

+17
-59
lines changed

4 files changed

+17
-59
lines changed

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,47 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>6.0.0</VersionPrefix>
54
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
65
<NoWarn>$(NoWarn);CS1591</NoWarn>
76
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
7+
<AssemblyTitle>RabbitMQ Client Library for .NET</AssemblyTitle>
8+
<Authors>VMware</Authors>
9+
<Company>VMware, Inc. or its affiliates.</Company>
10+
<Copyright>Copyright © 2007-2020 VMware, Inc. or its affiliates.</Copyright>
11+
<Description>The RabbitMQ .NET client is the official client library for C# (and, implicitly, other .NET languages)</Description>
12+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
813
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9-
<PackageTags>RabbitMQ</PackageTags>
1014
<PackageIcon>icon.png</PackageIcon>
15+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1116
<PackageProjectUrl>https://www.rabbitmq.com/dotnet.html</PackageProjectUrl>
12-
<PackageLicense>https://www.rabbitmq.com/dotnet.html</PackageLicense>
13-
<AssemblyTitle>RabbitMQ Client Library for .NET</AssemblyTitle>
14-
<Description>The RabbitMQ .NET client is the official client library for C# (and, implicitly, other .NET languages)</Description>
15-
<Company>VMware, Inc. or its affiliates.</Company>
17+
<PackageTags>rabbitmq, amqp</PackageTags>
1618
<Product>RabbitMQ</Product>
17-
<Copyright>Copyright © 2007-2020 VMware, Inc. or its affiliates.</Copyright>
18-
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1919
<PublishRepositoryUrl>true</PublishRepositoryUrl>
20-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2120
<IncludeSymbols>true</IncludeSymbols>
2221
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2322
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2423
<AssemblyOriginatorKeyFile>../rabbit.snk</AssemblyOriginatorKeyFile>
2524
<SignAssembly>true</SignAssembly>
25+
<MinVerTagPrefix>v</MinVerTagPrefix>
26+
<MinVerVerbosity>detailed</MinVerVerbosity>
27+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
28+
<PackageOutputPath>..\..\..\packages</PackageOutputPath>
2629
</PropertyGroup>
2730

2831
<ItemGroup>
2932
<Compile Include="..\..\..\gensrc\autogenerated-api-0-9-1.cs" />
30-
</ItemGroup>
31-
32-
<ItemGroup>
3333
<None Remove="icon.png" />
3434
<Content Include="icon.png" PackagePath="" />
35+
<None Include="..\..\..\LICENSE" Pack="true" PackagePath="" />
36+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
37+
<_Parameter1>Unit, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d20ec856aeeb8c3153a77faa2d80e6e43b5db93224a20cc7ae384f65f142e89730e2ff0fcc5d578bbe96fa98a7196c77329efdee4579b3814c0789e5a39b51df6edd75b602a33ceabdfcf19a3feb832f31d8254168cd7ba5700dfbca301fbf8db614ba41ba18474de0a5f4c2d51c995bc3636c641c8cbe76f45717bfcb943b5</_Parameter1>
38+
</AssemblyAttribute>
3539
</ItemGroup>
3640

3741
<ItemGroup>
3842
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
3943
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
44+
<PackageReference Include="MinVer" Version="2.2.0" PrivateAssets="All" />
4045
<PackageReference Include="System.Memory" Version="4.5.3" />
4146
</ItemGroup>
4247

-1.25 KB
Loading

projects/client/RabbitMQ.Client/src/client/properties/AssemblyInfo.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

projects/client/RabbitMQ.Client/src/util/BlockingCell.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class BlockingCell<T>
5757
{
5858
private readonly ManualResetEventSlim _manualResetEventSlim = new ManualResetEventSlim(false);
5959
private T _value = default;
60-
public EventHandler<T> ContinueUsingValue;
6160

6261
public void ContinueWithValue(T value)
6362
{
@@ -84,7 +83,6 @@ public T WaitForValue(TimeSpan timeout)
8483
{
8584
if (_manualResetEventSlim.Wait(timeout))
8685
{
87-
ContinueUsingValue?.Invoke(this, _value);
8886
return _value;
8987
}
9088
throw new TimeoutException();

0 commit comments

Comments
 (0)