Build Managed Batch Parser NuGet package (#1747)

This commit is contained in:
Cheena Malhotra
2022-11-07 10:03:32 -08:00
committed by GitHub
parent 2856ff241f
commit d33c97c079
13 changed files with 259 additions and 68 deletions

View File

@@ -4,9 +4,15 @@
<TargetFrameworks>net6.0;net472</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<Nullable>disable</Nullable>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>Microsoft.SqlTools.ManagedBatchParser</AssemblyName>
<Guid>82dd9738-2ad3-4eb3-9f80-18b594e03621</Guid>
<DelaySign>True</DelaySign>
<!-- Explicitly disable since it leads to compilation errors. The .NET 6.0 target is used in tests with internalsVisibleTo attribute.-->
<SignAssembly Condition="$(TargetFramework) == 'net472'">True</SignAssembly>
<AssemblyOriginatorKeyFile>$(RootDir)\SQL2003.snk</AssemblyOriginatorKeyFile>
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
<Product>Microsoft SqlTools Managed batch parser</Product>
</PropertyGroup>
<ItemGroup>
<Folder Include="Localization\transXliff\" />
@@ -14,6 +20,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" />
<PackageReference Include="System.Configuration.ConfigurationManager" />
<PackageReference Include="Microsoft.SourceLink.GitHub"/>
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" />
<PackageReference Include="Newtonsoft.Json" />
</ItemGroup>
@@ -21,4 +28,12 @@
<EmbeddedResource Include="Localization\*.resx" />
<None Include="Localization\sr.strings" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework) == 'net6.0'">
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.UnitTests" />
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.IntegrationTests" />
<InternalsVisibleTo Include="Microsoft.SqlTools.ServiceLayer.Test.Common" />
<InternalsVisibleTo Include="MicrosoftSqlToolsServiceLayer" />
<InternalsVisibleTo Include="MicrosoftKustoServiceLayer" />
<InternalsVisibleTo Include="Microsoft.SqlTools.ManagedBatchParser.IntegrationTests" />
</ItemGroup>
</Project>