[easyhook] Update target .NET Framework version to 4.7.2. (#23040)

* [easyhook] Update target .NET Framework version to 4.7.2.

This is the .NET Framework version for VS2017, and is accepted by VS2019 and VS2022. See https://docs.microsoft.com/en-us/dotnet/framework/install/guide-for-developers

VS2022 does not support targeting 4.0 Client Profile, so this is necessary to un-break easyhook on VS2022.

* Put back missing UWP block.
This commit is contained in:
Billy O'Neal 2022-02-10 16:22:50 -08:00 committed by GitHub
parent 05c445c1fb
commit 4f0a640e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 4 deletions

View File

@ -1,4 +1,4 @@
message(WARNING ".Net framework 4.0 is required, please install it before installing easyhook.")
message(WARNING ".Net framework 4.7.2 is required, please install it before installing easyhook.")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -38,6 +38,40 @@ foreach(VCXPROJ IN ITEMS
)
endforeach()
# Use modern .NET Framework
foreach(CSPROJ IN ITEMS
"${SOURCE_PATH}/EasyHook/EasyHook.csproj"
"${SOURCE_PATH}/EasyHookSvc/EasyHookSvc.csproj"
"${SOURCE_PATH}/EasyLoad/EasyLoad.csproj"
"${SOURCE_PATH}/Examples/FileMon/FileMon.csproj"
"${SOURCE_PATH}/Examples/FileMonInject/FileMonInject.csproj"
"${SOURCE_PATH}/Examples/FileMonitorController/FileMonitorController.csproj"
"${SOURCE_PATH}/Examples/FileMonitorInterceptor/FileMonitorInterceptor.csproj"
"${SOURCE_PATH}/Examples/FileMonitorInterface/FileMonitorInterface.csproj"
"${SOURCE_PATH}/Examples/ProcessMonitor/ProcessMonitor.csproj"
"${SOURCE_PATH}/Examples/ProcMonInject/ProcMonInject.csproj"
"${SOURCE_PATH}/Test/ComplexParameterInject/ComplexParameterInject.csproj"
"${SOURCE_PATH}/Test/ComplexParameterTest/ComplexParameterTest.csproj"
"${SOURCE_PATH}/Test/EasyHook.Tests/EasyHook.Tests.csproj"
"${SOURCE_PATH}/Test/ManagedTarget/ManagedTarget.csproj"
"${SOURCE_PATH}/Test/ManagedTest/ManagedTest.csproj"
"${SOURCE_PATH}/Test/MultipleHooks/MultipleHooks/MultipleHooks.csproj"
"${SOURCE_PATH}/Test/MultipleHooks/SimpleHook1/SimpleHook1.csproj"
"${SOURCE_PATH}/Test/MultipleHooks/SimpleHook2/SimpleHook2.csproj"
"${SOURCE_PATH}/Test/TestFuncHooks/TestFuncHooks.csproj")
vcpkg_replace_string(
"${CSPROJ}"
"<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>"
"<TargetFrameworkVersion>4.7.2</TargetFrameworkVersion>"
)
vcpkg_replace_string(
"${CSPROJ}"
"<TargetFrameworkProfile>Client</TargetFrameworkProfile>"
""
)
endforeach()
vcpkg_install_msbuild(
SOURCE_PATH ${SOURCE_PATH}
PROJECT_SUBPATH EasyHook.sln

View File

@ -1,8 +1,8 @@
{
"name": "easyhook",
"version": "2.7.7097.0",
"port-version": 4,
"port-version": 5,
"description": "This project supports extending (hooking) unmanaged code (APIs) with pure managed ones, from within a fully managed environment on 32- or 64-bit Windows Vista x64, Windows Server 2008 x64, Windows 7, Windows 8.1, and Windows 10.",
"homepage": "https://github.com/EasyHook/EasyHook",
"supports": "windows & !(static | arm | uwp)"
"supports": "windows & !static & !uwp & (x86 | x64)"
}

View File

@ -1958,7 +1958,7 @@
},
"easyhook": {
"baseline": "2.7.7097.0",
"port-version": 4
"port-version": 5
},
"easyloggingpp": {
"baseline": "9.97.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "71b209c038081c700231ebc3be136c6976f22c4b",
"version": "2.7.7097.0",
"port-version": 5
},
{
"git-tree": "54eb13c17af41e5e869503410d13f67e6886c8ff",
"version": "2.7.7097.0",