|
23 | 23 |
|
24 | 24 | <PropertyGroup> |
25 | 25 | <TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage> |
26 | | - <GenerateNuspecDependsOn>StampAndIncludeGalleryManifest;$(GenerateNuspecDependsOn)</GenerateNuspecDependsOn> |
27 | 26 | </PropertyGroup> |
28 | 27 |
|
| 28 | + <ItemGroup> |
| 29 | + <GalleryManifest Include="$(IntermediateOutputPath)GalleryManifest.xml" Condition="'$(RuntimeIdentifier)'=='win-x64'" /> |
| 30 | + </ItemGroup> |
29 | 31 | <ItemGroup> |
30 | 32 | <FilesToSign Include="$(TargetDir)$(DnneNativeBinaryName).dll"> |
31 | 33 | <StrongName /> |
32 | 34 | </FilesToSign> |
| 35 | + <FilesToSign Include="@(GalleryManifest)"> |
| 36 | + <Authenticode>MicrosoftXmlSHA2</Authenticode> |
| 37 | + <StrongName /> |
| 38 | + </FilesToSign> |
| 39 | + </ItemGroup> |
| 40 | + <ItemGroup> |
| 41 | + <SignFilesDependsOn Include="StampAndIncludeGalleryManifest" /> |
33 | 42 | </ItemGroup> |
34 | 43 |
|
35 | | - <Target Name="PackBuildOutputs" DependsOnTargets="DebugSymbolsProjectOutputGroup"> |
| 44 | + <Target Name="PackBuildOutputs" DependsOnTargets="DebugSymbolsProjectOutputGroup;StampAndIncludeGalleryManifest"> |
36 | 45 | <ItemGroup> |
37 | 46 | <TfmSpecificPackageFile Include="$(TargetPath)" PackagePath="tools\$(RuntimeIdentifier)\" /> |
38 | 47 | <TfmSpecificPackageFile Include="$(TargetDir)$(TargetName).runtimeconfig.json" PackagePath="tools\$(RuntimeIdentifier)\" /> |
39 | 48 | <TfmSpecificPackageFile Include="@(DebugSymbolsProjectOutputGroupOutput->'%(FinalOutputPath)')" PackagePath="symbols\$(RuntimeIdentifier)\" /> |
40 | 49 | <TfmSpecificPackageFile Include="$(TargetDir)*.dll" PackagePath="tools\$(RuntimeIdentifier)\" /> |
41 | 50 | </ItemGroup> |
42 | 51 | </Target> |
43 | | - <Target Name="StampAndIncludeGalleryManifest" DependsOnTargets="GetBuildVersion" BeforeTargets="_GetPackageFiles"> |
| 52 | + <Target Name="StampAndIncludeGalleryManifest" DependsOnTargets="GetBuildVersion" Condition="'@(GalleryManifest)'!=''"> |
44 | 53 | <ReplaceFileText |
45 | 54 | InputFilename="GalleryManifest.xml" |
46 | | - OutputFilename="$(IntermediateOutputPath)GalleryManifest.xml" |
| 55 | + OutputFilename="@(GalleryManifest)" |
47 | 56 | MatchExpression="\$Version\$" |
48 | 57 | ReplacementText="$(BuildVersion)" /> |
49 | 58 | <ItemGroup> |
50 | | - <None Include="$(IntermediateOutputPath)GalleryManifest.xml" Pack="true" PackagePath="" /> |
| 59 | + <TfmSpecificPackageFile Include="@(GalleryManifest)" PackagePath="" /> |
51 | 60 | </ItemGroup> |
52 | 61 | </Target> |
53 | 62 | </Project> |
0 commit comments