Skip to content

Commit

Permalink
#36: Target .NET Framework 4.7.2 instead of 4.8 so that you can insta…
Browse files Browse the repository at this point in the history
…ll it on RTM Windows Server 2019 without updating to 4.8, which requires a restart that may be annoying to do for a server
  • Loading branch information
Aldaviva committed Sep 26, 2024
1 parent d0fbb1e commit c240830
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
6 changes: 3 additions & 3 deletions Fail2Ban4Win/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
</configuration>
</configuration>
5 changes: 3 additions & 2 deletions Fail2Ban4Win/Fail2Ban4Win.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
<OutputType>Exe</OutputType>
<RootNamespace>Fail2Ban4Win</RootNamespace>
<AssemblyName>Fail2Ban4Win</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -113,7 +114,7 @@
<Version>8.0.0</Version>
</PackageReference>
<PackageReference Include="NLog">
<Version>5.3.3</Version>
<Version>5.3.4</Version>
</PackageReference>
<PackageReference Include="WindowsFirewallHelper">
<Version>2.2.0.86</Version>
Expand Down
4 changes: 2 additions & 2 deletions Fail2Ban4Win/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.1.0")]
[assembly: AssemblyFileVersion("1.3.1.0")]
[assembly: AssemblyVersion("1.3.2.0")]
[assembly: AssemblyFileVersion("1.3.2.0")]

[assembly: InternalsVisibleTo("Tests")]
21 changes: 12 additions & 9 deletions Fail2Ban4Win/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
".NETFramework,Version=v4.8": {
".NETFramework,Version=v4.7.2": {
"ILRepack.Lib.MSBuild.Task": {
"type": "Direct",
"requested": "[2.0.34.2, )",
Expand All @@ -12,7 +12,10 @@
"type": "Direct",
"requested": "[3.0.667, )",
"resolved": "3.0.667",
"contentHash": "0GgNIm12cDtI0Kc8oaVbgSQgqQ+yJuOyf1oyJ9eQ+Xt4uQ/2ZTvoTf6KBuRxjWF7rTD+1AreUES5khMecGAuTg=="
"contentHash": "0GgNIm12cDtI0Kc8oaVbgSQgqQ+yJuOyf1oyJ9eQ+Xt4uQ/2ZTvoTf6KBuRxjWF7rTD+1AreUES5khMecGAuTg==",
"dependencies": {
"System.Memory": "4.5.5"
}
},
"LightInject": {
"type": "Direct",
Expand Down Expand Up @@ -47,9 +50,9 @@
},
"NLog": {
"type": "Direct",
"requested": "[5.3.3, )",
"resolved": "5.3.3",
"contentHash": "cy0+hlrUbYu+6mgUsILqCcqlJ2Csqyt2lm8y9T9kE8nhgwl8SvR+LM21QX4nmzFCPiowbrTFYxNF8+gWpy7/HQ=="
"requested": "[5.3.4, )",
"resolved": "5.3.4",
"contentHash": "gLy7+O1hEYJXIlcTr1/VWjGXrZTQFZzYNO18IWasD64pNwz0BreV+nHLxWKXWZzERRzoKnsk2XYtwLkTVk7J1A=="
},
"WindowsFirewallHelper": {
"type": "Direct",
Expand Down Expand Up @@ -190,9 +193,9 @@
"contentHash": "okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ=="
}
},
".NETFramework,Version=v4.8/win": {},
".NETFramework,Version=v4.8/win-arm64": {},
".NETFramework,Version=v4.8/win-x64": {},
".NETFramework,Version=v4.8/win-x86": {}
".NETFramework,Version=v4.7.2/win": {},
".NETFramework,Version=v4.7.2/win-arm64": {},
".NETFramework,Version=v4.7.2/win-x64": {},
".NETFramework,Version=v4.7.2/win-x86": {}
}
}
8 changes: 4 additions & 4 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<TargetFramework>net472</TargetFramework>

<IsPackable>false</IsPackable>

Expand All @@ -10,11 +10,11 @@

<ItemGroup>
<PackageReference Include="FakeItEasy" Version="8.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit" Version="2.9.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit c240830

Please sign in to comment.