|
5 | 5 | <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> |
6 | 6 | <WindowsTargetPlatformMinVersion>7.0</WindowsTargetPlatformMinVersion> |
7 | 7 | <VCProjectVersion>17.0</VCProjectVersion> |
| 8 | + <PreferredToolArchitecture>x64</PreferredToolArchitecture> |
8 | 9 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
9 | 10 | <CharacterSet>Unicode</CharacterSet> |
10 | 11 | <RootNamespace>DSInternals.Replication.Interop</RootNamespace> |
11 | 12 | <TargetName>DSInternals.Replication.Interop</TargetName> |
| 13 | + <!-- Incremental linking is not supported for mixed native and managed code projects. --> |
| 14 | + <LinkIncremental>false</LinkIncremental> |
| 15 | + <!-- Copy C and C++ runtimes to the output directory, from which they will be copied to PowerShell. --> |
| 16 | + <CopyCppRuntimeToOutputDir>true</CopyCppRuntimeToOutputDir> |
12 | 17 | </PropertyGroup> |
13 | 18 | <ItemDefinitionGroup> |
14 | 19 | <ClCompile> |
|
17 | 22 | <LanguageStandard_C>stdc17</LanguageStandard_C> |
18 | 23 | <LanguageStandard>stdcpp20</LanguageStandard> |
19 | 24 | <WarningLevel>Level3</WarningLevel> |
| 25 | + <PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
20 | 26 | </ClCompile> |
21 | 27 | <Link> |
22 | | - <AdditionalDependencies>Rpcrt4.lib;Secur32.lib</AdditionalDependencies> |
| 28 | + <!-- Include RPC support --> |
| 29 | + <AdditionalDependencies>$(CoreLibraryDependencies);%(AdditionalDependencies);Rpcrt4.lib;Secur32.lib</AdditionalDependencies> |
| 30 | + <TargetMachine Condition="'$(Platform)'=='ARM64'">MachineARM64</TargetMachine> |
23 | 31 | </Link> |
24 | 32 | <!-- Override the MIDL compiler settings --> |
25 | 33 | <Midl> |
|
32 | 40 | <EnableErrorChecks>All</EnableErrorChecks> |
33 | 41 | </Midl> |
34 | 42 | </ItemDefinitionGroup> |
35 | | - <PropertyGroup Condition="'$(Configuration)' =='Debug'" Label="Configuration"> |
| 43 | + <PropertyGroup Condition="'$(Configuration)' =='Debug'"> |
36 | 44 | <UseDebugLibraries>true</UseDebugLibraries> |
| 45 | + <!-- Enable code analysis for Debug configuration --> |
| 46 | + <RunCodeAnalysis>true</RunCodeAnalysis> |
| 47 | + <EnableMicrosoftCodeAnalysis>true</EnableMicrosoftCodeAnalysis> |
37 | 48 | </PropertyGroup> |
38 | | - <PropertyGroup Condition="'$(Configuration)' =='Release'" Label="Configuration"> |
| 49 | + <PropertyGroup Condition="'$(Configuration)' =='Release'"> |
39 | 50 | <UseDebugLibraries>false</UseDebugLibraries> |
40 | 51 | </PropertyGroup> |
41 | 52 | <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> |
42 | 53 | <ClCompile> |
43 | 54 | <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> |
44 | 55 | <Optimization>Disabled</Optimization> |
45 | 56 | <ExceptionHandling>false</ExceptionHandling> |
| 57 | + <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
46 | 58 | </ClCompile> |
47 | 59 | <Link> |
48 | 60 | <GenerateDebugInformation>DebugFull</GenerateDebugInformation> |
|
53 | 65 | <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> |
54 | 66 | <ExceptionHandling>Async</ExceptionHandling> |
55 | 67 | <GenerateXMLDocumentationFiles>true</GenerateXMLDocumentationFiles> |
| 68 | + <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
56 | 69 | </ClCompile> |
57 | 70 | </ItemDefinitionGroup> |
58 | 71 | <!-- Configure strong name signing if the private key exists --> |
|
0 commit comments