Skip to content

Commit 7d79676

Browse files
committed
Restore headers
1 parent f650284 commit 7d79676

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dotnet/package/common.csproj

+5-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<!-- Always include symbols in runtime packs, otherwise set %(FilesToPackage.IsSymbolFile) to true to only include in symbols.nupkg files -->
5555
<ItemGroup Condition=" '$(PlatformPackageType)' == 'RuntimePack' ">
56-
<Content Include="$(_packagePath)**\*.pdb" Pack="true" PackagePath="/" />
56+
<Content Include="$(_packagePath)**/*.pdb" Pack="true" PackagePath="/" />
5757
</ItemGroup>
5858

5959
<ItemGroup>
@@ -84,14 +84,16 @@
8484
<_FxAssembliesToPackage Include="$(_packagePath)$(_PackTargetPath)/*.dll" />
8585
<FilesToPackage Include="@(_FxAssembliesToPackage)" TargetPath="$(_PackTargetPath)" />
8686
<FilesToPackage Include="@(_FxAssembliesToPackage->'%(RelativeDir)%(Filename).pdb')" TargetPath="$(_PackTargetPath)" IsSymbolFile="true" Condition=" '$(PlatformPackageType)' != 'RuntimePack' " />
87+
<_RuntimeHeadersToPackage Include="$(_packagePath)$(_PackNativePath)/**/*.h" Condition=" '$(PlatformPackageType)' == 'RuntimePack' " />
88+
<FilesToPackage Include="@(_RuntimeHeadersToPackage)" TargetPath="$(_PackNativePath)/%(RecursiveDir)" />
8789
<NativeRuntimeAsset Include="$(_packagePath)$(_PackNativePath)/*.a" />
8890
<NativeRuntimeAsset Include="$(_packagePath)$(_PackNativePath)/*.dylib" />
8991
<FrameworkListFileClass Include="@(_FxAssembliesToPackage->'%(Filename)%(Extension)')" Profile="$(_PlatformName)" />
9092
<FrameworkListFileClass Include="@(NativeRuntimeAsset->'%(Filename)%(Extension)')" Profile="$(_PlatformName)" />
9193
</ItemGroup>
9294
<ItemGroup Condition=" '$(PlatformPackageType)' == 'ToolPack' " >
93-
<_ToolsFilesToPackage Include="$(_packagePath)**" Exclude="$(_packagePath)**\*.pdb" />
94-
<_ToolsSymbolsToPackage Include="$(_packagePath)**\*.pdb" />
95+
<_ToolsFilesToPackage Include="$(_packagePath)**" Exclude="$(_packagePath)**/*.pdb" />
96+
<_ToolsSymbolsToPackage Include="$(_packagePath)**/*.pdb" />
9597
<FilesToPackage Include="@(_ToolsFilesToPackage)" TargetPath="%(RecursiveDir)" />
9698
<!-- Use a relative path one directory up to circumvent the use of a root 'runtimes' folder for symbols files declared in
9799
https://github.com/dotnet/arcade/blob/2b1931c05dd6ceb89120131a8b39eaa81735179a/src/Microsoft.DotNet.SharedFramework.Sdk/targets/sharedfx.targets#L569

0 commit comments

Comments
 (0)