mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 03:49:01 +08:00
[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:
parent
05c445c1fb
commit
4f0a640e4c
@ -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
|
||||
|
@ -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)"
|
||||
}
|
||||
|
@ -1958,7 +1958,7 @@
|
||||
},
|
||||
"easyhook": {
|
||||
"baseline": "2.7.7097.0",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"easyloggingpp": {
|
||||
"baseline": "9.97.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "71b209c038081c700231ebc3be136c6976f22c4b",
|
||||
"version": "2.7.7097.0",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "54eb13c17af41e5e869503410d13f67e6886c8ff",
|
||||
"version": "2.7.7097.0",
|
||||
|
Loading…
Reference in New Issue
Block a user