diff --git a/src/Cli/dotnet/commands/dotnet-run/LocalizableStrings.resx b/src/Cli/dotnet/commands/dotnet-run/LocalizableStrings.resx
index 59f9d4b94494..5bc8b7545ae8 100644
--- a/src/Cli/dotnet/commands/dotnet-run/LocalizableStrings.resx
+++ b/src/Cli/dotnet/commands/dotnet-run/LocalizableStrings.resx
@@ -217,4 +217,7 @@ The current {1} is '{2}'.
The property '{0}' must be an object if it is specified.
-
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+
\ No newline at end of file
diff --git a/src/Cli/dotnet/commands/dotnet-run/Program.cs b/src/Cli/dotnet/commands/dotnet-run/Program.cs
index 6dffdc88581b..81ceac1e8714 100644
--- a/src/Cli/dotnet/commands/dotnet-run/Program.cs
+++ b/src/Cli/dotnet/commands/dotnet-run/Program.cs
@@ -22,12 +22,22 @@ public static RunCommand FromArgs(string[] args)
throw new HelpException(string.Empty);
}
+ string project = parseResult.ValueForOption(RunCommandParser.ProjectOptionShort);
+ if (!string.IsNullOrEmpty(project))
+ {
+ Console.WriteLine(LocalizableStrings.RunCommandProjectAbbreviationDeprecated.Yellow());
+ }
+ else
+ {
+ project = parseResult.ValueForOption(RunCommandParser.ProjectOption);
+ }
+
var command = new RunCommand(
configuration: parseResult.ValueForOption(RunCommandParser.ConfigurationOption),
framework: parseResult.ValueForOption(RunCommandParser.FrameworkOption),
runtime: parseResult.ValueForOption(RunCommandParser.RuntimeOption),
noBuild: parseResult.HasOption(RunCommandParser.NoBuildOption),
- project: parseResult.ValueForOption(RunCommandParser.ProjectOption),
+ project: project,
launchProfile: parseResult.ValueForOption(RunCommandParser.LaunchProfileOption),
noLaunchProfile: parseResult.HasOption(RunCommandParser.NoLaunchProfileOption),
noRestore: parseResult.HasOption(RunCommandParser.NoRestoreOption) || parseResult.HasOption(RunCommandParser.NoBuildOption),
diff --git a/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.cs b/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.cs
index b88863cbcc23..684b68d7821c 100644
--- a/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.cs
+++ b/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.cs
@@ -15,7 +15,12 @@ internal static class RunCommandParser
public static readonly Option RuntimeOption = CommonOptions.RuntimeOption(LocalizableStrings.RuntimeOptionDescription);
- public static readonly Option ProjectOption = new Option(new string[] { "-p", "--project" }, LocalizableStrings.CommandOptionProjectDescription);
+ public static readonly Option ProjectOption = new Option("--project", LocalizableStrings.CommandOptionProjectDescription);
+
+ public static readonly Option ProjectOptionShort = new Option("-p", LocalizableStrings.CommandOptionProjectDescription)
+ {
+ IsHidden = true
+ };
public static readonly Option LaunchProfileOption = new Option("--launch-profile", LocalizableStrings.CommandOptionLaunchProfileDescription);
@@ -35,6 +40,7 @@ public static Command GetCommand()
command.AddOption(FrameworkOption);
command.AddOption(RuntimeOption);
command.AddOption(ProjectOption);
+ command.AddOption(ProjectOptionShort);
command.AddOption(LaunchProfileOption);
command.AddOption(NoLaunchProfileOption);
command.AddOption(NoBuildOption);
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.cs.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.cs.xlf
index 89ff1b154d4f..883fbc8a8aa5 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.cs.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.cs.xlf
@@ -107,6 +107,11 @@ Aktuální {1} je {2}.
(výchozí)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Použití nastavení spuštění z {0}...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.de.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.de.xlf
index 495fe40314d2..f62523078795 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.de.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.de.xlf
@@ -107,6 +107,11 @@ Ein ausführbares Projekt muss ein ausführbares TFM (z. B. net5.0) und den Outp
(Standard)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Die Starteinstellungen von {0} werden verwendet…
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.es.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.es.xlf
index 95e3dbe0dfca..4a2351e18b1f 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.es.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.es.xlf
@@ -107,6 +107,11 @@ El valor actual de {1} es "{2}".
(Predeterminada)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Usando la configuración de inicio de {0}...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.fr.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.fr.xlf
index 2206458fc44b..e20b1b855cac 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.fr.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.fr.xlf
@@ -107,6 +107,11 @@ Le {1} actuel est '{2}'.
(Par défaut)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Utilisation des paramètres de lancement à partir de {0}...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.it.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.it.xlf
index f62c41791ce8..7cd2f0cabd18 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.it.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.it.xlf
@@ -107,6 +107,11 @@ Il valore corrente di {1} è '{2}'.
(Predefinita)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Uso delle impostazioni di avvio di {0}...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ja.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ja.xlf
index 6c522fed144c..ac36b275b92c 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ja.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ja.xlf
@@ -107,6 +107,11 @@ The current {1} is '{2}'.
(既定)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...{0} からの起動設定を使用中...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ko.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ko.xlf
index 4e7cd8474154..99e4cf723e5b 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ko.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ko.xlf
@@ -107,6 +107,11 @@ The current {1} is '{2}'.
(기본값)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...{0}의 시작 설정을 사용하는 중...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pl.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pl.xlf
index 1f0ee7b14412..46e08bb124b9 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pl.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pl.xlf
@@ -107,6 +107,11 @@ Bieżący element {1}: „{2}”.
(Domyślne)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Używanie ustawień uruchamiania z profilu {0}...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pt-BR.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pt-BR.xlf
index 026b8df53e54..f26f5173ae1c 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pt-BR.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.pt-BR.xlf
@@ -107,6 +107,11 @@ O {1} atual é '{2}'.
(Padrão)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Usando as configurações de inicialização de {0}...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ru.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ru.xlf
index f0fddb5126e2..4878d68de1ea 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ru.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.ru.xlf
@@ -107,6 +107,11 @@ The current {1} is '{2}'.
(По умолчанию)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...Используются параметры запуска из {0}...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.tr.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.tr.xlf
index 417c5f1445de..ce996ab78777 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.tr.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.tr.xlf
@@ -107,6 +107,11 @@ Geçerli {1}: '{2}'.
(Varsayılan)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...{0} içindeki başlatma ayarları kullanılıyor...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hans.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hans.xlf
index fd336d709bd6..0ca8f1fffbfc 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hans.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hans.xlf
@@ -107,6 +107,11 @@ The current {1} is '{2}'.
(默认值)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...从 {0} 使用启动设置...
diff --git a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hant.xlf b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hant.xlf
index 570769dec9b2..f0e66eb09024 100644
--- a/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hant.xlf
+++ b/src/Cli/dotnet/commands/dotnet-run/xlf/LocalizableStrings.zh-Hant.xlf
@@ -107,6 +107,11 @@ The current {1} is '{2}'.
(預設)
+
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+ Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
+
+ Using launch settings from {0}...使用來自 {0} 的啟動設定...
diff --git a/src/Tasks/Common/Resources/Strings.resx b/src/Tasks/Common/Resources/Strings.resx
index 01e44915c2ab..42d6c3f55bc8 100644
--- a/src/Tasks/Common/Resources/Strings.resx
+++ b/src/Tasks/Common/Resources/Strings.resx
@@ -807,4 +807,8 @@ To install these workloads, run the following command: {1}
NETSDK1173: The provided type library '{0}' is in an invalid format.{StrBegin="NETSDK1173: "}
-
\ No newline at end of file
+
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+
+
diff --git a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
index 09b6a7c3dd0b..73a5b9bd8367 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.cs.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: PackageReference na balíček {0} určuje verzi {1}. Určení verze tohoto balíčku se nedoporučuje. Další informace najdete na adrese https://aka.ms/sdkimplicitrefs.{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: Prostředky se používají z projektu {0}, ale v {1} se nenašla odpovídající cesta k projektu MSBuild.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.de.xlf b/src/Tasks/Common/Resources/xlf/Strings.de.xlf
index 5b30117cced5..1fa939dfad6f 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.de.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.de.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: Ein PackageReference-Verweis auf "{0}" hat die Version "{1}" angegeben. Die Angabe der Version dieses Pakets wird nicht empfohlen. Weitere Informationen finden Sie unter https://aka.ms/sdkimplicitrefs.{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: Es werden Ressourcen aus dem Projekt "{0}" genutzt, in "{1}" wurde jedoch kein entsprechender MSBuild-Projektpfad gefunden.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.es.xlf b/src/Tasks/Common/Resources/xlf/Strings.es.xlf
index 381dc9efe093..52c4ed1ba7ec 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.es.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.es.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: A PackageReference to '{0}' specified a Version of `{1}`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
index 8054c1e0be0b..40608f27d13f 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.fr.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: Une référence de package vers '{0}' a spécifié une version '{1}'. Nous ne vous recommandons pas de spécifier la version de ce package. Pour plus d'informations, consultez https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: Les composants sont consommés à partir du projet '{0}', mais il n'existe aucun chemin de projet MSBuild correspondant dans '{1}'.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.it.xlf b/src/Tasks/Common/Resources/xlf/Strings.it.xlf
index 697e1cdf7b07..a1806d5747eb 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.it.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.it.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: in un elemento PackageReference che fa riferimento a '{0}' è specificata la versione di `{1}`. È consigliabile non specificare la versione di questo pacchetto. Per altre informazioni, vedere https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: le risorse vengono utilizzate dal progetto '{0}', ma non è stato trovato alcun percorso di progetto MSBuild corrispondente in '{1}'.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
index eec1e0b2cfe7..9539199959d6 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ja.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: '{0}' への PackageReference は '{1}' のバージョンを指定しました。このパッケージのバージョンを指定することは推奨されません。詳細については、https://aka.ms/sdkimplicitrefs を参照してください{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: プロジェクト '{0}' の資産が使用されますが、対応する MSBuild プロジェクト パスが '{1}' で見つかりませんでした。
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
index 276ffec321a3..92736b232da8 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ko.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: '{0}'에 대한 PackageReference에서 `{1}`의 버전을 지정했습니다. 이 패키지의 버전을 지정하지 않는 것이 좋습니다. 자세한 내용은 https://aka.ms/sdkimplicitrefs를 참조하세요.{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: '{0}' 프로젝트의 자산이 사용되었지만, '{1}'에서 해당 MSBuild 프로젝트 경로를 찾을 수 없습니다.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
index 7d4cfda8a464..5aea8ecf7543 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.pl.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: Odwołanie PackageReference do pakietu „{0}” określiło wersję „{1}”. Określanie wersji tego pakietu nie jest zalecane. Aby uzyskać więcej informacji, zobacz https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: Zasoby są używane z projektu „{0}”, ale w elemencie „{1}” nie odnaleziono odpowiadającej ścieżki projektu MSBuild.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
index f3d6fc15f331..67c07247f7bd 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: uma PackageReference para '{0}' especificou uma Versão de '{1}'. Não é recomendado especificar a versão deste pacote. Para obter mais informações, consulte https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: Os ativos são consumidos de um projeto '{0}', mas não foi encontrado nenhum caminho de projeto do MSBuild correspondente em '{1}'.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
index c8b6bf469b67..f792f7fb812d 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.ru.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: В ссылке PackageReference на '{0}' указана версия {1}. Указывать версию этого пакета не рекомендуется. Дополнительные сведения см. на странице https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: используются ресурсы из проекта "{0}", но соответствующий путь к проекту MSBuild не найден в "{1}".
diff --git a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
index e2a62f56d265..b8d0740d74f7 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.tr.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: '{0}' öğesine yönelik bir PackageReference, bir `{1}` Sürümünü belirtti. Bu paketin sürümünün belirtilmesi önerilmez. Daha fazla bilgi edinmek için bkz. https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: '{0}' projesindeki varlıklar kullanılıyor, ancak '{1}' içinde karşılık gelen bir MSBuild proje yolu bulunamadı.
diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
index 27bf6b63c497..2c1e61a33280 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: “{0}”的 PackageReference 指定了版本“{1}”。不建议指定此包的版本。有关详细信息,请查看 https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: 从项目“{0}”消耗资产,但在“{1}”中找不到相应的 MSBuild 项目路径。
diff --git a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
index 90269d1adbb6..67accdc4a731 100644
--- a/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
+++ b/src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf
@@ -640,6 +640,11 @@ The following are names of parameters or literal values and should not be transl
NETSDK1071: '{0}' 的 PackageReference 指定了 `{1}` 版本。不建議指定這個套件版本。如需詳細資訊,請參閱 https://aka.ms/sdkimplicitrefs{StrBegin="NETSDK1071: "}
+
+ NETSDK1174: Placeholder
+ NETSDK1174: Placeholder
+ {StrBegin="NETSDK1174: "} - This string is not used here, but is a placeholder for the error code, which is used by the "dotnet run" command.
+ NETSDK1011: Assets are consumed from project '{0}', but no corresponding MSBuild project path was found in '{1}'.NETSDK1011: 已從專案 '{0}' 取用資產,但在 '{1}' 中找不到相對應的 MSBuild 專案路徑。
diff --git a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs
index ea22a20f9c07..864c4ca30bd2 100644
--- a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs
+++ b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs
@@ -170,7 +170,8 @@ public void ItRunsPortableAppsFromADifferentPathWithoutBuilding()
.WithWorkingDirectory(Directory.GetParent(testInstance.Path).FullName)
.Execute($"--project", projectFile)
.Should().Pass()
- .And.HaveStdOutContaining("Hello World!");
+ .And.HaveStdOutContaining("Hello World!")
+ .And.NotHaveStdOutContaining(LocalizableStrings.RunCommandProjectAbbreviationDeprecated);
}
[Fact]
@@ -186,7 +187,25 @@ public void ItRunsPortableAppsFromADifferentPathSpecifyingOnlyTheDirectoryWithou
.WithWorkingDirectory(Directory.GetParent(testInstance.Path).FullName)
.Execute("--project", testProjectDirectory)
.Should().Pass()
- .And.HaveStdOutContaining("Hello World!");
+ .And.HaveStdOutContaining("Hello World!")
+ .And.NotHaveStdOutContaining(LocalizableStrings.RunCommandProjectAbbreviationDeprecated);
+ }
+
+ [Fact]
+ public void ItWarnsWhenShortFormOfProjectArgumentIsUsed()
+ {
+ var testAppName = "MSBuildTestApp";
+ var testInstance = _testAssetsManager.CopyTestAsset(testAppName)
+ .WithSource();
+
+ var projectFile = Path.Combine(testInstance.Path, testAppName + ".csproj");
+
+ new DotnetCommand(Log, "run")
+ .WithWorkingDirectory(Directory.GetParent(testInstance.Path).FullName)
+ .Execute($"-p", projectFile)
+ .Should().Pass()
+ .And.HaveStdOutContaining("Hello World!")
+ .And.HaveStdOutContaining(LocalizableStrings.RunCommandProjectAbbreviationDeprecated);
}
[Fact]