Detours.Static 4.0.1.19060

Requires NuGet 2.5 or higher.

dotnet add package Detours.Static --version 4.0.1.19060
NuGet\Install-Package Detours.Static -Version 4.0.1.19060
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Detours.Static" Version="4.0.1.19060" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Detours.Static --version 4.0.1.19060
#r "nuget: Detours.Static, 4.0.1.19060"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Detours.Static as a Cake Addin
#addin nuget:?package=Detours.Static&version=4.0.1.19060

// Install Detours.Static as a Cake Tool
#tool nuget:?package=Detours.Static&version=4.0.1.19060

此版本为 Detours的源代码包,因此无需担心使用者平台工具集,MD 还是MT。添加到项目后将自动编译,类似于 vcpkg,只是体验更好,能在项目本身编译时自动编译Detours,然后静态链接到当前项目中。

源代码利用 contentfiles 添加到工程,因此如果你只需要使用头文件,那么可以 <ExcludeAssets>contentfiles</ExcludeAssets>,来进引用头文件,而不发生编译Detours的行为,如下所示:

<PackageReference Include="Detours.Static">
    <Version>4.0.1.19060</Version>
    <ExcludeAssets>contentfiles</ExcludeAssets>
</PackageReference>
Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1.19060 1,011 9/16/2020