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 01b922a commit 63f2493
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 5 additions & 7 deletions samples/Samples.AzureFunctions/Samples.AzureFunctions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
<NoWarn>$(NoWarn);IDE0060</NoWarn>
</PropertyGroup>

<!-- In-Process .NET 6 Azure Functions can't be built on Linux -->
<PropertyGroup Condition="'$(MSBuildRuntimeOS)'=='Linux'">
<SkipCompilation>true</SkipCompilation>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.6.0" />
Expand All @@ -28,11 +23,14 @@
</None>
</ItemGroup>

<!-- Skip this project on Linux -->
<ItemGroup Condition="'$(SkipCompilation)'=='true'">
<!-- In-Process .NET 6 Azure Functions can't be built on Linux -->
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'">
<Compile Remove="**/*.cs" />
<PackageReference Remove="Microsoft.Azure.Functions.Extensions" />
<PackageReference Remove="Microsoft.NET.Sdk.Functions" />
<ProjectReference Remove="..\..\src\Transports.AspNetCore\Transports.AspNetCore.csproj" />
<ProjectReference Remove="..\..\src\Ui.GraphiQL\Ui.GraphiQL.csproj" />
<ProjectReference Remove="..\Samples.Schemas.Chat\Samples.Schemas.Chat.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@
<Description>End to end tests for the Samples.AzureFunctions project</Description>
</PropertyGroup>

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

<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'">
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'">
<Compile Remove="**/*.cs" />
<ProjectReference Remove="..\..\samples\Samples.AzureFunctions\Samples.AzureFunctions.csproj" />
<ProjectReference Remove="..\Samples.Tests\Samples.Tests.csproj" />
Expand Down

0 comments on commit 63f2493

Please sign in to comment.