Move PDB removal to redist.csproj target
This commit is contained in:
parent
283a80dff0
commit
eee7c7ed32
2 changed files with 12 additions and 8 deletions
|
@ -22,11 +22,6 @@
|
|||
Configuration="$(Configuration)"
|
||||
ProjectPath="$(RootProject)" />
|
||||
|
||||
<ItemGroup>
|
||||
<PdbsToClean Include="$(OutputDirectory)/sdk/**/*.pdb" />
|
||||
</ItemGroup>
|
||||
|
||||
<Delete Files="@(PdbsToClean)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PublishSdks"
|
||||
|
|
|
@ -173,19 +173,28 @@
|
|||
<Target Name="RemoveVbc"
|
||||
AfterTargets="CrossgenPublishDir">
|
||||
<ItemGroup>
|
||||
<_VbcPath Include="$(OutputDirectory)/sdk/**/vbc.exe" />
|
||||
<_VbcPath Include="$(PublishDir)/sdk/**/vbc.exe" />
|
||||
</ItemGroup>
|
||||
|
||||
<Delete Files="@(_VbcPath)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="CreateSymbolsDirectory"
|
||||
AfterTargets="CrossgenPublishDir">
|
||||
AfterTargets="RemoveVbc">
|
||||
<ItemGroup>
|
||||
<_AllSdkFiles Include="$(OutputDirectory)/**/*" />
|
||||
<_AllSdkFiles Include="$(PublishDir)/**/*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Copy SourceFiles="@(_AllSdkFiles)"
|
||||
DestinationFiles="@(_AllSdkFiles->'$(SymbolsDirectory)\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="RemovePdbsFromPublishDir"
|
||||
AfterTargets="CreateSymbolsDirectory">
|
||||
<ItemGroup>
|
||||
<PdbsToClean Include="$(PublishDir)/sdk/**/*.pdb" />
|
||||
</ItemGroup>
|
||||
|
||||
<Delete Files="@(PdbsToClean)" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Loading…
Add table
Reference in a new issue