mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Update to latest .Net SDK 7.0 (#1760)
* Bump to SDK 7.0 and related updates * More net 7 updates * Install SDK 2.0 for ESRP * Fix typo * Address comment and update integration test script * Disable new warnings from SDK update
This commit is contained in:
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -10,7 +10,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
"program": "${workspaceFolder}/src/Microsoft.SqlTools.ServiceLayer/bin/Debug/net6.0/MicrosoftSqlToolsServiceLayer.dll",
|
"program": "${workspaceFolder}/src/Microsoft.SqlTools.ServiceLayer/bin/Debug/net7.0/MicrosoftSqlToolsServiceLayer.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/src/Microsoft.SqlTools.ServiceLayer",
|
"cwd": "${workspaceFolder}/src/Microsoft.SqlTools.ServiceLayer",
|
||||||
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
|
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
"program": "${workspaceFolder}/src/Microsoft.Kusto.ServiceLayer/bin/Debug/net6.0/MicrosoftKustoServiceLayer.dll",
|
"program": "${workspaceFolder}/src/Microsoft.Kusto.ServiceLayer/bin/Debug/net7.0/MicrosoftKustoServiceLayer.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/src/Microsoft.Kusto.ServiceLayer",
|
"cwd": "${workspaceFolder}/src/Microsoft.Kusto.ServiceLayer",
|
||||||
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
|
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<HighEntropyVA>true</HighEntropyVA>
|
<HighEntropyVA>true</HighEntropyVA>
|
||||||
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
|
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<RootDir>$(MSBuildThisFileDirectory)</RootDir>
|
<RootDir>$(MSBuildThisFileDirectory)</RootDir>
|
||||||
|
|
||||||
<!-- Defaults-->
|
<!-- Defaults-->
|
||||||
@@ -29,5 +29,9 @@
|
|||||||
<!-- This is required for IDE0005 to fail the build https://github.com/dotnet/roslyn/issues/41640 -->
|
<!-- This is required for IDE0005 to fail the build https://github.com/dotnet/roslyn/issues/41640 -->
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
|
<NoWarn>$(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8605;CS8618;CS8620;CS8622;CS8625;CS8629;CS8632;CS8769;CS8765</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CS1998;CS8597;CS8612;CS8767;CS0168;CS0169;SYSLIB0012;SYSLIB0013;NETSDK1187</NoWarn>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ IF [%_BuildConfiguration%] NEQ [] GOTO Start
|
|||||||
SET _BuildConfiguration=Debug
|
SET _BuildConfiguration=Debug
|
||||||
|
|
||||||
:Start
|
:Start
|
||||||
SET _PerfTestSourceLocation="%WORKINGDIR%\test\Microsoft.SqlTools.ServiceLayer.PerfTests\bin\%_BuildConfiguration%\net6.0\win-x64\publish"
|
SET _PerfTestSourceLocation="%WORKINGDIR%\test\Microsoft.SqlTools.ServiceLayer.PerfTests\bin\%_BuildConfiguration%\net7.0\win-x64\publish"
|
||||||
SET _ServiceSourceLocation="%WORKINGDIR%\src\Microsoft.SqlTools.ServiceLayer\bin\%_BuildConfiguration%\net6.0\win-x64\publish"
|
SET _ServiceSourceLocation="%WORKINGDIR%\src\Microsoft.SqlTools.ServiceLayer\bin\%_BuildConfiguration%\net7.0\win-x64\publish"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- task: UseDotNet@2
|
||||||
|
displayName: 'Use .NET Core 2 sdk'
|
||||||
|
inputs:
|
||||||
|
useGlobalJson: false
|
||||||
|
version: 2.x
|
||||||
|
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
displayName: 'Use defined .NET Core sdk'
|
displayName: 'Use defined .NET Core sdk'
|
||||||
inputs:
|
inputs:
|
||||||
@@ -202,54 +209,54 @@ steps:
|
|||||||
- task: ArchiveFiles@1
|
- task: ArchiveFiles@1
|
||||||
displayName: 'Archive osx build'
|
displayName: 'Archive osx build'
|
||||||
inputs:
|
inputs:
|
||||||
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/osx.10.11-x64/net6.0'
|
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/osx.10.11-x64/net7.0'
|
||||||
includeRootFolder: false
|
includeRootFolder: false
|
||||||
archiveType: tar
|
archiveType: tar
|
||||||
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-osx-x64-net6.0.tar.gz'
|
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-osx-x64-net7.0.tar.gz'
|
||||||
|
|
||||||
- task: ArchiveFiles@1
|
- task: ArchiveFiles@1
|
||||||
displayName: 'Archive osx arm build'
|
displayName: 'Archive osx arm build'
|
||||||
inputs:
|
inputs:
|
||||||
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/osx-arm64/net6.0'
|
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/osx-arm64/net7.0'
|
||||||
includeRootFolder: false
|
includeRootFolder: false
|
||||||
archiveType: tar
|
archiveType: tar
|
||||||
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-osx-arm64-net6.0.tar.gz'
|
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-osx-arm64-net7.0.tar.gz'
|
||||||
|
|
||||||
- task: ArchiveFiles@1
|
- task: ArchiveFiles@1
|
||||||
displayName: 'Archive rhel build'
|
displayName: 'Archive rhel build'
|
||||||
inputs:
|
inputs:
|
||||||
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/rhel.7.2-x64/net6.0'
|
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/rhel.7.2-x64/net7.0'
|
||||||
includeRootFolder: false
|
includeRootFolder: false
|
||||||
archiveType: tar
|
archiveType: tar
|
||||||
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-rhel-x64-net6.0.tar.gz'
|
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-rhel-x64-net7.0.tar.gz'
|
||||||
|
|
||||||
- task: ArchiveFiles@1
|
- task: ArchiveFiles@1
|
||||||
displayName: 'Archive windows 64 bit build'
|
displayName: 'Archive windows 64 bit build'
|
||||||
inputs:
|
inputs:
|
||||||
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win-x64/net6.0'
|
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win-x64/net7.0'
|
||||||
includeRootFolder: false
|
includeRootFolder: false
|
||||||
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win-x64-net6.0.zip'
|
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win-x64-net7.0.zip'
|
||||||
|
|
||||||
- task: ArchiveFiles@1
|
- task: ArchiveFiles@1
|
||||||
displayName: 'Archive windows 32 bit build'
|
displayName: 'Archive windows 32 bit build'
|
||||||
inputs:
|
inputs:
|
||||||
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win-x86/net6.0'
|
rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win-x86/net7.0'
|
||||||
includeRootFolder: false
|
includeRootFolder: false
|
||||||
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win-x86-net6.0.zip'
|
archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win-x86-net7.0.zip'
|
||||||
|
|
||||||
# - task: ArchiveFiles@1
|
# - task: ArchiveFiles@1
|
||||||
# displayName: 'Archive windows10 arm 32 bit build'
|
# displayName: 'Archive windows10 arm 32 bit build'
|
||||||
# inputs:
|
# inputs:
|
||||||
# rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win10-arm/net6.0'
|
# rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win10-arm/net7.0'
|
||||||
# includeRootFolder: false
|
# includeRootFolder: false
|
||||||
# archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win10-arm-net6.0.zip'
|
# archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win10-arm-net7.0.zip'
|
||||||
|
|
||||||
# - task: ArchiveFiles@1
|
# - task: ArchiveFiles@1
|
||||||
# displayName: 'Archive windows10 arm 64 bit build'
|
# displayName: 'Archive windows10 arm 64 bit build'
|
||||||
# inputs:
|
# inputs:
|
||||||
# rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win10-arm64/net6.0'
|
# rootFolder: '$(Build.SourcesDirectory)/artifacts/publish/Microsoft.SqlTools.ServiceLayer/win10-arm64/net7.0'
|
||||||
# includeRootFolder: false
|
# includeRootFolder: false
|
||||||
# archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win10-arm64-net6.0.zip'
|
# archiveFile: '$(Build.SourcesDirectory)/artifacts/package/Microsoft.SqlTools.ServiceLayer-win10-arm64-net7.0.zip'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish Artifact: build archives'
|
displayName: 'Publish Artifact: build archives'
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
# The script need to run from the repo root
|
# The script need to run from the repo root
|
||||||
|
|
||||||
net6projectArray=(
|
net7projectArray=(
|
||||||
"./src/Microsoft.InsightsGenerator"
|
"./src/Microsoft.InsightsGenerator"
|
||||||
"./src/Microsoft.Kusto.ServiceLayer"
|
"./src/Microsoft.Kusto.ServiceLayer"
|
||||||
"./src/Microsoft.SqlTools.Credentials"
|
"./src/Microsoft.SqlTools.Credentials"
|
||||||
@@ -40,7 +40,7 @@ netStandard2ProjectArray=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Please update the framework vars when updating target framework for the projects
|
# Please update the framework vars when updating target framework for the projects
|
||||||
framework6="/bin/Debug/net6.0/"
|
framework7="/bin/Debug/net7.0/"
|
||||||
framework2="/bin/Debug/netstandard2.1/"
|
framework2="/bin/Debug/netstandard2.1/"
|
||||||
|
|
||||||
requiredLocDirectories=(
|
requiredLocDirectories=(
|
||||||
@@ -75,13 +75,13 @@ requiredLocDirectories=(
|
|||||||
"zh-hant"
|
"zh-hant"
|
||||||
)
|
)
|
||||||
|
|
||||||
for i in "${net6projectArray[@]}"
|
for i in "${net7projectArray[@]}"
|
||||||
do
|
do
|
||||||
:
|
:
|
||||||
for k in "${requiredLocDirectories[@]}"
|
for k in "${requiredLocDirectories[@]}"
|
||||||
do
|
do
|
||||||
:
|
:
|
||||||
output=`mkdir -v -p $i$framework6$k`
|
output=`mkdir -v -p $i$framework7$k`
|
||||||
echo $output
|
echo $output
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|||||||
12
build.json
12
build.json
@@ -9,24 +9,24 @@
|
|||||||
"PackageName": "Microsoft.SqlTools.ServiceLayer",
|
"PackageName": "Microsoft.SqlTools.ServiceLayer",
|
||||||
"TestProjects": {
|
"TestProjects": {
|
||||||
"Microsoft.SqlTools.ServiceLayer.UnitTests": [
|
"Microsoft.SqlTools.ServiceLayer.UnitTests": [
|
||||||
"net6.0"
|
"net7.0"
|
||||||
],
|
],
|
||||||
"Microsoft.Kusto.ServiceLayer.UnitTests": [
|
"Microsoft.Kusto.ServiceLayer.UnitTests": [
|
||||||
"net6.0"
|
"net7.0"
|
||||||
],
|
],
|
||||||
"Microsoft.SqlTools.ServiceLayer.TestEnvConfig": [
|
"Microsoft.SqlTools.ServiceLayer.TestEnvConfig": [
|
||||||
"net6.0"
|
"net7.0"
|
||||||
],
|
],
|
||||||
"Microsoft.SqlTools.ServiceLayer.IntegrationTests": [
|
"Microsoft.SqlTools.ServiceLayer.IntegrationTests": [
|
||||||
"net6.0"
|
"net7.0"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Frameworks": [
|
"Frameworks": [
|
||||||
"net6.0"
|
"net7.0"
|
||||||
],
|
],
|
||||||
"FxFrameworks":[
|
"FxFrameworks":[
|
||||||
"net472",
|
"net472",
|
||||||
"net6.0"
|
"net7.0"
|
||||||
],
|
],
|
||||||
"MainProjects": [
|
"MainProjects": [
|
||||||
"Microsoft.SqlTools.Credentials",
|
"Microsoft.SqlTools.Credentials",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"sdk": {
|
"sdk": {
|
||||||
"version": "6.0.403",
|
"version": "7.0.100",
|
||||||
"rollForward": "latestFeature"
|
"rollForward": "latestFeature"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<dependency id="Newtonsoft.Json" version="13.0.1" />
|
<dependency id="Newtonsoft.Json" version="13.0.1" />
|
||||||
<dependency id="System.Configuration.ConfigurationManager" version="6.0.0" />
|
<dependency id="System.Configuration.ConfigurationManager" version="6.0.0" />
|
||||||
</group>
|
</group>
|
||||||
<group targetFramework="net6.0">
|
<group targetFramework="net7.0">
|
||||||
<dependency id="Microsoft.Data.SqlClient" version="5.0.1" />
|
<dependency id="Microsoft.Data.SqlClient" version="5.0.1" />
|
||||||
<dependency id="Microsoft.SqlServer.SqlManagementObjects" version="170.8.0" />
|
<dependency id="Microsoft.SqlServer.SqlManagementObjects" version="170.8.0" />
|
||||||
<dependency id="Newtonsoft.Json" version="13.0.1" />
|
<dependency id="Newtonsoft.Json" version="13.0.1" />
|
||||||
@@ -42,19 +42,19 @@
|
|||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net472\Microsoft.SqlTools.ManagedBatchParser.pdb" target="lib\net472" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net472\Microsoft.SqlTools.ManagedBatchParser.pdb" target="lib\net472" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net472\Microsoft.SqlTools.ManagedBatchParser.xml" target="lib\net472" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net472\Microsoft.SqlTools.ManagedBatchParser.xml" target="lib\net472" />
|
||||||
|
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\de\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\de" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\de\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\de" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\es\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\es" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\es\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\es" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\fr\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\fr" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\fr\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\fr" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\it\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\it" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\it\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\it" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\ja\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\ja" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\ja\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\ja" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\ko\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\ko" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\ko\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\ko" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\pt-br\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\pt-br" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\pt-br\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\pt-br" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\ru\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\ru" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\ru\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\ru" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\zh-hans\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\zh-hans" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\zh-hans\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\zh-hans" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\zh-hant\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net6.0\zh-hant" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\zh-hant\Microsoft.SqlTools.ManagedBatchParser.resources.dll" target="lib\net7.0\zh-hant" />
|
||||||
|
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\Microsoft.SqlTools.ManagedBatchParser.dll" target="lib\net6.0" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\Microsoft.SqlTools.ManagedBatchParser.dll" target="lib\net7.0" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\Microsoft.SqlTools.ManagedBatchParser.pdb" target="lib\net6.0" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\Microsoft.SqlTools.ManagedBatchParser.pdb" target="lib\net7.0" />
|
||||||
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net6.0\Microsoft.SqlTools.ManagedBatchParser.xml" target="lib\net6.0" />
|
<file src="..\..\artifacts\publish\Microsoft.SqlTools.ServiceLayer\default\net7.0\Microsoft.SqlTools.ManagedBatchParser.xml" target="lib\net7.0" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
@@ -34,6 +34,8 @@ namespace Microsoft.InsightsGenerator
|
|||||||
|
|
||||||
private string[] GetColumnLabels(DataArray array, out DataArray.DataType[] columnDataType)
|
private string[] GetColumnLabels(DataArray array, out DataArray.DataType[] columnDataType)
|
||||||
{
|
{
|
||||||
|
// turn off warning for using ContainsKey/Add vs. TryAdd with Dictionaries
|
||||||
|
#pragma warning disable CA1854
|
||||||
columnDataType = new DataArray.DataType[array.ColumnNames.Length];
|
columnDataType = new DataArray.DataType[array.ColumnNames.Length];
|
||||||
int columnCount = array.Cells[0].Length;
|
int columnCount = array.Cells[0].Length;
|
||||||
Dictionary<DataArray.DataType, List<ColumnInfo>> columnInfo = new Dictionary<DataArray.DataType, List<ColumnInfo>>();
|
Dictionary<DataArray.DataType, List<ColumnInfo>> columnInfo = new Dictionary<DataArray.DataType, List<ColumnInfo>>();
|
||||||
@@ -116,6 +118,7 @@ namespace Microsoft.InsightsGenerator
|
|||||||
labels[numberColumns[i].ColumnIndex] = "output_" + i;
|
labels[numberColumns[i].ColumnIndex] = "output_" + i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore CA1854
|
||||||
|
|
||||||
return labels;
|
return labels;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ namespace Microsoft.InsightsGenerator
|
|||||||
{
|
{
|
||||||
|
|
||||||
ColumnHeaders ch = new ColumnHeaders();
|
ColumnHeaders ch = new ColumnHeaders();
|
||||||
|
#pragma warning disable SYSLIB1045
|
||||||
var processedText = Regex.Replace(templateContent, @",|\\n", "");
|
var processedText = Regex.Replace(templateContent, @",|\\n", "");
|
||||||
|
#pragma warning restore SYSLIB1045
|
||||||
ch.Template = templateContent;
|
ch.Template = templateContent;
|
||||||
|
|
||||||
List<string> keyvalue = processedText.Split(' ').Select(s => s.Trim()).ToList();
|
List<string> keyvalue = processedText.Split(' ').Select(s => s.Trim()).ToList();
|
||||||
@@ -74,7 +76,7 @@ namespace Microsoft.InsightsGenerator
|
|||||||
// all the values from template needs to be found in the input from SigGen
|
// all the values from template needs to be found in the input from SigGen
|
||||||
foreach (var hashFromTemplate in singleHashFromTemplate)
|
foreach (var hashFromTemplate in singleHashFromTemplate)
|
||||||
{
|
{
|
||||||
if (!headersWithSingleHash.Contains(hashFromTemplate.ToLower()))
|
if (!headersWithSingleHash.Contains(hashFromTemplate.ToLowerInvariant()))
|
||||||
{
|
{
|
||||||
isMatched = false;
|
isMatched = false;
|
||||||
break;
|
break;
|
||||||
@@ -143,7 +145,7 @@ namespace Microsoft.InsightsGenerator
|
|||||||
var topHeaderList = new List<string>();
|
var topHeaderList = new List<string>();
|
||||||
foreach (var list in singleHashHeaders)
|
foreach (var list in singleHashHeaders)
|
||||||
{
|
{
|
||||||
topHeaderList.Add("#" + list.First().ToLower());
|
topHeaderList.Add("#" + list.First().ToLowerInvariant());
|
||||||
}
|
}
|
||||||
return topHeaderList;
|
return topHeaderList;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||||
<DebugType>portable</DebugType>
|
<DebugType>portable</DebugType>
|
||||||
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
||||||
|
<NoWarn>$(NoWarn);SYSLIB1045</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1311</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1854</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ namespace Microsoft.Kusto.ServiceLayer.QueryExecution.DataStorage
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Task<bool> ReadAsync(CancellationToken cancellationToken)
|
public Task<bool> ReadAsync(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
return Task.Run(() => DataReader.Read());
|
return Task.Run(DataReader.Read);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||||
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
||||||
|
<NoWarn>$(NoWarn);SYSLIB1054</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="**\*.cs" Exclude="**/obj/**/*.cs" />
|
<Compile Include="**\*.cs" Exclude="**/obj/**/*.cs" />
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ namespace Microsoft.SqlTools.Extensibility
|
|||||||
if (!services.ContainsKey(typeof(T)))
|
if (!services.ContainsKey(typeof(T)))
|
||||||
{
|
{
|
||||||
ExtensionStore store = new ExtensionStore(typeof(T), config);
|
ExtensionStore store = new ExtensionStore(typeof(T), config);
|
||||||
base.Register<T>(() => store.GetExports<T>());
|
base.Register<T>(store.GetExports<T>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -22,13 +22,10 @@ namespace Microsoft.SqlTools.Utility
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
foreach (var key in keys)
|
foreach (var key in keys)
|
||||||
{
|
|
||||||
if (_cache.ContainsKey(key))
|
|
||||||
{
|
{
|
||||||
_cache.Remove(key);
|
_cache.Remove(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, out exception);
|
}, out exception);
|
||||||
if (exception != null)
|
if (exception != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ namespace Microsoft.SqlTools.Utility
|
|||||||
|
|
||||||
public T GetOptionValue<T>(string name, T defaultValue = default(T))
|
public T GetOptionValue<T>(string name, T defaultValue = default(T))
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CA1854
|
||||||
T result = defaultValue;
|
T result = defaultValue;
|
||||||
if (Options != null && Options.ContainsKey(name))
|
if (Options != null && Options.ContainsKey(name))
|
||||||
{
|
{
|
||||||
@@ -34,6 +35,7 @@ namespace Microsoft.SqlTools.Utility
|
|||||||
"Cannot convert option value {0}:{1} to {2}", name, value ?? "", typeof(T)));
|
"Cannot convert option value {0}:{1} to {2}", name, value ?? "", typeof(T)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore CA1854
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,12 +88,9 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value == null)
|
if (value == null)
|
||||||
{
|
|
||||||
if (internalVariables.ContainsKey(name))
|
|
||||||
{
|
{
|
||||||
internalVariables.Remove(name);
|
internalVariables.Remove(name);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
internalVariables[name] = value;
|
internalVariables[name] = value;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ using System;
|
|||||||
namespace Microsoft.SqlTools.ServiceLayer.BatchParser
|
namespace Microsoft.SqlTools.ServiceLayer.BatchParser
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public struct PositionStruct
|
public readonly struct PositionStruct
|
||||||
{
|
{
|
||||||
private readonly int line;
|
private readonly int line;
|
||||||
private readonly int column;
|
private readonly int column;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Targeting both net6.0 and net472 so that other things such as PS cmdlets can use this which need to support a wider range of machines -->
|
<!-- Targeting both net7.0 and net472 so that other things such as PS cmdlets can use this which need to support a wider range of machines -->
|
||||||
<TargetFrameworks>net6.0;net472</TargetFrameworks>
|
<TargetFrameworks>net7.0;net472</TargetFrameworks>
|
||||||
<LangVersion>9.0</LangVersion>
|
<LangVersion>9.0</LangVersion>
|
||||||
<Nullable>disable</Nullable>
|
<Nullable>disable</Nullable>
|
||||||
<AssemblyName>Microsoft.SqlTools.ManagedBatchParser</AssemblyName>
|
<AssemblyName>Microsoft.SqlTools.ManagedBatchParser</AssemblyName>
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
|
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
|
||||||
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
|
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
|
||||||
<Product>Microsoft SqlTools Managed batch parser</Product>
|
<Product>Microsoft SqlTools Managed batch parser</Product>
|
||||||
|
<NoWarn>$(NoWarn);CA1852</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Localization\transXliff\" />
|
<Folder Include="Localization\transXliff\" />
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
<EmbeddedResource Include="Localization\*.resx" />
|
<EmbeddedResource Include="Localization\*.resx" />
|
||||||
<None Include="Localization\sr.strings" />
|
<None Include="Localization\sr.strings" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Condition="$(TargetFramework) == 'net6.0'">
|
<ItemGroup Condition="$(TargetFramework) == 'net7.0'">
|
||||||
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.UnitTests" />
|
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.UnitTests" />
|
||||||
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.IntegrationTests" />
|
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.IntegrationTests" />
|
||||||
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.Test.Common" />
|
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.Test.Common" />
|
||||||
|
|||||||
@@ -69,10 +69,12 @@ namespace Microsoft.SqlTools.ResourceProvider.Core.Firewall
|
|||||||
clientIp = null;
|
clientIp = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
#pragma warning disable SYSLIB1045
|
||||||
Regex regex =
|
Regex regex =
|
||||||
new Regex(
|
new Regex(
|
||||||
@"\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b",
|
@"\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b",
|
||||||
RegexOptions.IgnoreCase);
|
RegexOptions.IgnoreCase);
|
||||||
|
#pragma warning restore SYSLIB1045
|
||||||
Match match = regex.Match(message);
|
Match match = regex.Match(message);
|
||||||
|
|
||||||
if (match.Success)
|
if (match.Success)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<StartupObject />
|
<StartupObject />
|
||||||
<Description>Provides the default for SqlTools applications.</Description>
|
<Description>Provides the default for SqlTools applications.</Description>
|
||||||
<Copyright><EFBFBD> Microsoft Corporation. All rights reserved.</Copyright>
|
<Copyright><EFBFBD> Microsoft Corporation. All rights reserved.</Copyright>
|
||||||
|
<NoWarn>$(NoWarn);CA1852</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Azure.Management.ResourceManager" />
|
<PackageReference Include="Microsoft.Azure.Management.ResourceManager" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
|
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
|
||||||
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
|
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
|
||||||
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
||||||
|
<NoWarn>$(NoWarn);CA1852</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
<DefineConstants>TRACE;DEBUG;NETCOREAPP1_0;NETCOREAPP2_0</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;NETCOREAPP1_0;NETCOREAPP2_0</DefineConstants>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var filters = Parameters.ObjectTypes.Select(t => MapType(t)).ToArray();
|
var filters = Parameters.ObjectTypes.Select(MapType).ToArray();
|
||||||
var objects = Model.GetObjects(DacQueryScopes.UserDefined, filters).ToList();
|
var objects = Model.GetObjects(DacQueryScopes.UserDefined, filters).ToList();
|
||||||
|
|
||||||
return objects.Select(o => new TSqlObjectInfo
|
return objects.Select(o => new TSqlObjectInfo
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
|
|||||||
Subtext = currentNode.GetDisplayLinesOfText(true),
|
Subtext = currentNode.GetDisplayLinesOfText(true),
|
||||||
RelativeCost = currentNode.RelativeCost,
|
RelativeCost = currentNode.RelativeCost,
|
||||||
Properties = GetProperties(currentNode.Properties),
|
Properties = GetProperties(currentNode.Properties),
|
||||||
Children = currentNode.Children.Select(x => ConvertShowPlanTreeToExecutionPlanTree(x)).ToList(),
|
Children = currentNode.Children.Select(ConvertShowPlanTreeToExecutionPlanTree).ToList(),
|
||||||
Edges = currentNode.Edges.Select(x => ConvertShowPlanEdgeToExecutionPlanEdge(x)).ToList(),
|
Edges = currentNode.Edges.Select(ConvertShowPlanEdgeToExecutionPlanEdge).ToList(),
|
||||||
Badges = GenerateNodeOverlay(currentNode),
|
Badges = GenerateNodeOverlay(currentNode),
|
||||||
Name = currentNode.DisplayName,
|
Name = currentNode.DisplayName,
|
||||||
ElapsedTimeInMs = currentNode.ElapsedTimeInMs,
|
ElapsedTimeInMs = currentNode.ElapsedTimeInMs,
|
||||||
|
|||||||
@@ -597,7 +597,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
|||||||
{
|
{
|
||||||
if (currentList != null &&
|
if (currentList != null &&
|
||||||
token != null && !string.IsNullOrWhiteSpace(token.Text) &&
|
token != null && !string.IsNullOrWhiteSpace(token.Text) &&
|
||||||
token.Text.All(ch => char.IsLetter(ch)) &&
|
token.Text.All(char.IsLetter) &&
|
||||||
currentList.All(x => string.Compare(x.Label, token.Text, true) != 0
|
currentList.All(x => string.Compare(x.Label, token.Text, true) != 0
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// WARNING:
|
// WARNING:
|
||||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 6.0.0.0
|
// This file was generated by the Microsoft DataWarehouse String Resource Tool 7.0.0.0
|
||||||
// from information in sr.strings
|
// from information in sr.strings
|
||||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||||
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
<RuntimeIdentifiers>$(ToolsServiceTargetRuntimes)</RuntimeIdentifiers>
|
||||||
|
<NoWarn>$(NoWarn);SYSLIB1045</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1311</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1854</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CS8600;CS8603;CS8625</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer
|
|||||||
public ObjectExplorerService()
|
public ObjectExplorerService()
|
||||||
{
|
{
|
||||||
sessionMap = new ConcurrentDictionary<string, ObjectExplorerSession>();
|
sessionMap = new ConcurrentDictionary<string, ObjectExplorerSession>();
|
||||||
applicableNodeChildFactories = new Lazy<Dictionary<string, HashSet<ChildFactory>>>(() => PopulateFactories());
|
applicableNodeChildFactories = new Lazy<Dictionary<string, HashSet<ChildFactory>>>(PopulateFactories);
|
||||||
NodePathGenerator.Initialize();
|
NodePathGenerator.Initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerable<SmoQuerier> queriers = context.ServiceProvider.GetServices<SmoQuerier>(q => IsCompatibleQuerier(q));
|
IEnumerable<SmoQuerier> queriers = context.ServiceProvider.GetServices<SmoQuerier>(IsCompatibleQuerier);
|
||||||
var filters = this.Filters.ToList();
|
var filters = this.Filters.ToList();
|
||||||
var smoProperties = this.SmoProperties.Where(p => ServerVersionHelper.IsValidFor(serverValidFor, p.ValidFor)).Select(x => x.Name);
|
var smoProperties = this.SmoProperties.Where(p => ServerVersionHelper.IsValidFor(serverValidFor, p.ValidFor)).Select(x => x.Name);
|
||||||
if (!string.IsNullOrEmpty(name))
|
if (!string.IsNullOrEmpty(name))
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TaskServices
|
|||||||
//Run Task synchronously
|
//Run Task synchronously
|
||||||
public void Run()
|
public void Run()
|
||||||
{
|
{
|
||||||
Task.Run(() => RunAsync());
|
Task.Run(RunAsync);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
<PackageId>Microsoft.SqlTools.ServiceLayer.IntegrationTests</PackageId>
|
<PackageId>Microsoft.SqlTools.ServiceLayer.IntegrationTests</PackageId>
|
||||||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
||||||
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
|
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
|
||||||
|
<NoWarn>$(NoWarn);SYSLIB1045</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);IDE0200</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);IDE0230</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1311</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1852</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1854</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../src/Microsoft.SqlTools.Hosting/Microsoft.SqlTools.Hosting.csproj" />
|
<ProjectReference Include="../../src/Microsoft.SqlTools.Hosting/Microsoft.SqlTools.Hosting.csproj" />
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ using System;
|
|||||||
|
|
||||||
namespace Microsoft.SqlTools.ServiceLayer.Test.Common
|
namespace Microsoft.SqlTools.ServiceLayer.Test.Common
|
||||||
{
|
{
|
||||||
internal class ComparisonFailureException : InvalidOperationException
|
internal sealed class ComparisonFailureException : InvalidOperationException
|
||||||
{
|
{
|
||||||
internal string FullMessageWithDiff { get; private set; }
|
internal string FullMessageWithDiff { get; private set; }
|
||||||
internal string EditAndCopyMessage { get; private set; }
|
internal string EditAndCopyMessage { get; private set; }
|
||||||
|
|||||||
@@ -178,14 +178,14 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common.RequestContextMocking
|
|||||||
Event
|
Event
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ExpectedEvent
|
private sealed class ExpectedEvent
|
||||||
{
|
{
|
||||||
public EventTypes EventType { get; set; }
|
public EventTypes EventType { get; set; }
|
||||||
public Type ParamType { get; set; }
|
public Type ParamType { get; set; }
|
||||||
public Delegate Validator { get; set; }
|
public Delegate Validator { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ReceivedEvent
|
private sealed class ReceivedEvent
|
||||||
{
|
{
|
||||||
public object EventObject { get; set; }
|
public object EventObject { get; set; }
|
||||||
public EventTypes EventType { get; set; }
|
public EventTypes EventType { get; set; }
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TestDriver.Driver
|
|||||||
|
|
||||||
// Include a fallback value to for running tests within visual studio
|
// Include a fallback value to for running tests within visual studio
|
||||||
serviceHostExecutable =
|
serviceHostExecutable =
|
||||||
@"..\..\..\..\..\src\Microsoft.SqlTools.ServiceLayer\bin\Debug\net6.0\win-x64\MicrosoftSqlToolsServiceLayer.exe";
|
@"..\..\..\..\..\src\Microsoft.SqlTools.ServiceLayer\bin\Debug\net7.0\win-x64\MicrosoftSqlToolsServiceLayer.exe";
|
||||||
if (!File.Exists(serviceHostExecutable))
|
if (!File.Exists(serviceHostExecutable))
|
||||||
{
|
{
|
||||||
serviceHostExecutable = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "MicrosoftSqlToolsServiceLayer.exe");
|
serviceHostExecutable = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "MicrosoftSqlToolsServiceLayer.exe");
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace Microsoft.SqlTools.ServiceLayer.TestEnvConfig
|
namespace Microsoft.SqlTools.ServiceLayer.TestEnvConfig
|
||||||
{
|
{
|
||||||
class Program
|
sealed class Program
|
||||||
{
|
{
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0210:Convert to top-level statements", Justification = "Structure retained for readability.")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0210:Convert to top-level statements", Justification = "Structure retained for readability.")]
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<ApplicationIcon />
|
<ApplicationIcon />
|
||||||
<StartupObject />
|
<StartupObject />
|
||||||
|
<NoWarn>$(NoWarn);SYSLIB1045</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);IDE0200</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);IDE0230</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1311</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1852</NoWarn>
|
||||||
|
<NoWarn>$(NoWarn);CA1854</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="System.Text.Encoding.CodePages" />
|
<PackageReference Include="System.Text.Encoding.CodePages" />
|
||||||
|
|||||||
Reference in New Issue
Block a user