Skip to content

Commit

Permalink
AttributesEasyTestFile (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm authored Jan 22, 2024
1 parent f143760 commit b0c4885
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/EasyTestFile/buildTransitive/EasyTestFile.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@
<EasyTestFileAttributesFilePath>$(IntermediateOutputPath)$(EasyTestFileAttributesFile)</EasyTestFileAttributesFilePath>
</PropertyGroup>
<ItemGroup>
<Attributes Include="System.Reflection.AssemblyMetadata" Condition="'$(ProjectDir)' != '' And '$(ProjectDir)' != '*Undefined*'">
<AttributesEasyTestFile Include="System.Reflection.AssemblyMetadata" Condition="'$(ProjectDir)' != '' And '$(ProjectDir)' != '*Undefined*'">
<_Parameter1>EasyTestFile.ProjectDirectory</_Parameter1>
<_Parameter2>$(ProjectDir)</_Parameter2>
</Attributes>
<Attributes Include="System.Reflection.AssemblyMetadata" Condition="'$(SolutionDir)' != '' And '$(SolutionDir)' != '*Undefined*'">
</AttributesEasyTestFile>
<AttributesEasyTestFile Include="System.Reflection.AssemblyMetadata" Condition="'$(SolutionDir)' != '' And '$(SolutionDir)' != '*Undefined*'">
<_Parameter1>EasyTestFile.SolutionDirectory</_Parameter1>
<_Parameter2>$(SolutionDir)</_Parameter2>
</Attributes>
<Attributes Include="System.Reflection.AssemblyMetadata" Condition="'$(EasyTestFileMode)' != '' And '$(EasyTestFileMode)' != '*Undefined*'">
</AttributesEasyTestFile>
<AttributesEasyTestFile Include="System.Reflection.AssemblyMetadata" Condition="'$(EasyTestFileMode)' != '' And '$(EasyTestFileMode)' != '*Undefined*'">
<_Parameter1>EasyTestFile.EasyTestFileMode</_Parameter1>
<_Parameter2>$(EasyTestFileMode)</_Parameter2>
</Attributes>
</AttributesEasyTestFile>

<!-- Ensure not part of Compile, as a workaround for https://github.com/dotnet/sdk/issues/114 -->
<Compile Remove="$(EasyTestFileAttributesFilePath)" />
</ItemGroup>

<WriteCodeFragment AssemblyAttributes="@(Attributes)" Language="$(Language)" OutputFile="$(EasyTestFileAttributesFilePath)">
<WriteCodeFragment AssemblyAttributes="@(AttributesEasyTestFile)" Language="$(Language)" OutputFile="$(EasyTestFileAttributesFilePath)">
<Output TaskParameter="OutputFile" ItemName="Compile" Condition="$(Language) != 'F#'" />
<Output TaskParameter="OutputFile" ItemName="CompileBefore" Condition="$(Language) == 'F#'" />
<Output TaskParameter="OutputFile" ItemName="FileWrites" />
Expand Down

0 comments on commit b0c4885

Please sign in to comment.