diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index 3fe0b198957f..fba4fc668af4 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -6,11 +6,9 @@ Coding Style and Changes:
- Code should match the style of the file it's in.
- Changes should be minimal to resolve a problem in a clean way.
- User-visible changes to behavior should be considered carefully before committing. They should always be flagged.
-- When generating code, run `dotnet format` to ensure uniform formatting.
+- Only edit the files that are necessary to address the specific issue. Do not run `dotnet format` or make formatting changes to additional files.
- Prefer using file-based namespaces for new code.
- Do not allow unused `using` directives to be committed.
-- Commit your changes, and then format them.
-- Add the format commit SHA to the .git-blame-ignore-revs file so that the commit doesn't dirty git blame in the future
- Use `#if NET` blocks for .NET Core specific code, and `#if NETFRAMEWORK` for .NET Framework specific code.
Testing:
diff --git a/src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers.sarif b/src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers.sarif
index 498b1e3a5e93..07aaa4edfbba 100644
--- a/src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers.sarif
+++ b/src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers.sarif
@@ -7092,4 +7092,4 @@
}
}
]
-}
\ No newline at end of file
+}
diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx
index 923913bd1f06..12a1261419ba 100644
--- a/src/Tasks/Common/Resources/Strings.resx
+++ b/src/Tasks/Common/Resources/Strings.resx
@@ -921,10 +921,6 @@ You may need to build the project on another operating system or architecture, o
NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.{StrBegins="NETSDK1208: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- {StrBegins="NETSDK1209: "}
-
NETSDK1210: IsAotCompatible and EnableAotAnalyzer are not supported for the target framework. Consider multi-targeting to a supported framework to enable ahead-of-time compilation analysis, and set IsAotCompatible only for the supported frameworks. For example:
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))">true</IsAotCompatible>
diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
index 7d92c76eb7a7..ee98416429d2 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: Pokud je vlastnost UseArtifactsPath nastavena na hodnotu true a parametr ArtifactsPath není nastaven, musí existovat soubor Directory.Build.props, aby bylo možné určit, kde má být složka artefaktů umístěna.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: Aktuální verze Visual Studio nepodporuje cílení {0} {1}. Buď zacilte {0} {2} nebo nižší, nebo použijte Visual Studio ve verzi {3} nebo vyšší.
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: Identifikátor cílové platformy {0} nebyl rozpoznán. Důvodem je, že proměnná prostředí MSBuildEnableWorkloadResolver je nastavena na hodnotu false, což zakáže úlohy .NET SDK, které se pro tento identifikátor vyžadují. Pokud chcete povolit úlohy, zrušte nastavení této proměnné prostředí nebo vlastnosti MSBuild.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf
index 696e8fe02b46..c43755bfac56 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: Wenn UseArtifactsPath auf TRUE und ArtifactsPath nicht festgelegt ist, muss eine Directory.Build.props-Datei vorhanden sein, um zu bestimmen, wo sich der Ordner "artifacts" befinden soll.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: Die aktuelle Visual Studio-Version unterstützt {0} {1} nicht als Ziel. Geben Sie entweder {0} {2} oder niedriger als Ziel ein, oder verwenden Sie eine Version von Visual Studio {3} oder höher.
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: Der Zielplattformbezeichner {0} wurde nicht erkannt. Dies liegt daran, dass MSBuildEnableWorkloadResolver auf FALSE festgelegt ist, wodurch .NET SDK-Workloads deaktiviert werden, die für diesen Bezeichner erforderlich sind. Löschen Sie diese Umgebungsvariablen oder die MSBuild-Eigenschaft, um Workloads zu aktivieren.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf
index 020f6258977a..13f678fa6955 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: Si UseArtifactsPath se establece en true y ArtifactsPath no está establecido, debe haber un archivo Directory.Build.props para determinar dónde debe ubicarse la carpeta de artefactos.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: La versión actual de Visual Studio no admite {0} {1} de destino. Use el destino {0} {2} o uno inferior, o use la versión {3} o una superior de Visual Studio.
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: no se ha reconocido el identificador de la plataforma de destino {0}. Esto se debe a que MSBuildEnableWorkloadResolver está establecido en false, lo que deshabilita las cargas de trabajo del SDK de .NET necesarias para este identificador. Anule esta variable de entorno o propiedad de MSBuild para habilitar las cargas de trabajo.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
index 29818ec28389..7b2d4f37c9a5 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: si UseArtifactsPath est défini sur true et que le chemin de l'artefact n'est pas défini, il doit y avoir un fichier Directory.Build.props afin de déterminer l'emplacement du dossier des artefacts.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: la version Visual Studio actuelle ne prend pas en charge le ciblage de {0} {1}. Ciblez {0} {2} ou une version antérieure, ou utilisez Visual Studio version {3} ou ultérieure
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: l’identificateur de plateforme cible {0} n’a pas été reconnu. Cela est dû au fait que MSBuildEnableWorkloadResolver a la valeur false, ce qui désactive les charges de travail SDK .NET requises pour cet identificateur. Annulez la définition de cette variable d’environnement ou propriété MSBuild pour activer les charges de travail.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf
index 7d495036fd3d..e37ab1934976 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: se UseArtifactsPath è impostato su true e ArtifactsPath non è impostato, deve essere presente un file Directory.Build.props per determinare la posizione della cartella artefatti.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: la versione corrente di Visual Studio non supporta la destinazione {0}{1}. Impostare come destinazione {0} {2} o una versione precedente oppure usare una versione di Visual Studio {3} o più recente.
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: l'identificatore della piattaforma di destinazione {0} non è stato riconosciuto. Questo perché MSBuildEnableWorkloadResolver è impostato su false, di conseguenza vengono disabilitati i carichi di lavoro di .NET SDK necessari per questo identificatore. Annullare l'impostazione di questa variabile di ambiente o della proprietà MSBuild per abilitare i carichi di lavoro.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
index 6ac41619fb8e..2ec6e7f8fa5b 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: UseArtifactsPath が true に設定されていて ArtifactsPath が設定されていない場合は、成果物フォルダーの場所を特定するには Directory.Build.props ファイルが必要です。{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: 現在の Visual Studio バージョンは、ターゲット {0} {1} をサポートしていません。 ターゲット {0} {2} 以下、または Visual Studio バージョン {3} 以上を使用してください
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: ターゲット プラットフォーム識別子 {0} が認識されませんでした。これは、MSBuildEnableWorkloadResolver が false に設定されており、この識別子に必要な .NET SDK ワークロードが無効なためです。ワークロードを有効にするには、この環境変数または MSBuild プロパティを設定解除します。
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
index b957df09d433..363fb373725f 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: UseArtifactsPath가 true로 설정되어 있고 ArtifactsPath가 설정되지 않은 경우 아티팩트 폴더의 위치를 확인하려면 Directory.Build.props 파일이 있어야 합니다.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: 현재 Visual Studio 버전은 {0} {1} 타겟팅을 지원하지 않습니다. {0} {2} 이하를 대상으로 하거나 Visual Studio 버전 {3} 이상을 사용하세요.
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: 대상 플랫폼 식별자 {0}을(를) 인식할 수 없습니다. 이 식별자에 필요한 .NET SDK 워크로드를 사용하지 않도록 설정하는 MSBuildEnableWorkloadResolver가 false로 설정되어 있기 때문입니다. 워크로드를 활성화하려면 이 환경 변수 또는 MSBuild 속성을 설정 해제하세요.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
index 4c3afb6d46fb..059ad3d72e0a 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: Jeśli parametr UseArtifactsPath ma wartość true, a właściwość ArtifactsPath nie jest ustawiona, musi istnieć plik Directory.Build.props, aby określić, gdzie powinien znajdować się folder artefaktów.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: bieżąca wersja programu Visual Studio nie obsługuje wartości docelowej {0} {1}. Użyj wartości docelowej {0} {2} lub niższej albo wersji programu Visual Studio {3} lub wyższej
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: Identyfikator {0} platformy docelowej nie został rozpoznany. Jest to spowodowane tym, że parametr MSBuildEnableWorkloadResolver ma wartość false, co powoduje wyłączenie obciążeń zestawu .NET SDK wymaganych dla tego identyfikatora. Cofnij ustawienie tej zmiennej środowiskowej lub właściwości MSBuild, aby włączyć obciążenia.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
index ea17be1d8cde..21bdd277c1d3 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: Se UseArtifactsPath for definido como verdadeiro e Artifact Path não for definido, deve haver um arquivo Directory.Build.props para determinar onde a pasta de artefatos deve ser localizada.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: a versão atual do Visual Studio não oferece suporte ao direcionamento {0} {1}. Destino {0} {2} ou inferior, ou use a versão {3} ou superior do Visual Studio
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: o identificador da plataforma de destino {0} não foi reconhecido. Isso ocorre porque MSBuildEnableWorkloadResolver é definido como falso, o que desabilita as cargas de trabalho do SDK do .NET necessárias desse identificador. Desmarque essa variável de ambiente ou a propriedade MSBuild para habilitar as cargas de trabalho.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
index eb5382a34032..bd985e207040 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: если для UseArtifactsPath настроено значение true, а ArtifactsPath не настроен, для определения расположения папки артефактов необходим файл Directory.Build.props.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: текущая Visual Studio не поддерживает нацеливание {0} {1}. Выберите {0} {2} или более раннюю версию или используйте Visual Studio версии {3} или выше
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: идентификатор целевой платформы {0} не распознан. Причина в том, что MSBuildEnableWorkloadResolver имеет значение false, что отключает рабочие нагрузки пакета SDK для .NET, необходимые для этого идентификатора. Удалите эту переменную среды или отмените свойство MSBuild, чтобы включить рабочие нагрузки.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
index a8740c394b4d..fbe94bcdc3cf 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: UseArtifactsPath true olarak ayarlanırsa ve ArtifactsPath ayarlanmazsa, yapıtlar klasörünün nerede bulunacağını belirlemek için bir Directory.Build.props dosyası olmalıdır.{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: Geçerli Visual Studio sürümü {0} {1} sürümünü hedeflemeyi desteklemiyor. {0} {2} veya daha düşük bir sürümü hedefleyin ya da Visual Studio sürümü {3} veya daha üzerini kullanın
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: Hedef {0} platform tanımlayıcısı tanınmadı. Bunun nedeni, MSBuildEnableWorkloadResolver'ın false olarak ayarlanmasıdır ve bu işlem bu tanımlayıcı için gerekli olan .NET SDK İş Yüklerini devre dışı bırakır. İş yüklerini etkinleştirmek için bu ortam değişkeninin veya MSBuild özelliğinin ayarını kaldırın.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
index 368e7c3c74ea..f8816501aa6a 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: 如果 UseArtifactsPath 设置为 true,并且未设置 ArtifactsPath,则必须具有 Directory.Build.props 文件才能确定工件文件夹的位置。{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: 当前 Visual Studio 版本不支持面向 {0} {1}。请面向 {0} {2} 或更低版本,或者使用 Visual Studio {3} 或更高版本
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: 无法识别目标平台标识符 {0}。这是因为 MSBuildEnableWorkloadResolver 设置为 false,这将禁用此标识符所需的 .NET SDK 工作负载。若要启用这些工作负载,请取消设置此环境变量或 MSBuild 属性。
diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
index 26069b9ca38b..e61c5061bd76 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
@@ -1048,11 +1048,6 @@ The following are names of parameters or literal values and should not be transl
NETSDK1200: 如果 UseArtifactsPath 設定為 true 且未設定 ArtifactsPath,則必須有 Directory.Build.props 檔案,才能判斷成品資料夾的位置。{StrBegins="NETSDK1200: "}
-
- NETSDK1209: The current Visual Studio version does not support targeting {0} {1}. Either target {0} {2} or lower, or use Visual Studio version {3} or higher
- NETSDK1209: 目前的 Visual Studio 版本不支援將 {0} {1} 設定為目標。請將 {0} {2} 或更低版本設定為目標,或是使用 Visual Studio 版本 {3} 或更新版本
- {StrBegins="NETSDK1209: "}
- NETSDK1208: The target platform identifier {0} was not recognized. This is because MSBuildEnableWorkloadResolver is set to false which disables .NET SDK Workloads which is required for this identifer. Unset this environment variable or MSBuild property to enable workloads.NETSDK1208: 無法辨識目標平台識別碼 {0}。這是因為 MSBuildEnableWorkloadResolver 設為 false,這會停用此識別碼所需的 .NET SDK 工作負載。取消設定此環境變數或 MSBuild 屬性以啟用工作負載。
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs
index dc383cfdeaa0..59d8a1cf0ba0 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs
+++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs
@@ -38,6 +38,7 @@ public class GivenThatWeHaveErrorCodes
1183,
1190,
1192,
+ 1209,
1213,
1214,
1219,
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props
index 509e027d00e3..09628055e054 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props
@@ -14,6 +14,8 @@ Copyright (c) .NET Foundation. All rights reserved.
This is used by VS to show the list of frameworks to which projects can be retargeted. -->
+
@@ -26,15 +28,14 @@ Copyright (c) .NET Foundation. All rights reserved.
-
-
+
+ $([MSBuild]::Add($(NETCoreAppMaximumVersion), 1)).0
- 17.16
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets
index 7e902d066b81..84059ae093f1 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets
@@ -181,19 +181,10 @@ Copyright (c) .NET Foundation. All rights reserved.
-
- true
-
-
-
-
-