From 5f5cbfc8c50500dbd5d71fa83bf7d4e107cde5f0 Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Mon, 7 Dec 2020 20:45:45 +0100 Subject: [PATCH] Update NuGet to version 5.8.0 Fixes: https://github.com/OmniSharp/omnisharp-roslyn/issues/2027 Fixes the following exception when using OmniSharp on Linux (with Emacs, but possibly breaks with other LSP clients as well): ERROR: OmniSharp.MSBuild.ProjectLoader, The "ResolvePackageAssets" task failed unexpectedly. System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(string,string) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader..ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () at Microsoft.NET.Build.Tasks.TaskBase.Execute () at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) Currently used NuGet 5.2.0 is too old, update to 5.8.0 makes the issue disappear. --- build/Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Packages.props b/build/Packages.props index 0ded80066c..b86f9ba3fa 100644 --- a/build/Packages.props +++ b/build/Packages.props @@ -4,7 +4,7 @@ 16.8.0 - 5.2.0 + 5.8.0 3.9.0-2.20570.24 2.4.1