Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 0 additions & 16 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,6 @@
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
</ItemGroup>

<!-- This is an ugly workaround needed to be able to do r2r/single file on packages that reference TraceEvent as the package's props inject a double
write to the same relative path. This is related to https://github.com/microsoft/perfview/issues/1002 -->
<Target Name="RemoveDupeAssemblies"
Condition="'$(PublishSingleFile)' == 'true'"
AfterTargets="ComputeResolvedFilesToPublishList"
BeforeTargets="CopyFilesToPublishDirectory">

<PropertyGroup>
<ExcludedTraceEventPath>$([MSBuild]::NormalizeDirectory($(PkgMicrosoft_Diagnostics_Tracing_TraceEvent), 'lib/netstandard1.6'))</ExcludedTraceEventPath>
</PropertyGroup>
<ItemGroup>
<ResolvedFileToPublish Condition="$([MSBuild]::NormalizePath(%(ResolvedFileToPublish.Identity)).StartsWith($(ExcludedTraceEventPath)))"
ExcludeFromSingleFile="true"/>
</ItemGroup>
</Target>

<!-- We need this for the binplacing for testing assets.
This should be removed at some point as it's brittle (harcodes versions and creates native-managed coupling). -->
<Target Name="_PublishPackageReferences"
Expand Down
14 changes: 0 additions & 14 deletions src/Tools/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,4 @@
</ItemGroup>
<Message Importance="Low" Text="@(FilesInBundleToSign)"/>
</Target>

<Target Name="PrepareForBundling"
BeforeTargets="GenerateSingleFileBundle"
AfterTargets="_ComputeFilesToBundle"
DependsOnTargets="RemoveDupeAssemblies" />

<!-- Workaround for https://github.com/microsoft/perfview/issues/1002 -->
<Target Name="RemoveDupeAssemblies">
<ItemGroup>
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\Dia2Lib.dll" />
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\OSExtensions.dll" />
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\TraceReloggerLib.dll" />
</ItemGroup>
</Target>
</Project>