Skip to content

Commit 0c9771d

Browse files
committed
Break until the insertion project is renamed
1 parent 03d69cf commit 0c9771d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/VSInsertionMetadata/VSInsertionMetadata.targets

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@
2525
<TargetsForTfmSpecificContentInPackage>
2626
$(TargetsForTfmSpecificContentInPackage);
2727
SubstituteProfilingInputsMacro;
28-
SubstituteProfilingInputsMacroWarning;
2928
</TargetsForTfmSpecificContentInPackage>
3029
</PropertyGroup>
3130

32-
<Target Name="SubstituteProfilingInputsMacroWarning" Condition="'$(ProfilingInputsDropName)'==''">
33-
<Warning Text="The ProfilingInputsDropName msbuild property has not been set, and the OptProf will not contain accurate content."/>
34-
</Target>
35-
<Target Name="SubstituteProfilingInputsMacro" Condition="'$(ProfilingInputsDropName)'!=''">
31+
<Target Name="SubstituteProfilingInputsMacro">
3632
<ItemGroup>
3733
<ProfilingInputsSource Include="ProfilingInputs.props" />
3834
<ProfilingInputsTarget Include="$(IntermediateOutputPath)ProfilingInputs.props" />
@@ -43,13 +39,20 @@
4339
OutputFilename="@(ProfilingInputsTarget)"
4440
MatchExpression="%TESTSTORE%"
4541
ReplacementText="vstsdrop:$(ProfilingInputsDropName)" />
42+
43+
<Warning
44+
Text="The ProfilingInputsDropName msbuild property has not been set, and the OptProf will not contain accurate content."
45+
Condition="'$(ProfilingInputsDropName)' == ''" />
46+
<Copy SourceFiles="@(ProfilingInputsSource)" DestinationFiles="@(ProfilingInputsTarget)"
47+
Condition="'$(ProfilingInputsDropName)' == ''" />
48+
4649
<ItemGroup>
4750
<TfmSpecificPackageFile Include="@(ProfilingInputsTarget)" PackagePath="InsertionVS/" />
4851
</ItemGroup>
4952
</Target>
5053
<Target Name="EnsureUniquePackageVersion"
51-
Condition="'$(Build_BuildId)' != ''"
52-
AfterTargets="GetBuildVersion">
54+
Condition="'$(Build_BuildId)' != ''"
55+
AfterTargets="GetBuildVersion">
5356
<!--
5457
We must ensure unique versions for the insertion metadata package so
5558
it can contain information that is unique to this build.
@@ -61,4 +64,7 @@
6164
<PackageVersion>$(PackageVersion).$(Build_BuildId)</PackageVersion>
6265
</PropertyGroup>
6366
</Target>
67+
<Target Name="BreakForRename" BeforeTargets="Pack;GenerateNuspec" Condition="'$(MSBuildProjectName)'=='Library.VSInsertionMetadata'">
68+
<Error Text="This project should be renamed so the library name is used instead of 'Library'. Then delete this target." />
69+
</Target>
6470
</Project>

0 commit comments

Comments
 (0)