Skip to content

Commit 35ffcf7

Browse files
authored
Output the module intermediate files to $(IntDir)Microsoft\cppwinrt\
1 parent c4cf531 commit 35ffcf7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -917,23 +917,26 @@ $(XamlMetaDataProviderPch)
917917
<CompileAs>CompileAsCppModule</CompileAs>
918918
<ModulesSupported>true</ModulesSupported>
919919
<PrecompiledHeader>NotUsing</PrecompiledHeader>
920+
<ModuleOutputFile>$(IntDir)Microsoft\cppwinrt\</ModuleOutputFile>
921+
<ObjectFileName>$(IntDir)Microsoft\cppwinrt\</ObjectFileName>
922+
<ModuleDependenciesFile>$(IntDir)Microsoft\cppwinrt\</ModuleDependenciesFile>
923+
<SourceDependenciesFile>$(IntDir)Microsoft\cppwinrt\</SourceDependenciesFile>
920924
</ClCompile>
921925
</ItemGroup>
922926
</Target>
923927

924928
<!--
925929
When CppWinRTBuildModule is true, export the generated files directory and IFC output
926930
directory so that consuming projects can resolve them via ProjectReference.
927-
The IFC files are written to IntDir by MSBuild's module build system.
931+
The IFC files are written to '$(IntDir)Microsoft\cppwinrt\' by MSBuild's module build system.
928932
-->
929933
<Target Name="CppWinRTGetModuleOutputs"
930934
Condition="'$(CppWinRTBuildModule)'=='true'"
931935
Returns="@(CppWinRTModuleOutputs)">
932936
<ItemGroup>
933937
<CppWinRTModuleOutputs Include="$(MSBuildProjectFullPath)">
934938
<CppWinRTModuleGeneratedFilesDir>$(GeneratedFilesDir)</CppWinRTModuleGeneratedFilesDir>
935-
<CppWinRTModuleIfcDir>$(IntDir)</CppWinRTModuleIfcDir>
936-
<CppWinRTModuleLibDir>$(OutDir)</CppWinRTModuleLibDir>
939+
<CppWinRTModuleIfcDir>$(IntDir)Microsoft\cppwinrt\</CppWinRTModuleIfcDir>
937940
</CppWinRTModuleOutputs>
938941
</ItemGroup>
939942
</Target>

0 commit comments

Comments
 (0)