Skip to content

Commit 4e5a8ff

Browse files
authored
Merge pull request #894 from drewnoakes/central-jetbrains-annotations
Add JetBrains.Annotations centrally
2 parents d68a4fd + 19aead0 commit 4e5a8ff

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

src/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77

8+
<ItemGroup>
9+
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" PrivateAssets="All" />
10+
</ItemGroup>
11+
812
<!-- Workaround for https://github.com/dotnet/sourcelink/issues/572 -->
913
<ItemGroup>
1014
<SourceRoot Include="$(MSBuildThisFileDirectory)/" />

src/NetMQ.Tests/NetMQ.Tests.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<TargetFrameworks>netcoreapp3.1;netcoreapp2.1;net47</TargetFrameworks>
1212
</PropertyGroup>
1313

14-
<PropertyGroup>
14+
<PropertyGroup>
1515
<!-- When compiling .NET SDK 2.0 projects targeting .NET 4.x on Mono using 'dotnet build' you -->
1616
<!-- have to teachcd MSBuild where the Mono copy of the reference asssemblies is -->
1717
<TargetIsMono Condition="$(TargetFramework.StartsWith('net4')) and '$(OS)' == 'Unix'">true</TargetIsMono>
@@ -25,7 +25,6 @@
2525

2626
<!-- Add the Facades directory. Not sure how else to do this. Necessary at least for .NET 4.5 -->
2727
<AssemblySearchPaths Condition="'$(BaseFrameworkPathOverrideForMono)' != ''">$(FrameworkPathOverride)/Facades;$(AssemblySearchPaths)</AssemblySearchPaths>
28-
2928
</PropertyGroup>
3029

3130
<ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
@@ -42,7 +41,6 @@
4241

4342
<ItemGroup>
4443
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
45-
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" PrivateAssets="All" />
4644
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
4745
<PackageReference Include="xunit" Version="2.4.1" />
4846
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
@@ -51,4 +49,5 @@
5149
<ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
5250
<PackageReference Include="ZeroMQ" Version="4.1.0.31" />
5351
</ItemGroup>
52+
5453
</Project>

src/NetMQ/NetMQ.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
<ItemGroup>
3737
<PackageReference Include="AsyncIO" Version="0.1.69" />
38-
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" PrivateAssets="All" />
3938
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
4039
<PackageReference Include="NaCl.Net" Version="0.1.6-pre" />
4140
</ItemGroup>

src/Performance/NetMQ.SimpleTests/NetMQ.SimpleTests.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@
44
<TargetFramework>netcoreapp2.1</TargetFramework>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
7-
<ItemGroup>
8-
<ProjectReference Include="..\..\NetMQ\NetMQ.csproj" />
9-
</ItemGroup>
107

118
<ItemGroup>
12-
<PackageReference Include="JetBrains.Annotations" Version="10.4.0">
13-
<PrivateAssets>All</PrivateAssets>
14-
</PackageReference>
9+
<ProjectReference Include="..\..\NetMQ\NetMQ.csproj" />
1510
</ItemGroup>
1611

1712
</Project>

src/Performance/local_thr/local_thr.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>netcoreapp2.1</TargetFramework>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
7+
78
<ItemGroup>
89
<ProjectReference Include="..\..\NetMQ\NetMQ.csproj" />
910
</ItemGroup>

0 commit comments

Comments
 (0)