Skip to content

Commit

Permalink
Show error message on Framework35 (#1723)
Browse files Browse the repository at this point in the history
* Show error message on Framework35

* Add error to resources files

* Remove Framework35 from help

* update error message

* Update unit tests
  • Loading branch information
smadala authored Aug 9, 2018
1 parent 262a89f commit 310968a
Show file tree
Hide file tree
Showing 22 changed files with 237 additions and 65 deletions.
11 changes: 11 additions & 0 deletions src/vstest.console/Resources/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/vstest.console/Resources/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,14 @@
<data name="FileNotFound" xml:space="preserve">
<value>'{0}' not found.</value>
</data>
<data name="Framework35NotSupported" xml:space="preserve">
<value>Framework35 is not supported. For projects targeting .Net Framework 3.5, please use Framework40 to run tests in CLR 4.0 "compatibility mode".</value>
</data>
<data name="FrameworkArgumentHelp" xml:space="preserve">
<value>--Framework|/Framework:&lt;Framework Version&gt;
Target .Net Framework version to be used for test execution.
Valid values are ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" etc.
Other supported values are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</value>
Other supported values are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</value>
</data>
<data name="FrameworkVersionRequired" xml:space="preserve">
<value>The /Framework argument requires the target .Net Framework version for the test run. Example: /Framework:".NETFramework,Version=v4.5.1"</value>
Expand Down Expand Up @@ -321,7 +324,7 @@
<value>Argument {0} is not expected in the 'EnableCodeCoverage' command. Specify the command without the argument (Example: vstest.console.exe myTests.dll /EnableCodeCoverage) and try again.</value>
</data>
<data name="InvalidFrameworkVersion" xml:space="preserve">
<value>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</value>
<value>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</value>
</data>
<data name="InvalidInIsolationCommand" xml:space="preserve">
<value>Argument {0} is not expected in the 'InIsolation' command. Specify the command without the argument (Example: vstest.console.exe myTests.dll /InIsolation) and try again.</value>
Expand Down
13 changes: 9 additions & 4 deletions src/vstest.console/Resources/xlf/Resources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -738,12 +738,12 @@
<source>--Framework|/Framework:&lt;Framework Version&gt;
Target .Net Framework version to be used for test execution.
Valid values are ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" etc.
Other supported values are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="translated">--Framework|/Framework:&lt;Verze rozhraní&gt;
Other supported values are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">--Framework|/Framework:&lt;Verze rozhraní&gt;
Cílová verze rozhraní .NET Framework, která se použije k provedení testu.
Platné hodnoty jsou ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" atd.
Další podporované hodnoty jsou Framework35, Framework40, Framework45, FrameworkCore10 a FrameworkUap10.</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">--Framework | / Framework: &lt; Framework verze &gt;
Cílové rozhraní .net Framework verze pro spuštění testu.
Expand All @@ -762,7 +762,7 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="16" adjWordcount="13.6" curWordcount="13.6"</note>
</trans-unit>
<trans-unit id="InvalidFrameworkVersion">
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">Neplatná verze rozhraní .NET Framework: {0}. Zadejte prosím úplný název cílového rozhraní. Další podporované verze jsou Framework35, Framework40, Framework45, FrameworkCore10 a FrameworkUap10.</target>
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
Expand Down Expand Up @@ -1618,6 +1618,11 @@
<target state="new">Logger argument '{0}' is invalid.</target>
<note></note>
</trans-unit>
<trans-unit id="Framework35NotSupported">
<source>Framework35 is not supported. For projects targeting .Net Framework 3.5, please use Framework40 to run tests in CLR 4.0 "compatibility mode".</source>
<target state="new">Framework35 not supported. Use Framework40 or above to run tests in CLR 4.0 "compatibly mode".</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>
13 changes: 9 additions & 4 deletions src/vstest.console/Resources/xlf/Resources.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -738,12 +738,12 @@
<source>--Framework|/Framework:&lt;Framework Version&gt;
Target .Net Framework version to be used for test execution.
Valid values are ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" etc.
Other supported values are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="translated">--Framework|/Framework:&lt; Frameworkversion &gt;
Other supported values are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">--Framework|/Framework:&lt; Frameworkversion &gt;
Die .NET Framework-Zielversion, die für die Testausführung verwendet werden soll.
Gültige Werte sind ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0 " usw.
Weitere unterstützte Werte sind "Framework35", "Framework40", "Framework45", "FrameworkCore10" und "FrameworkUap10".</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">-Framework | / Framework: &lt; Frameworkversion &gt;
Ziel von .net Framework-Version für die Ausführung verwendet werden.
Expand All @@ -762,7 +762,7 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="16" adjWordcount="13.6" curWordcount="13.6"</note>
</trans-unit>
<trans-unit id="InvalidFrameworkVersion">
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">Ungültige .NET Framework-Version: {0}. Geben Sie den vollständigen Namen von TargetFramework an. Weitere unterstützte .NET Framework-Versionen sind "Framework35", "Framework40", "Framework45", "FrameworkCore10" und "FrameworkUap10".</target>
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
Expand Down Expand Up @@ -1618,6 +1618,11 @@
<target state="new">Logger argument '{0}' is invalid.</target>
<note></note>
</trans-unit>
<trans-unit id="Framework35NotSupported">
<source>Framework35 is not supported. For projects targeting .Net Framework 3.5, please use Framework40 to run tests in CLR 4.0 "compatibility mode".</source>
<target state="new">Framework35 not supported. Use Framework40 or above to run tests in CLR 4.0 "compatibly mode".</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>
13 changes: 9 additions & 4 deletions src/vstest.console/Resources/xlf/Resources.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,12 @@
<source>--Framework|/Framework:&lt;Framework Version&gt;
Target .Net Framework version to be used for test execution.
Valid values are ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" etc.
Other supported values are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="translated">--Framework|/Framework:&lt;Versión de .NET Framework&gt;
Other supported values are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">--Framework|/Framework:&lt;Versión de .NET Framework&gt;
Versión de .NET Framework de destino que se usará para la ejecución de pruebas.
Los valores válidos son: ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" etc.
Otros valores admitidos son: Framework35, Framework40, Framework45, FrameworkCore10 y FrameworkUap10.</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">--Framework | / Framework: &lt; versión de Framework &gt;
Trabajar en .net Framework versión que se utilizará para la ejecución de la prueba.
Expand All @@ -764,7 +764,7 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="16" adjWordcount="13.6" curWordcount="13.6"</note>
</trans-unit>
<trans-unit id="InvalidFrameworkVersion">
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">Versión de .NET Framework no válida: {0}. Proporcione el nombre completo de TargetFramework. Otras versiones de .NET Framework admitidas son Framework35, Framework40, Framework45, FrameworkCore10 y FrameworkUap10.</target>
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
Expand Down Expand Up @@ -1623,6 +1623,11 @@
<target state="new">Logger argument '{0}' is invalid.</target>
<note></note>
</trans-unit>
<trans-unit id="Framework35NotSupported">
<source>Framework35 is not supported. For projects targeting .Net Framework 3.5, please use Framework40 to run tests in CLR 4.0 "compatibility mode".</source>
<target state="new">Framework35 not supported. Use Framework40 or above to run tests in CLR 4.0 "compatibly mode".</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>
13 changes: 9 additions & 4 deletions src/vstest.console/Resources/xlf/Resources.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -738,12 +738,12 @@
<source>--Framework|/Framework:&lt;Framework Version&gt;
Target .Net Framework version to be used for test execution.
Valid values are ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" etc.
Other supported values are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="translated">--Framework|/Framework:&lt;version du framework&gt;
Other supported values are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">--Framework|/Framework:&lt;version du framework&gt;
Version cible du .Net Framework à utiliser pour l'exécution des tests.
Les valeurs valides sont : ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0", etc.
Les autres valeurs prises en charge sont Framework35, Framework40, Framework45, FrameworkCore10 et FrameworkUap10.</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">--Framework | / Framework : &lt; Version .NET Framework &gt;
Ciblez .net version de Framework à utiliser pour l’exécution du test.
Expand All @@ -762,7 +762,7 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="16" adjWordcount="13.6" curWordcount="13.6"</note>
</trans-unit>
<trans-unit id="InvalidFrameworkVersion">
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">Version non valide du .Net Framework : {0}. Indiquez le nom complet de TargetFramework. Les autres versions du .Net Framework prises en charge sont Framework35, Framework40, Framework45, FrameworkCore10 et FrameworkUap10.</target>
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
Expand Down Expand Up @@ -1618,6 +1618,11 @@
<target state="new">Logger argument '{0}' is invalid.</target>
<note></note>
</trans-unit>
<trans-unit id="Framework35NotSupported">
<source>Framework35 is not supported. For projects targeting .Net Framework 3.5, please use Framework40 to run tests in CLR 4.0 "compatibility mode".</source>
<target state="new">Framework35 not supported. Use Framework40 or above to run tests in CLR 4.0 "compatibly mode".</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>
13 changes: 9 additions & 4 deletions src/vstest.console/Resources/xlf/Resources.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -738,12 +738,12 @@
<source>--Framework|/Framework:&lt;Framework Version&gt;
Target .Net Framework version to be used for test execution.
Valid values are ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" etc.
Other supported values are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="translated">--Framework|/Framework:&lt;Versione framework&gt;
Other supported values are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">--Framework|/Framework:&lt;Versione framework&gt;
Versione di .NET Framework di destinazione da usare per l'esecuzione dei test.
Valori validi: ".NETFramework,Version=v4.5.1", ".NETCoreApp,Version=v1.0" e così via.
Altri valori supportati: Framework35, Framework40, Framework45, FrameworkCore10 e FrameworkUap10.</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">-Framework | / Framework: &lt; versione Framework &gt;
Destinazione di .net Framework versione da utilizzare per l'esecuzione del test.
Expand All @@ -762,7 +762,7 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="16" adjWordcount="13.6" curWordcount="13.6"</note>
</trans-unit>
<trans-unit id="InvalidFrameworkVersion">
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework35, Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<source>Invalid .Net Framework version:{0}. Please give the fullname of the TargetFramework(Example: .NETCoreApp,Version=v2.0). Other supported .Net Framework versions are Framework40, Framework45, FrameworkCore10 and FrameworkUap10.</source>
<target state="new">La versione di .NET Framework {0} non è valida. Specificare il nome completo della versione di .NET Framework di destinazione. Altre versioni di .NET Framework supportate: Framework35, Framework40, Framework45, FrameworkCore10 e FrameworkUap10.</target>
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
Expand Down Expand Up @@ -1618,6 +1618,11 @@
<target state="new">Logger argument '{0}' is invalid.</target>
<note></note>
</trans-unit>
<trans-unit id="Framework35NotSupported">
<source>Framework35 is not supported. For projects targeting .Net Framework 3.5, please use Framework40 to run tests in CLR 4.0 "compatibility mode".</source>
<target state="new">Framework35 not supported. Use Framework40 or above to run tests in CLR 4.0 "compatibly mode".</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>
Loading

0 comments on commit 310968a

Please sign in to comment.