BatchParser target netstandard2.0 and remove Hosting dependency (#1564)

* Remove Hosting dependency from BatchParser, wip for logging replacement

* netstandard2.0 and fixes

* comment + cleanup

* comment

* fix build

* Update newtonsoft

* localize errors
This commit is contained in:
Charles Gagnon
2022-07-06 15:26:06 -07:00
committed by GitHub
parent e64e31e487
commit ac9f88266c
21 changed files with 192 additions and 17 deletions

View File

@@ -285,6 +285,14 @@ namespace Microsoft.SqlTools.ManagedBatchParser
}
}
public static string NullEmptyOrWhitespaceString
{
get
{
return Keys.GetString(Keys.NullEmptyOrWhitespaceString);
}
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Keys
{
@@ -389,6 +397,9 @@ namespace Microsoft.SqlTools.ManagedBatchParser
public const string SqlCmd_FailedInclude = "SqlCmd_FailedInclude";
public const string NullEmptyOrWhitespaceString = "NullEmptyOrWhitespaceString";
private Keys()
{ }

View File

@@ -245,4 +245,8 @@
<value>Could not find included file {0}.</value>
<comment></comment>
</data>
<data name="NullEmptyOrWhitespaceString" xml:space="preserve">
<value>Parameter contains a null, empty, or whitespace string.</value>
<comment></comment>
</data>
</root>

View File

@@ -88,3 +88,5 @@ SqlCmd_PathLong = Path too long.
SqlCmd_FailedInclude = Could not find included file {0}.
NullEmptyOrWhitespaceString = Parameter contains a null, empty, or whitespace string.

View File

@@ -162,6 +162,11 @@
<target state="new">Could not find included file {0}.</target>
<note></note>
</trans-unit>
<trans-unit id="NullEmptyOrWhitespaceString">
<source>Parameter contains a null, empty, or whitespace string.</source>
<target state="new">Parameter contains a null, empty, or whitespace string.</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>