Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ {0} obsahuje více souborů projektů MSBuild. Pomocí parametru --projekt zadejte, který soubor chcete použít.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ V {0} se nepovedlo najít soubor projektu MSBuild. Pomocí parametru --project zadejte, který projekt chcete použít.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ Soubor projektu {0} neexistuje.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Možnosti --quiet a --verbose se nedají zadat spolu.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.de.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.de.xlf
index 9e95aeb830ce..b772a5351792 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.de.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.de.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ In "{0}" wurden mehrere MSBuild-Projektdateien gefunden. Geben Sie über die Option "--project" an, welche verwendet werden soll.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ In "{0}" wurde keine MSBuild-Projektdatei gefunden. Geben Sie das zu verwendende Projekt über die Option "--project" an.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ Die Projektdatei "{0}" ist nicht vorhanden.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Die Optionen "--quiet" und "--verbose" können nicht gleichzeitig angegeben werden.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.es.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.es.xlf
index d97afc29fa42..9a01f59deae5 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.es.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.es.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ Se encontraron múltiples archivos del proyecto MSBuild en "{0}". Especifique cuál debe usarse con la opción --project. Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ No se encontró ningún archivo del proyecto MSBuild en "{0}". Especifique qué proyecto debe utilizarse con la opción --project.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ El archivo de proyecto "{0}" no existe.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ No se pueden especificar ambas opciones, "--quiet" y "--verbose".
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.fr.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.fr.xlf
index 82cc6796c1e8..d06ee87bd3e9 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.fr.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.fr.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ Plusieurs fichiers projet MSBuild trouvés dans '{0}'. Spécifiez celui qui doit être utilisé avec l'option --project.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ Fichier projet MSBuild introuvable dans '{0}'. Spécifiez le projet à utiliser avec l'option --project.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ Le fichier projet '{0}' n'existe pas.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Impossible de spécifier les options '--quiet' et '--verbose'.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.it.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.it.xlf
index 0e86efb27eb2..ced7af187f3f 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.it.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.it.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ In '{0}' sono stati trovati più file di progetto MSBuild. Per specificare quello desiderato, usare l'opzione --project.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ In '{0}' non è stato possibile trovare alcun file di progetto MSBuild. Per specificare quello desiderato, usare l'opzione --project.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ Il file di progetto '{0}' non esiste.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Non è possibile specificare entrambe le opzioni '--quiet' e '--verbose'.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.ja.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.ja.xlf
index 41c1c86023a0..34e19a784b9d 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.ja.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.ja.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ 複数の MSBuild プロジェクト ファイルが '{0}' で見つかりました。使用するものを --project オプションで指定してください。Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ '{0}' で MSBuild プロジェクト ファイルが見つかりませんでした。使用するプロジェクトを --project オプションで指定してください。The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ プロジェクト ファイル '{0}' が存在しません。Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ '--quiet' と '--verbose' の両方のオプションを指定することはできません。
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.ko.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.ko.xlf
index 0a67ed91314d..130b666b6f04 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.ko.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.ko.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ '{0}'에서 여러 MSBuild 프로젝트 파일을 찾았습니다. --project 옵션을 사용하여 사용할 파일을 지정하세요.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ '{0}'에서 MSBuild 프로젝트 파일을 찾을 수 없습니다. --project 옵션을 사용하여 사용할 파일을 지정하세요.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ 프로젝트 파일 '{0}'이(가) 없습니다.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ '--quiet' 옵션과 '--verbose' 옵션을 둘 다 지정할 수는 없습니다.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.pl.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.pl.xlf
index c7d63b22da9a..b31b93d70753 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.pl.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.pl.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ W elemencie „{0}” znaleziono wiele plików projektów MSBuild. Określ projekt do użycia za pomocą opcji --project.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ Nie można znaleźć pliku projektu MSBuild w elemencie „{0}”. Określ projekt do użycia za pomocą opcji --project.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ Plik projektu „{0}” nie istnieje.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Nie można jednocześnie określić opcji „--quiet” i „--verbose”.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.pt-BR.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.pt-BR.xlf
index d023afbeb49c..e7a1e5088eda 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.pt-BR.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.pt-BR.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ Foram encontrados vários arquivos de projeto do MSBuild em '{0}'. Especifique qual deve ser usado com a opção --project.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ Não foi possível encontrar um arquivo de projeto do MSBuild em '{0}'. Especifique qual projeto deve ser usado com a opção --project.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ O arquivo de projeto '{0}' não existe.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Não é possível especificar as opções '--quiet' e '--verbose'.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.ru.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.ru.xlf
index 7ce5b18ef169..0230037ff9be 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.ru.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.ru.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ В "{0}" обнаружено несколько файлов проекта MSBuild. Укажите файл, который нужно использовать, с помощью параметра --project.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ Не удалось найти файл проекта MSBuild в "{0}". Укажите проект, который нужно использовать, с помощью параметра --project.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ Файл проекта "{0}" не существует.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Невозможно одновременно указать параметры "--quiet" и "--verbose".
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.tr.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.tr.xlf
index 2319a1435875..fe0b1cd8c3f0 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.tr.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.tr.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ '{0}' içinde birden fazla MSBuild proje dosyası bulundu. --project seçeneği ile kullanılacak proje dosyalarını belirtin.Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ '{0}' içinde MSBuild proje dosyası bulunamadı. --project seçeneği ile kullanılacak projeyi belirtin.The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ Proje dosyası '{0}' yok.Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ Hem '--quiet' hem de '--verbose' seçenekleri belirtilemez.
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hans.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hans.xlf
index f573f262ae3b..f25a47e35b39 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hans.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hans.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ 在“{0}”中找到多个 MSBuild 项目文件。请指定要将哪一个文件用于 --project 选项。Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ 无法在“{0}”中找到 MSBuild 项目文件。请指定要用于 --project 选项的项目。The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ 项目文件“{0}” 不存在。Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ 不能同时指定 "--quiet" 和 "--verbose" 选项。
diff --git a/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hant.xlf b/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hant.xlf
index 3bf01f355868..69667a91d1a1 100644
--- a/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hant.xlf
+++ b/src/BuiltInTools/dotnet-watch/xlf/Resources.zh-Hant.xlf
@@ -4,22 +4,22 @@
Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
- Multiple MSBuild project files found in '{0}'. Specify which to use with the --project option.
+ 在 '{0}' 中找到多個 MSBuild 專案檔。請指定要搭配 --project 選項使用的專案檔。Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
- Could not find a MSBuild project file in '{0}'. Specify which project to use with the --project option.
+ 在 '{0}' 中找不到 MSBuild 專案檔。請指定要搭配 --project 選項使用的專案。The project file '{0}' does not exist.
- The project file '{0}' does not exist.
+ 專案檔 '{0}' 不存在。Cannot specify both '--quiet' and '--verbose' options.
- Cannot specify both '--quiet' and '--verbose' options.
+ 無法同時指定 '--quiet' 和 '--verbose' 選項。
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets
index a036e2fe5ff1..0626e0520143 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets
@@ -23,7 +23,6 @@ Copyright (c) .NET Foundation. All rights reserved.
<_IsExecutable Condition="'$(OutputType)' == 'Exe' or '$(OutputType)'=='WinExe'">true
WinExe
- true
diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs
index 50ee22d85a07..807a84549c36 100644
--- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs
+++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs
@@ -351,95 +351,5 @@ private string GetPropertyValue(TestAsset testAsset, string propertyName)
return getValueCommand.GetValues().Single();
}
-
- [WindowsOnlyFact]
- public void It_can_use_source_generators_with_wpf()
- {
- var sourceGenProject = new TestProject()
- {
- Name = "SourceGen",
- TargetFrameworks = "netstandard2.0"
- };
- sourceGenProject.AdditionalProperties.Add("LangVersion", "preview");
- sourceGenProject.PackageReferences.Add(new TestPackageReference("Microsoft.CodeAnalysis.CSharp", "3.8.0-3.final", privateAssets: "all"));
- sourceGenProject.PackageReferences.Add(new TestPackageReference("Microsoft.CodeAnalysis.Analyzers", "3.0.0", privateAssets: "all"));
- sourceGenProject.SourceFiles.Add("Program.cs", SourceGenSourceFile);
- var sourceGenTestAsset = _testAssetsManager.CreateTestProject(sourceGenProject);
-
- var testDir = sourceGenTestAsset.Path;
- var newCommand = new DotnetCommand(Log, "new", "wpf", "-o", "wpfApp", "--no-restore");
- newCommand.WorkingDirectory = testDir;
- newCommand.Execute()
- .Should()
- .Pass();
-
- // Reference generated code from a wpf app
- var projFile = Path.Combine(testDir, "wpfApp", "wpfApp.csproj");
- File.WriteAllText(projFile, $@"
-
- WinExe
- net5.0-windows
- true
- preview
-
-
-
-
-".Replace('`', '"'));
- File.WriteAllText(Path.Combine(testDir, "wpfApp", "MainWindow.xaml.cs"), $@"using System.Windows;
-namespace wpfApp
-{{
- public partial class MainWindow : Window
- {{
- public MainWindow()
- {{
- HelloWorldGenerated.HelloWorld.SayHello();
- }}
- }}
-}}");
-
- var buildCommand = new BuildCommand(Log, Path.Combine(testDir, "wpfApp"));
- buildCommand.Execute()
- .Should()
- .Pass();
- }
-
- private static readonly string SourceGenSourceFile = @"using System.Collections.Generic;
-using System.Text;
-using Microsoft.CodeAnalysis;
-using Microsoft.CodeAnalysis.Text;
-
-namespace SourceGeneratorSamples
-{
- [Generator]
- public class HelloWorldGenerator : ISourceGenerator
- {
- public void Execute(GeneratorExecutionContext context)
- {
- StringBuilder sourceBuilder = new StringBuilder(@`
-using System;
-namespace HelloWorldGenerated
-{
- public static class HelloWorld
- {
- public static void SayHello()
- {
- Console.WriteLine(``Hello from generated code!``);
-`);
- IEnumerable syntaxTrees = context.Compilation.SyntaxTrees;
- foreach (SyntaxTree tree in syntaxTrees)
- {
- sourceBuilder.AppendLine($@`Console.WriteLine(@`` - {tree.FilePath}``);`);
- }
- sourceBuilder.Append(@`
- }
- }
-}`);
- context.AddSource(`helloWorldGenerated`, SourceText.From(sourceBuilder.ToString(), Encoding.UTF8));
- }
-
- public void Initialize(GeneratorInitializationContext context) {}
- }
-}".Replace('`', '"');
}
}