Skip to content

Commit

Permalink
Revert " Upgrade from .NET 4.6.1 to 4.8.1 (2)"
Browse files Browse the repository at this point in the history
  • Loading branch information
ethnos-men authored Aug 30, 2024
1 parent 3903e07 commit 2402272
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: dotnet build src/solid.sln --no-restore

- name: Run NUnit Tests
run: dotnet test output/net481/*Tests.dll --filter "TestCategory != SkipOnCI" --no-build --logger "trx;LogFileName=test-results.trx"
run: dotnet test output/net461/*Tests.dll --filter "TestCategory != SkipOnCI" --no-build --logger "trx;LogFileName=test-results.trx"

- name: Test Report
uses: dorny/test-reporter@v1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Alternatively you can use Visual Studio and build / run tests there

### Running unit tests

`dotnet test output/net481/*Tests.dll`
`dotnet test output/net461/*Tests.dll`

### Create an installer locally
GHA will do this for you, however if you need to test creating the installer locally:
Expand Down
12 changes: 6 additions & 6 deletions installer/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Name: {userdocs}\Solid Examples

[Files]
Source: ..\installer\isxdl.dll; Flags: dontcopy
Source: ..\output\net481\solid.exe; DestDir: {app}; Flags: replacesameversion
Source: ..\output\net481\*.dll; DestDir: {app}; Flags: replacesameversion
Source: ..\output\net481\*.config; DestDir: {app}; Flags: replacesameversion
Source: ..\output\net461\solid.exe; DestDir: {app}; Flags: replacesameversion
Source: ..\output\net461\*.dll; DestDir: {app}; Flags: replacesameversion
Source: ..\output\net461\*.config; DestDir: {app}; Flags: replacesameversion
Source: ..\mappings\MappingXmlToHtml.xsl; DestDir: {app}\mappings
Source: ..\mappings\LIFT.mappingSystem; DestDir: {app}\mappings
Source: ..\mappings\FLEX.mappingSystem; DestDir: {app}\mappings
Expand Down Expand Up @@ -88,15 +88,15 @@ external 'isxdl_DownloadFiles@files:isxdl.dll stdcall';
function isxdl_SetOption(Option, Value: String): Integer;
external 'isxdl_SetOption@files:isxdl.dll stdcall';
// Detect .NET framework 4.8.1 is missing
// Detect .NET framework 4.6.1 is missing
// See https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
function DotNetIsMissing(): Boolean;
var
readVal: cardinal;
success: Boolean;
begin
success := RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', 'Release', readVal);
success := success and (readVal >= 533320); // 533320 is the number for 4.8.1
success := success and (readVal >= 394254); // 394254 is the number for 4.6.1
Result := not success;
end;
Expand All @@ -108,7 +108,7 @@ begin
// Check for required netfx installation
if DotNetIsMissing() then begin
MsgBox('Solid needs the Microsoft .NET Framework 4.8.1 or greater to be installed by an Administrator', mbInformation, MB_OK);
MsgBox('Solid needs the Microsoft .NET Framework 4.6.1 or greater to be installed by an Administrator', mbInformation, MB_OK);
Result := false;
end;
end;
Expand Down
3 changes: 0 additions & 3 deletions src/SchemaEditor/app.config

This file was deleted.

12 changes: 1 addition & 11 deletions src/SchemaEditor/solid.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -9,13 +9,6 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Solid</RootNamespace>
<AssemblyName>solid</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -25,7 +18,6 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -34,7 +26,6 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -87,7 +78,6 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand Down
11 changes: 2 additions & 9 deletions src/SolidConsole/SolidConsole.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -11,11 +11,9 @@
<AssemblyName>SolidConsole</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -25,7 +23,6 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -34,7 +31,6 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand All @@ -45,9 +41,6 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
9 changes: 2 additions & 7 deletions src/SolidConsole/SolidConsole.sln
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35208.52
MinimumVisualStudioVersion = 10.0.40219.1
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual C# Express 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SolidConsole", "SolidConsole.csproj", "{2AE6670D-904B-42E3-AEBC-453649B1A6A3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SolidConsoleTest", "..\SolidConsoleTest\SolidConsoleTest.csproj", "{89CEA606-4FAA-4E31-A20B-2C453E458236}"
Expand All @@ -25,7 +23,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FD38C76B-CA2B-474E-A971-863499DD2E72}
EndGlobalSection
EndGlobal
3 changes: 0 additions & 3 deletions src/SolidConsole/app.config

This file was deleted.

2 changes: 1 addition & 1 deletion src/SolidGui.Tests/SolidGui.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net481</TargetFramework>
<TargetFramework>net461</TargetFramework>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion src/SolidGui/SolidGui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net481</TargetFramework>
<TargetFramework>net461</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
2 changes: 1 addition & 1 deletion src/SolidGui/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
</setting>
</SolidGui.Properties.Settings>
</userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
2 changes: 1 addition & 1 deletion src/SolidGui/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net481" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net461" />
</packages>

0 comments on commit 2402272

Please sign in to comment.