|
40 | 40 | </DefineConstants> |
41 | 41 | </PropertyGroup> |
42 | 42 |
|
| 43 | + <!-- Only build the target platform for product build (DotNetBuild=true). --> |
43 | 44 | <ItemGroup Condition="'$(BuildNative)' == 'true'"> |
44 | 45 | <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj"> |
45 | 46 | <Name>AspNetCoreV2</Name> |
46 | 47 | <Private>True</Private> |
47 | 48 | <DoNotHarvest>True</DoNotHarvest> |
48 | 49 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
49 | | - <SetPlatform>Platform=x64</SetPlatform> |
| 50 | + <SetPlatform Condition="'$(DotNetBuild)' != 'true'">Platform=x64</SetPlatform> |
| 51 | + <SetPlatform Condition="'$(DotNetBuild)' == 'true'">Platform=$(NativePlatform)</SetPlatform> |
50 | 52 | </ProjectReference> |
51 | 53 | <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj"> |
52 | 54 | <Name>AspNetCoreV2Handler</Name> |
53 | 55 | <Private>True</Private> |
54 | 56 | <DoNotHarvest>True</DoNotHarvest> |
55 | 57 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
56 | | - <SetPlatform>Platform=x64</SetPlatform> |
| 58 | + <SetPlatform Condition="'$(DotNetBuild)' != 'true'">Platform=x64</SetPlatform> |
| 59 | + <SetPlatform Condition="'$(DotNetBuild)' == 'true'">Platform=$(NativePlatform)</SetPlatform> |
57 | 60 | </ProjectReference> |
58 | 61 |
|
59 | | - <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj"> |
| 62 | + <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj" |
| 63 | + Condition="'$(DotNetBuild)' != 'true'"> |
60 | 64 | <Name>AspNetCoreV2WoW64</Name> |
61 | 65 | <Private>True</Private> |
62 | 66 | <DoNotHarvest>True</DoNotHarvest> |
63 | 67 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
64 | 68 | <SetPlatform>Platform=Win32</SetPlatform> |
65 | 69 | </ProjectReference> |
66 | | - <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj"> |
| 70 | + <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj" |
| 71 | + Condition="'$(DotNetBuild)' != 'true'"> |
67 | 72 | <Name>AspNetCoreV2HandlerWoW64</Name> |
68 | 73 | <Private>True</Private> |
69 | 74 | <DoNotHarvest>True</DoNotHarvest> |
70 | 75 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
71 | 76 | <SetPlatform>Platform=Win32</SetPlatform> |
72 | 77 | </ProjectReference> |
73 | | - |
74 | | - <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj"> |
| 78 | + |
| 79 | + <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj" |
| 80 | + Condition="'$(DotNetBuild)' != 'true'"> |
75 | 81 | <Name>AspNetCoreV2ARM64</Name> |
76 | 82 | <Private>True</Private> |
77 | 83 | <DoNotHarvest>True</DoNotHarvest> |
78 | 84 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
79 | 85 | <SetPlatform>Platform=ARM64</SetPlatform> |
80 | 86 | </ProjectReference> |
81 | | - <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj"> |
| 87 | + <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj" |
| 88 | + Condition="'$(DotNetBuild)' != 'true'"> |
82 | 89 | <Name>AspNetCoreV2HandlerARM64</Name> |
83 | 90 | <Private>True</Private> |
84 | 91 | <DoNotHarvest>True</DoNotHarvest> |
|
0 commit comments