Skip to content

Commit

Permalink
Pack target logic
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhurst committed Aug 7, 2024
1 parent 83f57da commit aaf335b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions TUnit.Analyzers/TUnit.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
</Compile>
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' != 'true'">
<ItemGroup Condition="'$(Target)' != 'Pack'">
<ProjectReference Include="..\TUnit.Core\TUnit.Core.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ItemGroup Condition="'$(Target)' == 'Pack'">
<ProjectReference Include="..\TUnit.Core\TUnit.Core.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' != 'true'">
<ItemGroup Condition="'$(Target)' != 'Pack'">
<ProjectReference Include="..\TUnit.Core\TUnit.Core.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ItemGroup Condition="'$(Target)' == 'Pack'">
<ProjectReference Include="..\TUnit.Core\TUnit.Core.csproj" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions TUnit.Engine/TUnit.Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<ProjectReference Include="..\TUnit.Core\TUnit.Core.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' != 'true'">
<ItemGroup Condition="'$(Target)' != 'Pack'">
<ProjectReference Include="..\TUnit.Engine.SourceGenerator\TUnit.Engine.SourceGenerator.csproj"
OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ItemGroup Condition="'$(Target)' == 'Pack'">
<ProjectReference Include="..\TUnit.Engine.SourceGenerator\TUnit.Engine.SourceGenerator.csproj" />
<PackageReference Include="Microsoft.Testing.Platform.MSBuild" Version="1.3.2" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions TUnit/TUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<ProjectReference Include="..\TUnit.Engine\TUnit.Engine.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' != 'true'">
<ItemGroup Condition="'$(Target)' != 'Pack'">
<ProjectReference Include="..\TUnit.Analyzers\TUnit.Analyzers.csproj"
OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
</ItemGroup>

<ItemGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ItemGroup Condition="'$(Target)' == 'Pack'">
<ProjectReference Include="..\TUnit.Analyzers\TUnit.Analyzers.csproj" />
</ItemGroup>

Expand Down

0 comments on commit aaf335b

Please sign in to comment.