Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions nuget/Microsoft.Windows.CppWinRT.targets
Original file line number Diff line number Diff line change
Expand Up @@ -917,23 +917,25 @@ $(XamlMetaDataProviderPch)
<CompileAs>CompileAsCppModule</CompileAs>
<ModulesSupported>true</ModulesSupported>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<ModuleOutputFile>$(IntDir)Microsoft\cppwinrt\</ModuleOutputFile>
<ObjectFileName>$(IntDir)Microsoft\cppwinrt\</ObjectFileName>
<ModuleDependenciesFile>$(IntDir)Microsoft\cppwinrt\</ModuleDependenciesFile>
</ClCompile>
</ItemGroup>
</Target>

<!--
When CppWinRTBuildModule is true, export the generated files directory and IFC output
directory so that consuming projects can resolve them via ProjectReference.
The IFC files are written to IntDir by MSBuild's module build system.
The IFC files are written to '$(IntDir)Microsoft\cppwinrt\' by MSBuild's module build system.
-->
<Target Name="CppWinRTGetModuleOutputs"
Condition="'$(CppWinRTBuildModule)'=='true'"
Returns="@(CppWinRTModuleOutputs)">
<ItemGroup>
<CppWinRTModuleOutputs Include="$(MSBuildProjectFullPath)">
<CppWinRTModuleGeneratedFilesDir>$(GeneratedFilesDir)</CppWinRTModuleGeneratedFilesDir>
<CppWinRTModuleIfcDir>$(IntDir)</CppWinRTModuleIfcDir>
<CppWinRTModuleLibDir>$(OutDir)</CppWinRTModuleLibDir>
<CppWinRTModuleIfcDir>$(IntDir)Microsoft\cppwinrt\</CppWinRTModuleIfcDir>
</CppWinRTModuleOutputs>
</ItemGroup>
</Target>
Expand Down