Skip to content

Conversation

@mattleibow
Copy link
Member

Description of Change

.NET Standard was never supported, but just remained to help MSBuild tasks.

We don't need to actually ship them.

Copilot AI review requested due to automatic review settings October 24, 2025 15:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR prevents .NET Standard target framework versions from being included in NuGet packages. While .NET Standard targets remain in the codebase for MSBuild task compatibility, they are no longer intended for distribution.

Key Changes

  • Adds MSBuild property to exclude .NET Standard TFMs from packaging

<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />

<PropertyGroup>
<IsPackable Condition="$(TargetFramework.Contains('netstandard'))">false</IsPackable>
Copy link

Copilot AI Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition syntax is incorrect. MSBuild property references require $() around the entire property evaluation. Should be Condition=\"$(TargetFramework.Contains('netstandard'))\".

Suggested change
<IsPackable Condition="$(TargetFramework.Contains('netstandard'))">false</IsPackable>
<IsPackable Condition="$([System.String]::Copy('$(TargetFramework)').Contains('netstandard'))">false</IsPackable>

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant