Skip to content

Commit ce4ceb8

Browse files
Christoph BauerChristoph Bauer
authored andcommitted
update net47 -> net472
1 parent fa221a7 commit ce4ceb8

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
run: dotnet build src/NetMQ.sln /p:Configuration=Release /verbosity:minimal
3535
- name: test net9.0
3636
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net9.0 src\NetMQ.Tests\NetMQ.Tests.csproj
37-
- name: test net47
38-
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net47 src\NetMQ.Tests\NetMQ.Tests.csproj
37+
- name: test net472
38+
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net472 src\NetMQ.Tests\NetMQ.Tests.csproj
3939
- name: coverage
4040
run: |
4141
OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --no-build --configuration Release -f net6.0 --logger:trx;LogFileName=results.trx /p:DebugType=full src\NetMQ.Tests\NetMQ.Tests.csproj" -filter:"+[NetMQ*]* -[NetMQ.Tests*]*" -output:".\NetMQ_coverage.xml" -oldStyle

src/NetMQ.Tests/CurveTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using NetMQ.Sockets;
33
using Xunit;
44

5-
#if NET47
5+
#if NETFRAMEWORK
66
using ZeroMQ;
77
#endif
88

@@ -39,7 +39,7 @@ public void CurveTest()
3939

4040
}
4141

42-
#if NET47
42+
#if NETFRAMEWORK
4343
[Fact]
4444
public void WithLibzmqClient()
4545
{

src/NetMQ.Tests/NetMQ.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
88
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
99
<IsTestProject>true</IsTestProject>
10-
<TargetFrameworks>net9.0;net47</TargetFrameworks>
10+
<TargetFrameworks>net9.0;net472</TargetFrameworks>
1111
</PropertyGroup>
1212

1313
<PropertyGroup>
@@ -20,13 +20,13 @@
2020
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND '$(TargetIsMono)' == 'true' AND EXISTS('/usr/lib/mono')">/usr/lib/mono</BaseFrameworkPathOverrideForMono>
2121
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND '$(TargetIsMono)' == 'true' AND EXISTS('/usr/local/lib/mono')">/usr/local/lib/mono</BaseFrameworkPathOverrideForMono>
2222

23-
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net47'">$(BaseFrameworkPathOverrideForMono)/4.7-api</FrameworkPathOverride>
23+
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net472'">$(BaseFrameworkPathOverrideForMono)/4.7-api</FrameworkPathOverride>
2424

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

29-
<ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
29+
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
3030
<Reference Include="mscorlib" />
3131
<Reference Include="System" />
3232
<Reference Include="System.Core" />
@@ -49,7 +49,7 @@
4949
</PackageReference>
5050
</ItemGroup>
5151

52-
<ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
52+
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
5353
<PackageReference Include="ZeroMQ" Version="4.1.0.31" />
5454
</ItemGroup>
5555

src/NetMQ.Tests/ZMTPTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using NetMQ.Sockets;
1111
using Xunit;
1212

13-
#if NET47
13+
#if NETFRAMEWORK
1414
using ZeroMQ;
1515
#endif
1616

@@ -156,7 +156,7 @@ public void V3Test()
156156
}
157157
}
158158

159-
#if NET47
159+
#if NETFRAMEWORK
160160
[Fact]
161161
public void WithLibzmq()
162162
{

src/NetMQ/Core/Transports/Tcp/TcpConnector.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ public void OutCompleted(SocketError socketError, int bytesTransferred)
262262
bytes.PutInteger(endian, m_options.TcpKeepaliveIdle, 4);
263263
bytes.PutInteger(endian, m_options.TcpKeepaliveIntvl, 8);
264264

265-
bytes.PutInteger(endian, m_options.TcpKeepaliveIntvl, 8);
266265
#if NET
267266
if (!OperatingSystem.IsWindows())
268267
{

src/NetMQ/NetMQ.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>A 100% native C# port of the lightweight high performance messaging library ZeroMQ</Description>
55
<Version>4.0.0.0</Version>
6-
<TargetFrameworks>net8.0;net47;netstandard2.1</TargetFrameworks>
6+
<TargetFrameworks>net8.0;net472;netstandard2.1</TargetFrameworks>
77
<DebugType>portable</DebugType>
88
<AssemblyOriginatorKeyFile>./NetMQ.snk</AssemblyOriginatorKeyFile>
99
<SignAssembly>true</SignAssembly>
@@ -24,7 +24,7 @@
2424
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2525
</PropertyGroup>
2626

27-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net47' ">
27+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' ">
2828
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2929
</PropertyGroup>
3030

src/NetMQ/NetMQBeacon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private void Configure(string interfaceName, int port)
125125
// on linux to receive broadcast you must bind to the broadcast address specifically
126126
//bindTo = @interface.Address;
127127
sendTo = @interface.BroadcastAddress;
128-
#if NET45 || NET47
128+
#if NETFRAMEWORK
129129
if (Environment.OSVersion.Platform==PlatformID.Unix)
130130
#else
131131
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))

0 commit comments

Comments
 (0)