Skip to content

Commit d9a005b

Browse files
committed
Add error if Directory.Build.props file isn't found when setting artifacts output path
1 parent 8bfbe46 commit d9a005b

File tree

18 files changed

+172
-77
lines changed

18 files changed

+172
-77
lines changed

src/Tasks/Common/Resources/Strings.resx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,4 +900,9 @@ You may need to build the project on another operating system or architecture, o
900900
<value>NETSDK1199: The ArtifactsPath and UseArtifactsOutput properties cannot be set in a project file, due to MSBuild ordering constraints. They must be set in a Directory.Build.props file or from the command line. See https://aka.ms/netsdk1199 for more information.</value>
901901
<comment>{StrBegin="NETSDK1199: "}</comment>
902902
</data>
903+
<data name="UseArtifactsOutputRequiresDirectoryBuildProps" xml:space="preserve">
904+
<value>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</value>
905+
<comment>{StrBegin="NETSDK1200: "}</comment>
906+
</data>
907+
903908
</root>

src/Tasks/Common/Resources/xlf/Strings.cs.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: Identifikátor cílové platformy {0} se nerozpoznal.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: K sestavování desktopových aplikací pro Windows se vyžaduje Microsoft.NET.Sdk.WindowsDesktop. Aktuální verze sady SDK nepodporuje hodnoty UseWpf a UseWindowsForms.</target>

src/Tasks/Common/Resources/xlf/Strings.de.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: Der Zielplattformbezeichner "{0}" wurde nicht erkannt.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: Für das Erstellen von Windows-Desktopanwendungen ist Microsoft.NET.Sdk.WindowsDesktop erforderlich. "UseWpf" und "UseWindowsForms" werden vom aktuellen SDK nicht unterstützt.</target>

src/Tasks/Common/Resources/xlf/Strings.es.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: No se reconoció el identificador de la plataforma de destino {0}.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: Se requiere Microsoft.NET.Sdk.WindowsDesktop para compilar las aplicaciones de escritorio de Windows. El SDK actual no admite "UseWpf" ni "UseWindowsForms".</target>

src/Tasks/Common/Resources/xlf/Strings.fr.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: L'identificateur de la plateforme cible {0} n'a pas été reconnu.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: vous devez disposer de Microsoft.NET.Sdk.WindowsDesktop pour générer des applications de bureau Windows. 'UseWpf' et 'UseWindowsForms' ne sont pas pris en charge par le kit SDK actuel.</target>

src/Tasks/Common/Resources/xlf/Strings.it.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: l'identificatore di piattaforma di destinazione {0} non è stato riconosciuto.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: per compilare applicazioni desktop di Windows, è necessario Microsoft.NET.Sdk.WindowsDesktop. 'UseWpf' e 'UseWindowsForms' non sono supportati dall'SDK corrente.</target>

src/Tasks/Common/Resources/xlf/Strings.ja.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: ターゲット プラットフォーム識別子 {0} は認識されませんでした。</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: Windows デスクトップ アプリケーションを作成するには、Microsoft.NET.Sdk.WindowsDesktop が必要です。現在の SDK では、'UseWpf' と 'UseWindowsForms' はサポートされていません。</target>

src/Tasks/Common/Resources/xlf/Strings.ko.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: 대상 플랫폼 식별자 {0}을(를) 인식할 수 없습니다.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop을 사용하려면 Windows 데스크톱 애플리케이션을 빌드해야 합니다. 'UseWpf' 및 'UseWindowsForms'는 현재 SDK에서 지원하지 않습니다.</target>

src/Tasks/Common/Resources/xlf/Strings.pl.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: nie rozpoznano identyfikatora platformy docelowej {0}.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: Do kompilowania aplikacji klasycznych systemu Windows konieczny jest zestaw Microsoft.NET.Sdk.WindowsDesktop. Właściwości „UseWpf” i „UseWindowsForms” nie są obsługiwane przez bieżący zestaw SDK.</target>

src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,11 @@ The following are names of parameters or literal values and should not be transl
937937
<target state="translated">NETSDK1139: o identificador de plataforma de destino {0} não foi reconhecido.</target>
938938
<note>{StrBegin="NETSDK1139: "}</note>
939939
</trans-unit>
940+
<trans-unit id="UseArtifactsOutputRequiresDirectoryBuildProps">
941+
<source>NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</source>
942+
<target state="new">NETSDK1200: If UseArtifactsPath is set to true and ArtifactsPath is not set, there must be a Directory.Build.props file in order to determine where the artifacts folder should be located.</target>
943+
<note>{StrBegin="NETSDK1200: "}</note>
944+
</trans-unit>
940945
<trans-unit id="UseWpfOrUseWindowsFormsRequiresWindowsDesktopFramework">
941946
<source>NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop is required to build Windows desktop applications. 'UseWpf' and 'UseWindowsForms' are not supported by the current SDK.</source>
942947
<target state="translated">NETSDK1107: Microsoft.NET.Sdk.WindowsDesktop é necessário para compilar aplicativos da área de trabalho do Windows. Não há suporte para 'UseWpf' e 'UseWindowsForms' no SDK atual.</target>

0 commit comments

Comments
 (0)