From 88922ccf545b3f94f35c745bf1e5cc7582ce6412 Mon Sep 17 00:00:00 2001 From: Marc Paine Date: Fri, 6 Sep 2024 11:54:50 -0700 Subject: [PATCH 1/4] Add known issue for workload restore and workload sets --- release-notes/8.0/known-issues.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/release-notes/8.0/known-issues.md b/release-notes/8.0/known-issues.md index cb092db12a9..4f98f08ea41 100644 --- a/release-notes/8.0/known-issues.md +++ b/release-notes/8.0/known-issues.md @@ -4,14 +4,12 @@ You may encounter the following known issues, which may include workarounds, mit ## .NET SDK -### 8.0.2xx SDK is not compatible with 17.8 for some scenarios -Some analyzers and source generators that ship with the SDK took a dependency on a new version of the Roslyn compiler. In Visual Studio and msbuild.exe, .NET projects use the Roslyn version that comes with Visual Studio by default. +### [8.0.4xx] `dotnet workload restore` with a workload set configured in the global.json will not work -**Example error messages** -`Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'` -`Microsoft.Codeanalysis.CodeStyle.dll references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'` +8.0.4xx doesn't support restoring a workload set listed in a global.json file. See the [documentation](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-sets#use-globaljson-for-the-workload-set-version) for more details on the scenario of pinning a workload version. + +**Error** +`Unhandled exception: Microsoft.Build.Exceptions.InvalidProjectFileException: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.SDK.WorkloadAutoImportPropsLocator". Exception: "System.IO.FileNotFoundException: Workload version 8.0.401, which was specified in \global.json, was not found. Run "dotnet workload restore" to install this workload version.` **Workaround** -1. Use 17.10 which matches the 8.0.2xx SDK -2. Install the 8.0.1xx SDK and use global.json to pin to it if you have multiple SDKs installed -3. Set BuildWithNetFrameworkHostedCompiler=true in your build. This configures the build to use a matching version of the compiler to your SDK version rather than to your VS version so in this case, it'll use a 4.10 version of Roslyn. +Run `dotnet workload update` first to get the workload set instaleld and then run `dotnet workload restore` after to install the required workloads. From 1fcaf6c1bb838f3c33116ec6e90f900eab166533 Mon Sep 17 00:00:00 2001 From: Marc Paine Date: Fri, 6 Sep 2024 14:58:12 -0700 Subject: [PATCH 2/4] fix line length linter complaint. --- release-notes/8.0/known-issues.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release-notes/8.0/known-issues.md b/release-notes/8.0/known-issues.md index 4f98f08ea41..230987516bb 100644 --- a/release-notes/8.0/known-issues.md +++ b/release-notes/8.0/known-issues.md @@ -9,7 +9,8 @@ You may encounter the following known issues, which may include workarounds, mit 8.0.4xx doesn't support restoring a workload set listed in a global.json file. See the [documentation](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-sets#use-globaljson-for-the-workload-set-version) for more details on the scenario of pinning a workload version. **Error** -`Unhandled exception: Microsoft.Build.Exceptions.InvalidProjectFileException: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.SDK.WorkloadAutoImportPropsLocator". Exception: "System.IO.FileNotFoundException: Workload version 8.0.401, which was specified in \global.json, was not found. Run "dotnet workload restore" to install this workload version.` +`Unhandled exception: Microsoft.Build.Exceptions.InvalidProjectFileException: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.SDK.WorkloadAutoImportPropsLocator". +Exception: "System.IO.FileNotFoundException: Workload version 8.0.401, which was specified in \global.json, was not found. Run "dotnet workload restore" to install this workload version.` **Workaround** Run `dotnet workload update` first to get the workload set instaleld and then run `dotnet workload restore` after to install the required workloads. From db040635401cef276636e732b6c816f60cb2b1a0 Mon Sep 17 00:00:00 2001 From: Marc Paine Date: Mon, 9 Sep 2024 13:06:18 -0700 Subject: [PATCH 3/4] Update release-notes/8.0/known-issues.md Co-authored-by: Martin Costello --- release-notes/8.0/known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-notes/8.0/known-issues.md b/release-notes/8.0/known-issues.md index 230987516bb..0c1f5c4278a 100644 --- a/release-notes/8.0/known-issues.md +++ b/release-notes/8.0/known-issues.md @@ -13,4 +13,4 @@ You may encounter the following known issues, which may include workarounds, mit Exception: "System.IO.FileNotFoundException: Workload version 8.0.401, which was specified in \global.json, was not found. Run "dotnet workload restore" to install this workload version.` **Workaround** -Run `dotnet workload update` first to get the workload set instaleld and then run `dotnet workload restore` after to install the required workloads. +Run `dotnet workload update` first to get the workload set installed and then run `dotnet workload restore` after to install the required workloads. From 37278c0d7aa0071f23d4cb99876ff683ee9763cc Mon Sep 17 00:00:00 2001 From: Marc Paine Date: Mon, 9 Sep 2024 13:08:42 -0700 Subject: [PATCH 4/4] Remove trailing space to fix linter error --- release-notes/8.0/known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-notes/8.0/known-issues.md b/release-notes/8.0/known-issues.md index 0c1f5c4278a..563261a65f6 100644 --- a/release-notes/8.0/known-issues.md +++ b/release-notes/8.0/known-issues.md @@ -9,7 +9,7 @@ You may encounter the following known issues, which may include workarounds, mit 8.0.4xx doesn't support restoring a workload set listed in a global.json file. See the [documentation](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-sets#use-globaljson-for-the-workload-set-version) for more details on the scenario of pinning a workload version. **Error** -`Unhandled exception: Microsoft.Build.Exceptions.InvalidProjectFileException: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.SDK.WorkloadAutoImportPropsLocator". +`Unhandled exception: Microsoft.Build.Exceptions.InvalidProjectFileException: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.SDK.WorkloadAutoImportPropsLocator". Exception: "System.IO.FileNotFoundException: Workload version 8.0.401, which was specified in \global.json, was not found. Run "dotnet workload restore" to install this workload version.` **Workaround**