Skip to content

Commit

Permalink
Break until the insertion project is renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jul 12, 2024
1 parent 03d69cf commit 0c9771d
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/VSInsertionMetadata/VSInsertionMetadata.targets
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@
<TargetsForTfmSpecificContentInPackage>
$(TargetsForTfmSpecificContentInPackage);
SubstituteProfilingInputsMacro;
SubstituteProfilingInputsMacroWarning;
</TargetsForTfmSpecificContentInPackage>
</PropertyGroup>

<Target Name="SubstituteProfilingInputsMacroWarning" Condition="'$(ProfilingInputsDropName)'==''">
<Warning Text="The ProfilingInputsDropName msbuild property has not been set, and the OptProf will not contain accurate content."/>
</Target>
<Target Name="SubstituteProfilingInputsMacro" Condition="'$(ProfilingInputsDropName)'!=''">
<Target Name="SubstituteProfilingInputsMacro">
<ItemGroup>
<ProfilingInputsSource Include="ProfilingInputs.props" />
<ProfilingInputsTarget Include="$(IntermediateOutputPath)ProfilingInputs.props" />
Expand All @@ -43,13 +39,20 @@
OutputFilename="@(ProfilingInputsTarget)"
MatchExpression="%TESTSTORE%"
ReplacementText="vstsdrop:$(ProfilingInputsDropName)" />

<Warning
Text="The ProfilingInputsDropName msbuild property has not been set, and the OptProf will not contain accurate content."
Condition="'$(ProfilingInputsDropName)' == ''" />
<Copy SourceFiles="@(ProfilingInputsSource)" DestinationFiles="@(ProfilingInputsTarget)"
Condition="'$(ProfilingInputsDropName)' == ''" />

<ItemGroup>
<TfmSpecificPackageFile Include="@(ProfilingInputsTarget)" PackagePath="InsertionVS/" />
</ItemGroup>
</Target>
<Target Name="EnsureUniquePackageVersion"
Condition="'$(Build_BuildId)' != ''"
AfterTargets="GetBuildVersion">
Condition="'$(Build_BuildId)' != ''"
AfterTargets="GetBuildVersion">
<!--
We must ensure unique versions for the insertion metadata package so
it can contain information that is unique to this build.
Expand All @@ -61,4 +64,7 @@
<PackageVersion>$(PackageVersion).$(Build_BuildId)</PackageVersion>
</PropertyGroup>
</Target>
<Target Name="BreakForRename" BeforeTargets="Pack;GenerateNuspec" Condition="'$(MSBuildProjectName)'=='Library.VSInsertionMetadata'">
<Error Text="This project should be renamed so the library name is used instead of 'Library'. Then delete this target." />
</Target>
</Project>

0 comments on commit 0c9771d

Please sign in to comment.