Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Jan 16, 2025
1 parent 9d5ae81 commit 047503a
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@
</PropertyGroup>

<PropertyGroup Condition="'$(MSBuildRuntimeOS)'=='Linux'">
<SkipBuild>true</SkipBuild>
<SkipCompilation>true</SkipCompilation>
</PropertyGroup>

<!-- Override the CoreBuild target when building on Linux -->
<Target Name="CoreBuild" Condition="'$(SkipBuild)'=='true'">
<Message Text="Skipping test project build on Linux." Importance="high" />
<!-- No build actions are performed -->
</Target>

<ItemGroup>
<ProjectReference Include="..\..\samples\Samples.AzureFunctions\Samples.AzureFunctions.csproj" />
<ProjectReference Include="..\Samples.Tests\Samples.Tests.csproj" />
</ItemGroup>

<!-- Skip this project on Linux -->
<ItemGroup Condition="'$(SkipCompilation)'=='true'">
<Compile Remove="**/*.cs" />
<ProjectReference Remove="..\..\samples\Samples.AzureFunctions\Samples.AzureFunctions.csproj" />
<ProjectReference Remove="..\Samples.Tests\Samples.Tests.csproj" />
</ItemGroup>

</Project>

0 comments on commit 047503a

Please sign in to comment.