From f6c14c24174bf17b81e8af96e15c5c63272109d2 Mon Sep 17 00:00:00 2001 From: Andy Zivkovic Date: Wed, 8 Apr 2026 08:47:03 +0930 Subject: [PATCH 1/2] Warn that NuGet.exe needs .NET Framework MSBuild --- .../NuGet.CommandLine/MsBuildUtility.cs | 25 ++++++++ .../NuGetResources.Designer.cs | 9 +++ .../NuGet.CommandLine/NuGetResources.resx | 4 ++ .../xlf/NuGetResources.cs.xlf | 7 ++- .../xlf/NuGetResources.de.xlf | 7 ++- .../xlf/NuGetResources.es.xlf | 7 ++- .../xlf/NuGetResources.fr.xlf | 7 ++- .../xlf/NuGetResources.it.xlf | 7 ++- .../xlf/NuGetResources.ja.xlf | 7 ++- .../xlf/NuGetResources.ko.xlf | 7 ++- .../xlf/NuGetResources.pl.xlf | 7 ++- .../xlf/NuGetResources.pt-BR.xlf | 7 ++- .../xlf/NuGetResources.ru.xlf | 7 ++- .../xlf/NuGetResources.tr.xlf | 7 ++- .../xlf/NuGetResources.zh-Hans.xlf | 7 ++- .../xlf/NuGetResources.zh-Hant.xlf | 7 ++- .../MSBuildUtilityTest.cs | 63 +++++++++++++++++++ 17 files changed, 179 insertions(+), 13 deletions(-) diff --git a/src/NuGet.Clients/NuGet.CommandLine/MsBuildUtility.cs b/src/NuGet.Clients/NuGet.CommandLine/MsBuildUtility.cs index 20b088aed76..3bb4b0764e1 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/MsBuildUtility.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/MsBuildUtility.cs @@ -863,6 +863,17 @@ public static Lazy GetMsBuildDirectoryFromMsBuildPath(string msb throw new CommandException(message); } + if (IsNetCoreMsBuildDirectory(msbuildPath)) + { + var message = string.Format( + CultureInfo.CurrentCulture, + LocalizedResourceManager.GetString( + nameof(NuGetResources.Error_MsBuildIsNetCoreMsBuild)), + msbuildPath); + + throw new CommandException(message); + } + return new Lazy(() => new MsBuildToolset(msbuildVersion, msbuildPath)); } else @@ -871,6 +882,20 @@ public static Lazy GetMsBuildDirectoryFromMsBuildPath(string msb } } + /// + /// Detects whether the given directory contains a .NET SDK (dotnet) MSBuild installation + /// rather than a .NET Framework MSBuild installation. + /// NuGet.exe requires .NET Framework MSBuild because it loads Microsoft.Build.dll + /// in-process via Assembly.LoadFrom, which is incompatible with .NET Core assemblies. + /// Detection uses the presence of MSBuild.runtimeconfig.json, which is the canonical + /// indicator of a .NET Core application and will be present even if a future SDK + /// ships an AoT-compiled MSBuild.exe. + /// + internal static bool IsNetCoreMsBuildDirectory(string msbuildPath) + { + return File.Exists(Path.Combine(msbuildPath, "MSBuild.runtimeconfig.json")); + } + private static void AddProperty(List args, string property, string value) { if (string.IsNullOrEmpty(value)) diff --git a/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.Designer.cs b/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.Designer.cs index 7429fed3318..082dc87a687 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.Designer.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.Designer.cs @@ -429,6 +429,15 @@ public static string Error_MissingSourceParameter { } } + /// + /// Looks up a localized string similar to The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild.... + /// + public static string Error_MsBuildIsNetCoreMsBuild { + get { + return ResourceManager.GetString("Error_MsBuildIsNetCoreMsBuild", resourceCulture); + } + } + /// /// Looks up a localized string similar to MSBuild is not installed.. /// diff --git a/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.resx b/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.resx index 3a659370c8b..74a87eb3ebd 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.resx +++ b/src/NuGet.Clients/NuGet.CommandLine/NuGetResources.resx @@ -736,6 +736,10 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. The resolved MSBuild directory is `{0}` which is an architecture-specific directory. Could not find MSBuild in its parent directory (non-architecture specific). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + '{0} {1}' is deprecated. Use '{0} {2}' instead. {0} - name of the assembly running the command, e.g., NuGet diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf index 4e9e788fc96..0b546a96961 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Vyřešený adresář MSBuild je {0}, což je adresář specifický pro architekturu. Nepodařilo se najít nástroj MSBuild v jeho nadřazeném adresáři (nespecifickém pro architekturu). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Nelze získat metodu GetAllProjectFileNamesMethod z typu Mono.XBuild.CommandLine.SolutionParser. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf index fbabf62ce1b..01d9d17ca3b 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Das aufgelöste MSBuild-Verzeichnis ist "{0}" und ein architekturspezifisches Verzeichnis. MSBuild wurde im übergeordneten Verzeichnis nicht gefunden (nicht architekturspezifisch). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. GetAllProjectFileNamesMethod vom Typ „Mono.XBuild.CommandLine.SolutionParser“ kann nicht abgerufen werden. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf index 6bd374ebb5b..ba6ce0373ee 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. El directorio de MSBuild resuelto es "{0}", que es un directorio específico de la arquitectura. No se pudo encontrar MSBuild en su directorio primario (no específico de la arquitectura). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. No se puede obtener GetAllProjectFileNamesMethod del tipo Mono.XBuild.CommandLine.SolutionParser. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf index ac2595b553d..4acba92b31b 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Le répertoire MSBuild résolu est `{0}` , qui est un répertoire spécifique à l’architecture. MSBuild est introuvable dans son répertoire parent (non spécifique à l’architecture). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Impossible d’obtenir GetAllProjectFileNamesMethod à partir du type Mono.XBuild.CommandLine.SolutionParser. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf index f658d797c70..dc93d21e6cf 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. La directory MSBuild risolta è '{0}', che è una directory specifica per dell'architettura. Non è stato possibile trovare MSBuild nella sua directory padre (non specifica dell'architettura). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Non è possibile ottenere GetAllProjectFileNamesMethod dal tipo Mono.XBuild.CommandLine.SolutionParser. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf index 7e7580ee36a..df19b287d57 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 解決された MSBuild ディレクトリは、アーキテクチャ固有のディレクトリである '{0}' です。親ディレクトリ (非アーキテクチャ固有) に MSBuild が見つかりませんでした。 + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. 型 Mono.XBuild.CommandLine.SolutionParser から GetAllProjectFileNamesMethod を取得できません。 diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf index dc62fdf5e8b..751affb0e1e 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 확인된 MSBuild 디렉터리는 아키텍처별 디렉터리인 '{0}'입니다. 부모 디렉터리(비 아키텍처별)에서 MSBuild를 찾을 수 없습니다. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Mono.XBuild.CommandLine.SolutionParser 유형에서 GetAllProjectFileNamesMethod를 가져올 수 없습니다. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf index 0aba821132d..b7004301114 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Rozpoznany katalog MSBuild to „{0}”, który jest katalogiem specyficznym dla architektury. Nie można odnaleźć programu MSBuild w katalogu nadrzędnym (nie specyficznym dla architektury). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Nie można pobrać getAllProjectFileNamesMethod z typu Mono.XBuild.CommandLine.SolutionParser. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf index 187e373822c..203dc806b83 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. O diretório MSBuild resolvido é `{0}`, que é um diretório específico da arquitetura. Não foi possível localizar o MSBuild em seu diretório pai (não específico da arquitetura). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf index bf04763eab0..e4aec3d35e3 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Разрешенный каталог MSBuild — "{0}", являющийся каталогом, зависящим от архитектуры. Не удалось найти MSBuild в родительском каталоге (не зависит от архитектуры). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Не удается получить метод GetAllProjectFileNamesMethod из типа Mono.XBuild.CommandLine.SolutionParser. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf index a58997c3bc9..db7f2ad904c 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Çözümlenen MSBuild dizini, mimariye özgü bir dizin olan `{0}` dizinidir. Üst dizininde MSBuild bulunamadı (mimariye özgü değil). + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Mono.XBuild.CommandLine.SolutionParser türünden GetAllProjectFileNamesMethod alınamıyor. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf index fcc4cc35d45..6ce5c7da43b 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 已解析的 MSBuild 目录为 `{0}`,它是特定于体系结构的目录。在其父目录(非体系结构特定)中找不到 MSBuild。 + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. 无法从 Mono.XBuild.CommandLine.SolutionParser 类型获取 GetAllProjectFileNamesMethod。 diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf index 76922ce5952..f7507ad6ea0 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf @@ -1,4 +1,4 @@ - + @@ -133,6 +133,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 解析的 MSBuild 目錄是 '{0}' ,亦即架構特定目錄。在其上層目錄中找不到 MSBuild (非架構特定)。 + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. 無法從類型 Mono.XBuild.CommandLine.SolutionParser 取得 GetAllProjectFileNamesMethod。 diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildUtilityTest.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildUtilityTest.cs index 3fd3ffd59ab..49331ef43e0 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildUtilityTest.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildUtilityTest.cs @@ -402,6 +402,69 @@ public void CombinePathWithVerboseError_IllegalCharacters_MessageContainsBadPath Assert.Contains(badPath, exception.Message); } + [Fact] + public void IsNetCoreMsBuildDirectory_WithRuntimeConfig_ReturnsTrue() + { + using (var dir = TestDirectory.Create()) + { + File.WriteAllText(Path.Combine(dir, "MSBuild.runtimeconfig.json"), "{}"); + + Assert.True(MsBuildUtility.IsNetCoreMsBuildDirectory(dir)); + } + } + + [Fact] + public void IsNetCoreMsBuildDirectory_WithRuntimeConfigAndMsBuildExe_ReturnsTrue() + { + // Even if a future AoT SDK ships MSBuild.exe, the runtimeconfig.json + // still marks it as .NET Core, and NuGet.exe cannot load its assemblies. + using (var dir = TestDirectory.Create()) + { + File.WriteAllText(Path.Combine(dir, "MSBuild.exe"), "fake"); + File.WriteAllText(Path.Combine(dir, "MSBuild.runtimeconfig.json"), "{}"); + + Assert.True(MsBuildUtility.IsNetCoreMsBuildDirectory(dir)); + } + } + + [Fact] + public void IsNetCoreMsBuildDirectory_WithMsBuildExeOnly_ReturnsFalse() + { + using (var dir = TestDirectory.Create()) + { + File.WriteAllText(Path.Combine(dir, "MSBuild.exe"), "fake"); + + Assert.False(MsBuildUtility.IsNetCoreMsBuildDirectory(dir)); + } + } + + [Fact] + public void IsNetCoreMsBuildDirectory_EmptyDirectory_ReturnsFalse() + { + using (var dir = TestDirectory.Create()) + { + Assert.False(MsBuildUtility.IsNetCoreMsBuildDirectory(dir)); + } + } + + [Fact] + public void GetMsBuildDirectoryFromMsBuildPath_NetCoreMsBuild_ThrowsCommandException() + { + using (var dir = TestDirectory.Create()) + { + File.WriteAllText(Path.Combine(dir, "MSBuild.runtimeconfig.json"), "{}"); + + CommandException exception = Assert.Throws( + () => MsBuildUtility.GetMsBuildDirectoryFromMsBuildPath(dir, null, null)); + + string expectedMessage = string.Format( + CultureInfo.CurrentCulture, + LocalizedResourceManager.GetString(nameof(NuGetResources.Error_MsBuildIsNetCoreMsBuild)), + dir.ToString()); + Assert.Equal(expectedMessage, exception.Message); + } + } + public static class ToolsetDataSource { // Legacy toolsets From b52a0b132b9b5574fb2d494de8ef22612fca9845 Mon Sep 17 00:00:00 2001 From: Andy Zivkovic Date: Thu, 9 Apr 2026 10:46:01 +0930 Subject: [PATCH 2/2] fix xlf files --- .../NuGet.CommandLine/xlf/NuGetResources.cs.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.de.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.es.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.fr.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.it.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.ja.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.ko.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.pl.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.ru.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.tr.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf | 12 ++++++------ .../NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf | 12 ++++++------ 13 files changed, 78 insertions(+), 78 deletions(-) diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf index 0b546a96961..321b7c8482e 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.cs.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Vyřešený adresář MSBuild je {0}, což je adresář specifický pro architekturu. Nepodařilo se najít nástroj MSBuild v jeho nadřazeném adresáři (nespecifickém pro architekturu). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Nelze získat metodu GetAllProjectFileNamesMethod z typu Mono.XBuild.CommandLine.SolutionParser. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Není zadaný zdrojový parametr. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. Při pokusu o získání odkazů projektu na projekt vypršel časový limit nástroje MsBuild. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf index 01d9d17ca3b..4fc79cede20 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.de.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Das aufgelöste MSBuild-Verzeichnis ist "{0}" und ein architekturspezifisches Verzeichnis. MSBuild wurde im übergeordneten Verzeichnis nicht gefunden (nicht architekturspezifisch). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. GetAllProjectFileNamesMethod vom Typ „Mono.XBuild.CommandLine.SolutionParser“ kann nicht abgerufen werden. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Der Quellparameter wurde nicht angegeben. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. MsBuild-Zeitüberschreitung beim Abrufen von Projekt-zu-Projekt-Verweisen. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf index ba6ce0373ee..a92259b34fa 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.es.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. El directorio de MSBuild resuelto es "{0}", que es un directorio específico de la arquitectura. No se pudo encontrar MSBuild en su directorio primario (no específico de la arquitectura). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. No se puede obtener GetAllProjectFileNamesMethod del tipo Mono.XBuild.CommandLine.SolutionParser. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. No se especificó el parámetro de origen. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. Se agotó el tiempo de espera de MsBuild al intentar obtener referencias de proyecto a proyecto. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf index 4acba92b31b..dd1dc75901d 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.fr.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Le répertoire MSBuild résolu est `{0}` , qui est un répertoire spécifique à l’architecture. MSBuild est introuvable dans son répertoire parent (non spécifique à l’architecture). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Impossible d’obtenir GetAllProjectFileNamesMethod à partir du type Mono.XBuild.CommandLine.SolutionParser. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Le paramètre source n'a pas été spécifié. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. Expiration du délai de MsBuild lors de la tentative d’obtention des références de projet à projet. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf index dc93d21e6cf..3debf64afb2 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.it.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. La directory MSBuild risolta è '{0}', che è una directory specifica per dell'architettura. Non è stato possibile trovare MSBuild nella sua directory padre (non specifica dell'architettura). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Non è possibile ottenere GetAllProjectFileNamesMethod dal tipo Mono.XBuild.CommandLine.SolutionParser. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Il parametro di origine non è stato specificato. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. Timeout di MsBuild durante il tentativo di ottenere i riferimenti da progetto a progetto. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf index df19b287d57..79d41dfa0a5 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ja.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 解決された MSBuild ディレクトリは、アーキテクチャ固有のディレクトリである '{0}' です。親ディレクトリ (非アーキテクチャ固有) に MSBuild が見つかりませんでした。 - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. 型 Mono.XBuild.CommandLine.SolutionParser から GetAllProjectFileNamesMethod を取得できません。 @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. ソース パラメーターが指定されていませんでした。 + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. プロジェクトからプロジェクトへの参照を取得しようとしているときに MSBuild がタイムアウトしました。 diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf index 751affb0e1e..1d2bf5e9fb3 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ko.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 확인된 MSBuild 디렉터리는 아키텍처별 디렉터리인 '{0}'입니다. 부모 디렉터리(비 아키텍처별)에서 MSBuild를 찾을 수 없습니다. - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Mono.XBuild.CommandLine.SolutionParser 유형에서 GetAllProjectFileNamesMethod를 가져올 수 없습니다. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 원본 매개 변수를 지정하지 않았습니다. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. 프로젝트에서 프로젝트 참조를 가져오는 동안 MsBuild 시간이 초과되었습니다. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf index b7004301114..54cffe2fadf 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pl.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Rozpoznany katalog MSBuild to „{0}”, który jest katalogiem specyficznym dla architektury. Nie można odnaleźć programu MSBuild w katalogu nadrzędnym (nie specyficznym dla architektury). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Nie można pobrać getAllProjectFileNamesMethod z typu Mono.XBuild.CommandLine.SolutionParser. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Parametr źródłowy nie został określony. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. Przekroczono limit czasu programu MsBuild podczas próby pobrania odwołań projektu do projektu. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf index 203dc806b83..28824bfcf25 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.pt-BR.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. O diretório MSBuild resolvido é `{0}`, que é um diretório específico da arquitetura. Não foi possível localizar o MSBuild em seu diretório pai (não específico da arquitetura). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. O parâmetro de origem não foi especificado. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. O tempo limite do MsBuild foi atingido ao tentar obter referências do projeto para o projeto. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf index e4aec3d35e3..060b1dc0c0c 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.ru.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Разрешенный каталог MSBuild — "{0}", являющийся каталогом, зависящим от архитектуры. Не удалось найти MSBuild в родительском каталоге (не зависит от архитектуры). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Не удается получить метод GetAllProjectFileNamesMethod из типа Mono.XBuild.CommandLine.SolutionParser. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Исходный параметр не указан. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. При попытке получить ссылки проекта на проект истекло время ожидания MsBuild. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf index db7f2ad904c..b112f7a0c20 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.tr.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Çözümlenen MSBuild dizini, mimariye özgü bir dizin olan `{0}` dizinidir. Üst dizininde MSBuild bulunamadı (mimariye özgü değil). - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. Mono.XBuild.CommandLine.SolutionParser türünden GetAllProjectFileNamesMethod alınamıyor. @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. Kaynak parametresi belirtilmedi. + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. Proje başvuruları için proje alınmaya çalışılırken MsBuild zaman aşımına uğradı. diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf index 6ce5c7da43b..accd9201310 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hans.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 已解析的 MSBuild 目录为 `{0}`,它是特定于体系结构的目录。在其父目录(非体系结构特定)中找不到 MSBuild。 - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. 无法从 Mono.XBuild.CommandLine.SolutionParser 类型获取 GetAllProjectFileNamesMethod。 @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 未指定源参数。 + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. 尝试将项目获取到项目引用时,MsBuild 超时。 diff --git a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf index f7507ad6ea0..bcd790a5bbe 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf +++ b/src/NuGet.Clients/NuGet.CommandLine/xlf/NuGetResources.zh-Hant.xlf @@ -1,4 +1,4 @@ - + @@ -133,11 +133,6 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 解析的 MSBuild 目錄是 '{0}' ,亦即架構特定目錄。在其上層目錄中找不到 MSBuild (非架構特定)。 - - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. - {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. - Cannot get the GetAllProjectFileNamesMethod from type Mono.XBuild.CommandLine.SolutionParser. 無法從類型 Mono.XBuild.CommandLine.SolutionParser 取得 GetAllProjectFileNamesMethod。 @@ -218,6 +213,11 @@ Do not localize `SDK`, `dotnet pack`, msbuild -t:pack` and 'true'. 未指定來源參數。 + + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + The MSBuild directory '{0}' appears to be a .NET SDK (dotnet) MSBuild installation. NuGet.exe requires the .NET Framework version of MSBuild, which is included with Visual Studio. Use 'dotnet restore' instead, or provide the path to a Visual Studio MSBuild installation. + {0} is the MSBuild directory path. Do not localize 'NuGet.exe', 'MSBuild', '.NET SDK', '.NET Framework', 'dotnet restore', 'Visual Studio'. + MsBuild timeout out while trying to get project to project references. 嘗試取得專案參考的專案時,MsBuild 逾時。