Requires NuGet 2.5 or higher.

dotnet add package Detours.Static --version
NuGet\Install-Package Detours.Static -Version
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="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Detours.Static --version
#r "nuget: Detours.Static,"
#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=

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

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

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

<PackageReference Include="Detours.Static">
Product Versions
native native
Compatible target framework(s)
Additional computed target framework(s)
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 704 9/16/2020