-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSampleDriver.csproj
More file actions
50 lines (39 loc) · 1.78 KB
/
Copy pathSampleDriver.csproj
File metadata and controls
50 lines (39 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<RuntimeMetadataVersion>v4.0.30319</RuntimeMetadataVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<EntryPointSymbol>DriverEntry</EntryPointSymbol>
<LinkerSubsystem>NATIVE</LinkerSubsystem>
<IlcSystemModule>WDK.NET</IlcSystemModule>
<PublishAot>true</PublishAot>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\WDK.NET\WDK.NET.csproj" />
</ItemGroup>
<ItemGroup>
<LinkerArg Include=""C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\km\x64\ntoskrnl.lib" /nologo /MANIFEST:NO /DRIVER:WDM /incremental:no /out:$(PublishDir)$(TargetName).sys /INTEGRITYCHECK"></LinkerArg>
<!--<LinkerArg Include="/verbose" />-->
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Optimize>false</Optimize>
</PropertyGroup>
<!--Strip runtime libraries-->
<Target Name="CustomizeReferences" BeforeTargets="BeforeCompile" AfterTargets="FindReferenceAssembliesForReferences">
<ItemGroup>
<ReferencePathWithRefAssemblies Remove="@(ReferencePathWithRefAssemblies)" Condition="'%(Filename)' != 'WDK.NET'" />
<ReferencePath Remove="@(ReferencePath)" />
</ItemGroup>
</Target>
<!-- The AOT compiler would want to mirror these as AppContext switches. Prevent that. -->
<Target Name="RemoveHostConfigurationOptions" BeforeTargets="IlcCompile" DependsOnTargets="PrepareForILLink">
<ItemGroup>
<RuntimeHostConfigurationOption Remove="@(RuntimeHostConfigurationOption)" />
</ItemGroup>
</Target>
</Project>