From 91c4ce92b65bcbf464fca9b0476502bc9004e5d4 Mon Sep 17 00:00:00 2001 From: guogangj Date: Tue, 24 Dec 2024 17:01:22 +0800 Subject: [PATCH] Add support for .NET Framework 4.8.1 --- README.md | 4 +- SysInfoDetector.sln | 11 +- SysInfoDetector/SysInfoDetector.cpp | 5 +- SysInfoDetector/SysInfoDetector.vcproj | 214 ------------------------ SysInfoDetector/SysInfoDetector.vcxproj | 104 ++++++++++++ 5 files changed, 118 insertions(+), 220 deletions(-) delete mode 100644 SysInfoDetector/SysInfoDetector.vcproj create mode 100644 SysInfoDetector/SysInfoDetector.vcxproj diff --git a/README.md b/README.md index cec684a..5354e75 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # SysInfoDetector A simple .NET framework detection program. -[Latest binary download (V1.0.2)](https://github.com/guogangj/SysInfoDetector/releases/download/1.0.2/SysInfoDetector.exe) +[Latest binary download (V1.0.3)](https://github.com/guogangj/SysInfoDetector/releases/download/1.0.3/SysInfoDetector.exe) -Build environment: Visual Studio 2008. +Build environment: Visual Studio 2022. Usage: run it, and you will get information like these
diff --git a/SysInfoDetector.sln b/SysInfoDetector.sln
index 60c5370..8429b27 100644
--- a/SysInfoDetector.sln
+++ b/SysInfoDetector.sln
@@ -1,7 +1,9 @@
 
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SysInfoDetector", "SysInfoDetector\SysInfoDetector.vcproj", "{75958EB9-73F2-437B-B7E0-D57E2B2C4CF8}"
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.11.35327.3
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SysInfoDetector", "SysInfoDetector\SysInfoDetector.vcxproj", "{75958EB9-73F2-437B-B7E0-D57E2B2C4CF8}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -17,4 +19,7 @@ Global
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {518F47C9-14BB-444E-81C7-D83692386D43}
+	EndGlobalSection
 EndGlobal
diff --git a/SysInfoDetector/SysInfoDetector.cpp b/SysInfoDetector/SysInfoDetector.cpp
index c8071ad..23b8430 100644
--- a/SysInfoDetector/SysInfoDetector.cpp
+++ b/SysInfoDetector/SysInfoDetector.cpp
@@ -38,8 +38,11 @@ WCHAR* GetFxVersionGreaterThen4dot5(DWORD release)
 	case 528372: //4.8 on Windows 10 May 2020 Update and Windows 10 October 2020
 	case 528049: //4.8 on all others Windows operating systems
 		return L".NET Framework 4.8";
+	case 533320: //4.8.1 on Windows 11 2022 Update and Windows 11 2023 Update
+	case 533325: //4.8.1 on all other Windows operating systems
+		return L".NET Framework 4.8.1";
 	default:     //Unknown
-		return L".NET Framework > 4.8";
+		return L".NET Framework > 4.8.1";
 	}
 }
 
diff --git a/SysInfoDetector/SysInfoDetector.vcproj b/SysInfoDetector/SysInfoDetector.vcproj
deleted file mode 100644
index adbaf47..0000000
--- a/SysInfoDetector/SysInfoDetector.vcproj
+++ /dev/null
@@ -1,214 +0,0 @@
-
-
-	
-		
-	
-	
-	
-	
-		
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-		
-		
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-			
-		
-	
-	
-	
-	
-		
-			
-				
-					
-				
-				
-					
-				
-			
-			
-			
-		
-		
-			
-			
-		
-	
-	
-	
-
diff --git a/SysInfoDetector/SysInfoDetector.vcxproj b/SysInfoDetector/SysInfoDetector.vcxproj
new file mode 100644
index 0000000..a000eba
--- /dev/null
+++ b/SysInfoDetector/SysInfoDetector.vcxproj
@@ -0,0 +1,104 @@
+
+
+  
+    
+      Debug
+      Win32
+    
+    
+      Release
+      Win32
+    
+  
+  
+    17.0
+    {75958EB9-73F2-437B-B7E0-D57E2B2C4CF8}
+    SysInfoDetector
+    Win32Proj
+  
+  
+  
+    Application
+    v143
+    Unicode
+    true
+  
+  
+    Application
+    v143
+    Unicode
+  
+  
+  
+  
+  
+    
+  
+  
+    
+  
+  
+  
+    <_ProjectFileVersion>17.0.35327.3
+  
+  
+    $(SolutionDir)$(Configuration)\
+    $(Configuration)\
+    true
+  
+  
+    $(SolutionDir)$(Configuration)\
+    $(Configuration)\
+    false
+  
+  
+    
+      Disabled
+      WIN32;_DEBUG;_CONSOLE;UNICODE;%(PreprocessorDefinitions)
+      true
+      EnableFastChecks
+      MultiThreadedDebugDLL
+      Use
+      Level3
+      EditAndContinue
+    
+    
+      true
+      Console
+      false
+      
+      MachineX86
+    
+  
+  
+    
+      WIN32;NDEBUG;_CONSOLE;UNICODE;%(PreprocessorDefinitions)
+      MultiThreaded
+      Use
+      Level3
+      ProgramDatabase
+    
+    
+      true
+      Console
+      true
+      true
+      false
+      
+      MachineX86
+    
+  
+  
+    
+      Create
+      Create
+    
+    
+  
+  
+    
+  
+  
+  
+  
+
\ No newline at end of file