|
25 | 25 | <TargetsForTfmSpecificContentInPackage> |
26 | 26 | $(TargetsForTfmSpecificContentInPackage); |
27 | 27 | SubstituteProfilingInputsMacro; |
28 | | - SubstituteProfilingInputsMacroWarning; |
29 | 28 | </TargetsForTfmSpecificContentInPackage> |
30 | 29 | </PropertyGroup> |
31 | 30 |
|
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"> |
36 | 32 | <ItemGroup> |
37 | 33 | <ProfilingInputsSource Include="ProfilingInputs.props" /> |
38 | 34 | <ProfilingInputsTarget Include="$(IntermediateOutputPath)ProfilingInputs.props" /> |
|
43 | 39 | OutputFilename="@(ProfilingInputsTarget)" |
44 | 40 | MatchExpression="%TESTSTORE%" |
45 | 41 | 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 | + |
46 | 49 | <ItemGroup> |
47 | 50 | <TfmSpecificPackageFile Include="@(ProfilingInputsTarget)" PackagePath="InsertionVS/" /> |
48 | 51 | </ItemGroup> |
49 | 52 | </Target> |
50 | 53 | <Target Name="EnsureUniquePackageVersion" |
51 | | - Condition="'$(Build_BuildId)' != ''" |
52 | | - AfterTargets="GetBuildVersion"> |
| 54 | + Condition="'$(Build_BuildId)' != ''" |
| 55 | + AfterTargets="GetBuildVersion"> |
53 | 56 | <!-- |
54 | 57 | We must ensure unique versions for the insertion metadata package so |
55 | 58 | it can contain information that is unique to this build. |
|
61 | 64 | <PackageVersion>$(PackageVersion).$(Build_BuildId)</PackageVersion> |
62 | 65 | </PropertyGroup> |
63 | 66 | </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> |
64 | 70 | </Project> |
0 commit comments