Skip to content

Commit ea0b7ab

Browse files
committed
Improve error message when project assets file isn't found
1 parent a354016 commit ea0b7ab

14 files changed

+40
-41
lines changed

src/Tasks/Common/Resources/Strings.resx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@
347347
{2} - Current version of platform package</comment>
348348
</data>
349349
<data name="AssetsFileNotSet" xml:space="preserve">
350-
<value>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</value>
351-
<comment>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</comment>
350+
<value>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</value>
352351
</data>
353352
</root>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380
{2} - Current version of platform package</note>
381381
</trans-unit>
382382
<trans-unit id="AssetsFileNotSet">
383-
<source>ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</source>
384-
<target state="new">ProjectAssetsFile was not set. Run a NuGet package restore to generate this file.</target>
385-
<note>"ProjectAssetsFile" is the name of a property and parameter to the task, so it should not be translated</note>
383+
<source>The path to the project assets file was not set. Run a NuGet package restore to generate this file.</source>
384+
<target state="new">The path to the project assets file was not set. Run a NuGet package restore to generate this file.</target>
385+
<note />
386386
</trans-unit>
387387
</body>
388388
</file>

0 commit comments

Comments
 (0)