|
3 | 3 | <PropertyGroup>
|
4 | 4 | <Deterministic>false</Deterministic>
|
5 | 5 | <DeterministicSourcePaths>false</DeterministicSourcePaths>
|
6 |
| - <AttributesFile>Verify.Attributes$(MSBuildProjectExtension.Replace('proj', ''))</AttributesFile> |
| 6 | + <VerifyAttributesFile>Verify.Attributes$(MSBuildProjectExtension.Replace('proj', ''))</VerifyAttributesFile> |
7 | 7 | <NoWarn>$(NoWarn);CA2255</NoWarn>
|
8 | 8 | </PropertyGroup>
|
9 | 9 | <Target Name="WriteVerifyAttributes"
|
10 | 10 | Condition="$(Language) == 'VB' or $(Language) == 'C#' or $(Language) == 'F#'"
|
11 | 11 | BeforeTargets="BeforeCompile;CoreCompile"
|
12 | 12 | Inputs="$(MSBuildAllProjects)"
|
13 |
| - Outputs="$(IntermediateOutputPath)$(AttributesFile)"> |
| 13 | + Outputs="$(IntermediateOutputPath)$(VerifyAttributesFile)"> |
14 | 14 | <PropertyGroup>
|
15 |
| - <AttributesFilePath>$(IntermediateOutputPath)$(AttributesFile)</AttributesFilePath> |
| 15 | + <VerifyAttributesFilePath>$(IntermediateOutputPath)$(VerifyAttributesFile)</VerifyAttributesFilePath> |
16 | 16 | </PropertyGroup>
|
17 | 17 | <ItemGroup>
|
18 |
| - <Attributes Include="System.Reflection.AssemblyMetadata"> |
| 18 | + <VerifyAttributes Include="System.Reflection.AssemblyMetadata"> |
19 | 19 | <_Parameter1>Verify.TargetFrameworks</_Parameter1>
|
20 | 20 | <_Parameter2>$(TargetFrameworks)</_Parameter2>
|
21 |
| - </Attributes> |
22 |
| - <Attributes Include="System.Reflection.AssemblyMetadata"> |
| 21 | + </VerifyAttributes> |
| 22 | + <VerifyAttributes Include="System.Reflection.AssemblyMetadata"> |
23 | 23 | <_Parameter1>Verify.ProjectDirectory</_Parameter1>
|
24 | 24 | <_Parameter2>$(ProjectDir)</_Parameter2>
|
25 |
| - </Attributes> |
26 |
| - <Attributes Include="System.Reflection.AssemblyMetadata" |
| 25 | + </VerifyAttributes> |
| 26 | + <VerifyAttributes Include="System.Reflection.AssemblyMetadata" |
27 | 27 | Condition="'$(SolutionDir)' != '' And '$(SolutionDir)' != '*Undefined*'">
|
28 | 28 | <_Parameter1>Verify.SolutionDirectory</_Parameter1>
|
29 | 29 | <_Parameter2>$(SolutionDir)</_Parameter2>
|
30 |
| - </Attributes> |
| 30 | + </VerifyAttributes> |
31 | 31 | <!-- Ensure not part of Compile, as a workaround for https://github.com/dotnet/sdk/issues/114 -->
|
32 |
| - <Compile Remove="$(AttributesFilePath)" /> |
| 32 | + <Compile Remove="$(VerifyAttributesFilePath)" /> |
33 | 33 | </ItemGroup>
|
34 |
| - <WriteCodeFragment AssemblyAttributes="@(Attributes)" |
| 34 | + <WriteCodeFragment AssemblyAttributes="@(VerifyAttributes)" |
35 | 35 | Language="$(Language)"
|
36 |
| - OutputFile="$(AttributesFilePath)"> |
| 36 | + OutputFile="$(VerifyAttributesFilePath)"> |
37 | 37 | <Output TaskParameter="OutputFile" ItemName="Compile" Condition="$(Language) != 'F#'" />
|
38 | 38 | <Output TaskParameter="OutputFile" ItemName="CompileBefore" Condition="$(Language) == 'F#'" />
|
39 | 39 | <Output TaskParameter="OutputFile" ItemName="FileWrites" />
|
|
0 commit comments