Switched client and smm test to dotnet SDK build

Also building these components against .net standard. Ripped out old build system.
This commit is contained in:
Jared Moore 2017-08-26 19:14:08 -07:00
Родитель 56cda9d8ec
Коммит 50245ac857
34 изменённых файлов: 4671 добавлений и 642 удалений

6
.gitignore поставляемый
Просмотреть файл

@ -23,4 +23,8 @@ TestResults
*.pd_
# Visual studio
.vs/
.vs/
# Build output
*.dll
*.exe

Просмотреть файл

@ -1,32 +1,13 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26430.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElasticScale.ClientTestCommon", "Test\ElasticScale.ClientTestCommon\ElasticScale.ClientTestCommon.csproj", "{13200C7C-8606-47B8-A004-570B56E3A9A8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.SqlDatabase.ElasticScale.Client", "Src\ElasticScale.Client\Microsoft.Azure.SqlDatabase.ElasticScale.Client.csproj", "{4C3B3EC4-5702-469E-800E-313FB27A0A2B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElasticScale.Query.UnitTests", "Test\ElasticScale.Query.UnitTests\ElasticScale.Query.UnitTests.csproj", "{56DDEC7E-0B14-4636-B287-DB38DEC55192}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon", "Test\ElasticScale.ClientTestCommon\Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon.csproj", "{9336E9E7-19BF-49AC-92E3-19FA6B98921E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElasticScale.ShardManagement.LoadTests", "Test\ElasticScale.ShardManagement.LoadTests\ElasticScale.ShardManagement.LoadTests.csproj", "{6C6E8D75-DF7B-4841-A254-D0D54746B417}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElasticScale.ShardManagement.UnitTests", "Test\ElasticScale.ShardManagement.UnitTests\ElasticScale.ShardManagement.UnitTests.csproj", "{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElasticScaleStarterKit", "Samples\ElasticScaleStarterKit\ElasticScaleStarterKit.csproj", "{115A0283-AC42-4D37-97F2-106D168E04D2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityFrameworkCodeFirst", "Samples\EFCodeFirst\EntityFrameworkCodeFirst.csproj", "{904469F9-427C-4B9F-A30D-B63E53BEB489}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShardSqlCmd", "Samples\ShardSqlCmd\ShardSqlCmd.csproj", "{A95C04CC-3CEE-42ED-BB17-2B9850E374FB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityFrameworkMultiTenant", "Samples\EFMultiTenant\EntityFrameworkMultiTenant.csproj", "{9AD1DDF3-213C-47B1-B136-733C9FFF9FD1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElasticDapper", "Samples\Dapper\ElasticDapper.csproj", "{7B67F0A1-A5A9-477B-9B7E-FA2E16ED34DE}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Azure.SqlDatabase.ElasticScale.Client", "Src\ElasticScale.Client\Microsoft.Azure.SqlDatabase.ElasticScale.Client.xproj", "{A4AE0AF5-0567-4CF6-95B0-35058E6CA3F9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3677686B-611B-42DF-B00C-68E22E5C1784}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests", "Test\ElasticScale.ShardManagement.UnitTests\Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests.csproj", "{BEA6F911-BA98-462C-99AF-3B0595DE2307}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -35,66 +16,24 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{13200C7C-8606-47B8-A004-570B56E3A9A8}.Cover|Any CPU.ActiveCfg = Release|Any CPU
{13200C7C-8606-47B8-A004-570B56E3A9A8}.Cover|Any CPU.Build.0 = Release|Any CPU
{13200C7C-8606-47B8-A004-570B56E3A9A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13200C7C-8606-47B8-A004-570B56E3A9A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13200C7C-8606-47B8-A004-570B56E3A9A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13200C7C-8606-47B8-A004-570B56E3A9A8}.Release|Any CPU.Build.0 = Release|Any CPU
{56DDEC7E-0B14-4636-B287-DB38DEC55192}.Cover|Any CPU.ActiveCfg = Release|Any CPU
{56DDEC7E-0B14-4636-B287-DB38DEC55192}.Cover|Any CPU.Build.0 = Release|Any CPU
{56DDEC7E-0B14-4636-B287-DB38DEC55192}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56DDEC7E-0B14-4636-B287-DB38DEC55192}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56DDEC7E-0B14-4636-B287-DB38DEC55192}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56DDEC7E-0B14-4636-B287-DB38DEC55192}.Release|Any CPU.Build.0 = Release|Any CPU
{6C6E8D75-DF7B-4841-A254-D0D54746B417}.Cover|Any CPU.ActiveCfg = Release|Any CPU
{6C6E8D75-DF7B-4841-A254-D0D54746B417}.Cover|Any CPU.Build.0 = Release|Any CPU
{6C6E8D75-DF7B-4841-A254-D0D54746B417}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6C6E8D75-DF7B-4841-A254-D0D54746B417}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6C6E8D75-DF7B-4841-A254-D0D54746B417}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6C6E8D75-DF7B-4841-A254-D0D54746B417}.Release|Any CPU.Build.0 = Release|Any CPU
{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}.Cover|Any CPU.ActiveCfg = Release|Any CPU
{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}.Cover|Any CPU.Build.0 = Release|Any CPU
{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}.Release|Any CPU.Build.0 = Release|Any CPU
{115A0283-AC42-4D37-97F2-106D168E04D2}.Cover|Any CPU.ActiveCfg = Cover|Any CPU
{115A0283-AC42-4D37-97F2-106D168E04D2}.Cover|Any CPU.Build.0 = Cover|Any CPU
{115A0283-AC42-4D37-97F2-106D168E04D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{115A0283-AC42-4D37-97F2-106D168E04D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{115A0283-AC42-4D37-97F2-106D168E04D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{115A0283-AC42-4D37-97F2-106D168E04D2}.Release|Any CPU.Build.0 = Release|Any CPU
{904469F9-427C-4B9F-A30D-B63E53BEB489}.Cover|Any CPU.ActiveCfg = Cover|Any CPU
{904469F9-427C-4B9F-A30D-B63E53BEB489}.Cover|Any CPU.Build.0 = Cover|Any CPU
{904469F9-427C-4B9F-A30D-B63E53BEB489}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{904469F9-427C-4B9F-A30D-B63E53BEB489}.Debug|Any CPU.Build.0 = Debug|Any CPU
{904469F9-427C-4B9F-A30D-B63E53BEB489}.Release|Any CPU.ActiveCfg = Release|Any CPU
{904469F9-427C-4B9F-A30D-B63E53BEB489}.Release|Any CPU.Build.0 = Release|Any CPU
{A95C04CC-3CEE-42ED-BB17-2B9850E374FB}.Cover|Any CPU.ActiveCfg = Cover|Any CPU
{A95C04CC-3CEE-42ED-BB17-2B9850E374FB}.Cover|Any CPU.Build.0 = Cover|Any CPU
{A95C04CC-3CEE-42ED-BB17-2B9850E374FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A95C04CC-3CEE-42ED-BB17-2B9850E374FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A95C04CC-3CEE-42ED-BB17-2B9850E374FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A95C04CC-3CEE-42ED-BB17-2B9850E374FB}.Release|Any CPU.Build.0 = Release|Any CPU
{9AD1DDF3-213C-47B1-B136-733C9FFF9FD1}.Cover|Any CPU.ActiveCfg = Cover|Any CPU
{9AD1DDF3-213C-47B1-B136-733C9FFF9FD1}.Cover|Any CPU.Build.0 = Cover|Any CPU
{9AD1DDF3-213C-47B1-B136-733C9FFF9FD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9AD1DDF3-213C-47B1-B136-733C9FFF9FD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9AD1DDF3-213C-47B1-B136-733C9FFF9FD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9AD1DDF3-213C-47B1-B136-733C9FFF9FD1}.Release|Any CPU.Build.0 = Release|Any CPU
{7B67F0A1-A5A9-477B-9B7E-FA2E16ED34DE}.Cover|Any CPU.ActiveCfg = Cover|Any CPU
{7B67F0A1-A5A9-477B-9B7E-FA2E16ED34DE}.Cover|Any CPU.Build.0 = Cover|Any CPU
{7B67F0A1-A5A9-477B-9B7E-FA2E16ED34DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B67F0A1-A5A9-477B-9B7E-FA2E16ED34DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B67F0A1-A5A9-477B-9B7E-FA2E16ED34DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B67F0A1-A5A9-477B-9B7E-FA2E16ED34DE}.Release|Any CPU.Build.0 = Release|Any CPU
{A4AE0AF5-0567-4CF6-95B0-35058E6CA3F9}.Cover|Any CPU.ActiveCfg = Debug|Any CPU
{A4AE0AF5-0567-4CF6-95B0-35058E6CA3F9}.Cover|Any CPU.Build.0 = Debug|Any CPU
{A4AE0AF5-0567-4CF6-95B0-35058E6CA3F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4AE0AF5-0567-4CF6-95B0-35058E6CA3F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4AE0AF5-0567-4CF6-95B0-35058E6CA3F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A4AE0AF5-0567-4CF6-95B0-35058E6CA3F9}.Release|Any CPU.Build.0 = Release|Any CPU
{4C3B3EC4-5702-469E-800E-313FB27A0A2B}.Cover|Any CPU.ActiveCfg = Debug|Any CPU
{4C3B3EC4-5702-469E-800E-313FB27A0A2B}.Cover|Any CPU.Build.0 = Debug|Any CPU
{4C3B3EC4-5702-469E-800E-313FB27A0A2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4C3B3EC4-5702-469E-800E-313FB27A0A2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4C3B3EC4-5702-469E-800E-313FB27A0A2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4C3B3EC4-5702-469E-800E-313FB27A0A2B}.Release|Any CPU.Build.0 = Release|Any CPU
{9336E9E7-19BF-49AC-92E3-19FA6B98921E}.Cover|Any CPU.ActiveCfg = Debug|Any CPU
{9336E9E7-19BF-49AC-92E3-19FA6B98921E}.Cover|Any CPU.Build.0 = Debug|Any CPU
{9336E9E7-19BF-49AC-92E3-19FA6B98921E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9336E9E7-19BF-49AC-92E3-19FA6B98921E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9336E9E7-19BF-49AC-92E3-19FA6B98921E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9336E9E7-19BF-49AC-92E3-19FA6B98921E}.Release|Any CPU.Build.0 = Release|Any CPU
{BEA6F911-BA98-462C-99AF-3B0595DE2307}.Cover|Any CPU.ActiveCfg = Debug|Any CPU
{BEA6F911-BA98-462C-99AF-3B0595DE2307}.Cover|Any CPU.Build.0 = Debug|Any CPU
{BEA6F911-BA98-462C-99AF-3B0595DE2307}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEA6F911-BA98-462C-99AF-3B0595DE2307}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BEA6F911-BA98-462C-99AF-3B0595DE2307}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEA6F911-BA98-462C-99AF-3B0595DE2307}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

Просмотреть файл

@ -2,7 +2,7 @@
<RuleSet ToolsVersion="10.0"
Name="Template for custom ruleset"
Description="This template includes everything (including SDL ruleset, if enabled) but the rules that are explicitly disabled.">
<!--
To use: copy template to a location of the tree, and,
for a build.props, add this to the build.props:
@ -10,18 +10,18 @@
for a leaf msbuild project, add this to the project file:
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)CodeAnalysis.ruleset</CodeAnalysisRuleSet>
-->
<!-- this node ensures all rules (including SDL ones if CodeAnalysisUseFxCopForSdl is set to true) are imported -->
<IncludeAll Action="Warning" />
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<!--
These are examples of disabled rules
<!--
These are examples of disabled rules
The pro of implicitly importing all and explicitly silencing some rules is auto-getting new rules when setting
properties (such as CodeAnalysisUseFxCopForSdl to true) and picking up new versions of the code analysis tools.
-->
<Rule Id="CA1014" Action="None" /> <!-- MarkAssembliesWithClsCompliant -->
<Rule Id="CA1026" Action="None" /> <!-- DefaultParametersShouldNotBeUsed -->
<Rule Id="CA1303" Action="None" /> <!-- DoNotPassLiteralsAsLocalizedParameters -->

Просмотреть файл

@ -8,7 +8,6 @@
<AssemblyName>ElasticDapper</AssemblyName>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<!--
BUILD PROCESS FOR SAMPLES GALLERY
-->
@ -19,9 +18,9 @@
<SamplesGallerySolutionInput Include="ElasticDapper.sln.SamplesGallery" />
</ItemGroup>
<Import Project="..\SamplesGallery.targets" />
<!--
<!--
Any changes below must be copied to ShardSqlCmd.csproj.SamplesGallery, except:
- $(NugetPack) must be replaced with ..\packages
- $(NugetPack) must be replaced with ..\packages
-->
<ItemGroup>
<Reference Include="$(NugetPack)\EnterpriseLibrary.TransientFaultHandling.6.0.1304.0\lib\portable-net45+win+wp8\Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.dll">

Просмотреть файл

@ -10,7 +10,6 @@
<!-- Disable FxCop - fixing these warnings is low priority -->
<RunCodeAnalysis>false</RunCodeAnalysis>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<!--
BUILD PROCESS FOR SAMPLES GALLERY
-->
@ -21,7 +20,7 @@
<SamplesGallerySolutionInput Include="EntityFrameworkCodeFirst.sln.SamplesGallery" />
</ItemGroup>
<Import Project="..\SamplesGallery.targets" />
<!--
<!--
Any changes below must be copied to EntityFrameworkCodeFirst.csproj.SamplesGallery, except:
- $(NugetPack) must be replaced with ..\packages
-->

Просмотреть файл

@ -10,7 +10,6 @@
<!-- Disable FxCop - fixing these warnings is low priority -->
<RunCodeAnalysis>false</RunCodeAnalysis>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<!--
BUILD PROCESS FOR SAMPLES GALLERY
-->
@ -21,7 +20,7 @@
<SamplesGallerySolutionInput Include="EntityFrameworkMultiTenant.sln.SamplesGallery" />
</ItemGroup>
<Import Project="..\SamplesGallery.targets" />
<!--
<!--
Any changes below must be copied to EntityFrameworkMultiTenant.csproj.SamplesGallery, except:
- $(NugetPack) must be replaced with ..\packages
-->

Просмотреть файл

@ -8,7 +8,6 @@
<RootNamespace>ElasticScaleStarterKit</RootNamespace>
<AssemblyName>ElasticScaleStarterKit</AssemblyName>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<!--
BUILD PROCESS FOR SAMPLES GALLERY
-->
@ -19,7 +18,7 @@
<SamplesGallerySolutionInput Include="ElasticScaleStarterKit.sln.SamplesGallery" />
</ItemGroup>
<Import Project="..\SamplesGallery.targets" />
<!--
<!--
Any changes below must be copied to ElasticScaleStarterKit.csproj.SamplesGallery except:
- "$(NugetPack)" must be replaced with "..\packages"
-->

Просмотреть файл

@ -8,7 +8,6 @@
<RootNamespace>ShardSqlCmd</RootNamespace>
<AssemblyName>ShardSqlCmd</AssemblyName>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<!--
BUILD PROCESS FOR SAMPLES GALLERY
-->
@ -19,9 +18,9 @@
<SamplesGallerySolutionInput Include="ShardSqlCmd.sln.SamplesGallery" />
</ItemGroup>
<Import Project="..\SamplesGallery.targets" />
<!--
<!--
Any changes below must be copied to ShardSqlCmd.csproj.SamplesGallery, except:
- $(NugetPack) must be replaced with ..\packages
- $(NugetPack) must be replaced with ..\packages
-->
<ItemGroup>
<Reference Include="$(NugetPack)\Microsoft.Azure.SqlDatabase.ElasticScale.Client.1.3.2\lib\net45\Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll">

Просмотреть файл

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup>
<CodeAnalysisRuleSet Condition="'$(CodeAnalysisRuleSet)'==''">$(MSBuildThisFileDirectory)CodeAnalysis.Samples.ruleset</CodeAnalysisRuleSet>
<RelativeOutputPath>Samples\$(RelativeOutputPath)</RelativeOutputPath>
<SigningType Condition="$(SigningType)==''">Test</SigningType>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)\..\Build.props" />
</Project>

Просмотреть файл

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<ItemGroup>
<ProjectFile Include="EFCodeFirst\EntityFrameworkCodeFirst.csproj" />
<ProjectFile Include="EFMultiTenant\EntityFrameworkMultiTenant.csproj" />
<ProjectFile Include="ElasticScaleStarterKit\ElasticScaleStarterKit.csproj" />
<ProjectFile Include="ShardSqlCmd\ShardSqlCmd.csproj" />
</ItemGroup>
<Import Project="$(BuildExtensionsPath)\Traversal.targets" />
</Project>

Просмотреть файл

@ -1,86 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This client library allows ADO.NET developers to create applications that implement and use the pattern known as database sharding in Azure SQL Database. Sharding is a scale-out strategy that spreads data across a number of independent databases. The library includes APIs for creating and managing shard maps, routing SQL operations to the appropriate shard, and performing queries that cross many shards. To learn more about elastic database tools, check out http://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-scale-documentation-map/.</Description>
<Copyright>Copyright <20> Microsoft Corporation. All rights reserved.</Copyright>
<AssemblyTitle>Microsoft Azure SQL Database: Elastic Database Client Library</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>1.3.2</VersionPrefix>
<Authors>Microsoft</Authors>
<TargetFrameworks>netstandard1.6;net451</TargetFrameworks>
<DefineConstants>$(DefineConstants);STANDALONE_BUILD</DefineConstants>
<AssemblyName>Microsoft.Azure.SqlDatabase.ElasticScale.Client</AssemblyName>
<PackageId>ElasticScale.Client</PackageId>
<PackageTags>Microsoft;Elastic;Scale;Azure;SQL;DB;Database;Shard;Sharding;Management;Query;azureofficial</PackageTags>
<PackageReleaseNotes>This refresh fixes a bug related to SqlConnectionStringBuilder exception in library. No API changes have been introduced.
In 1.3.2:
- Bugfix to handle SqlConnectionStringBuilder properties correctly when running with 4.5.2 or earlier version of .NET.
In 1.3.1:
- Bugfix to handle exceptions in performance counter creation code.
In 1.3.0:
- Introduction of performance counters for caching and Data Dependent Routing (DDR) scenarios in Elastic Database Client Library.
- New API addition for creation of performance category and counters: ShardMapManagerFactory.CreatePerformanceCategoryAndCounters();. Please check documentation map for more information on performance counters at https://azure.microsoft.com/en-us/documentation/learning-paths/sql-database-elastic-scale/.
- Active Directory authentication support.
- Bug fix to explicitly release the lock at connection close. This will allow addition of multiple mappings at the same time faster.
- ReadAsync support for MultiShardDataReader
In 1.2.0:
- Fixed a bug in SchemaInfo serialization
In 1.1.0:
- Responsiveness of cancellation in Multi-Shard Query has been improved.
- This assembly can now loaded from a byte stream instead of from a file. This can be a useful way to load the assembly in SQL CLR, using syntax CREATE ASSEMBLY {assembly name} FROM {bytes}.</PackageReleaseNotes>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>
<PackageProjectUrl>http://go.microsoft.com/?linkid=9862897</PackageProjectUrl>
<PackageLicenseUrl>http://go.microsoft.com/?linkid=9862941</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Azure/elastic-db-tools</RepositoryUrl>
<RuntimeIdentifiers>win;unix</RuntimeIdentifiers>
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netstandard1.6' ">$(PackageTargetFallback);dnxcore50;dotnet5.6;portable-net45+win8</PackageTargetFallback>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.6.0</NetStandardImplicitPackageVersion>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Data.Common" Version="4.1.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.0.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.1.0" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.0.0-rc3-24212-01" />
<PackageReference Include="System.ComponentModel.Primitives" Version="4.1.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.1.0" />
<PackageReference Include="System.Diagnostics.Contracts" Version="4.0.1" />
<PackageReference Include="System.Resources.Reader" Version="4.0.0" />
<PackageReference Include="System.Resources.ResourceManager" Version="4.0.1" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.1.1" />
<PackageReference Include="System.Security.Principal" Version="4.0.1" />
<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11" />
</ItemGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
<DefineConstants>$(DefineConstants);NETSTANDARD16</DefineConstants>
</PropertyGroup>
<Target Name="PostcompileScript" AfterTargets="Build" Condition=" '$(IsCrossTargetingBuild)' != 'true' ">
<Exec Command="dotnet pack --no-build --configuration $(Configuration)" />
</Target>
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml.ReaderWriter" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
</Project>

Просмотреть файл

@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This client library allows ADO.NET developers to create applications that implement and use the pattern known as database sharding in Azure SQL Database. Sharding is a scale-out strategy that spreads data across a number of independent databases. The library includes APIs for creating and managing shard maps, routing SQL operations to the appropriate shard, and performing queries that cross many shards. To learn more about elastic database tools, check out http://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-scale-documentation-map/.</Description>
<Copyright>Copyright <20> Microsoft Corporation. All rights reserved.</Copyright>
<AssemblyTitle>Microsoft Azure SQL Database: Elastic Database Client Library</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>1.4.0</VersionPrefix>
<Authors>Microsoft</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageTags>Microsoft;Elastic;Scale;Azure;SQL;DB;Database;Shard;Sharding;Management;Query;azureofficial</PackageTags>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>
<PackageProjectUrl>http://go.microsoft.com/?linkid=9862897</PackageProjectUrl>
<PackageLicenseUrl>http://go.microsoft.com/?linkid=9862941</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Azure/elastic-db-tools</RepositoryUrl>
<RuntimeIdentifiers>win;unix</RuntimeIdentifiers>
<Version>1.4.0.0</Version>
<RootNamespace>Microsoft.Azure.SqlDatabase.ElasticScale</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Data.SqlClient" Version="4.4.0" />
</ItemGroup>
</Project>

Просмотреть файл

@ -7,69 +7,19 @@ using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Microsoft.Azure.SqlDatabase.ElasticScale.Client")]
[assembly: AssemblyDescription("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4599fe76-62a2-4da8-8a0f-dd190c0c6c58")]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.ServiceCommon" + AssemblyRef.ProductPublicKey)]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.Query.UnitTests" + AssemblyRef.ProductPublicKey)]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests" + AssemblyRef.ProductPublicKey)]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.SplitMerge.Client" + AssemblyRef.ProductPublicKey)]
[assembly: InternalsVisibleTo("Microsoft.SqlServer.DataWarehouse.Engine" + AssemblyRef.ElasticQueryPublicKey)]
[assembly: InternalsVisibleTo("SplitMergeWorker" + AssemblyRef.ProductPublicKey)]
[assembly: InternalsVisibleTo("ShardSplitMergeTests" + AssemblyRef.ProductPublicKey)]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.Client.Fakes" + AssemblyRef.FakesPublicKey)]
// No-op, purely for Resharper's intellisense, as it does not understand AssemblyRef.ProductPublicKey
#if DEBUG
#pragma warning disable 1700
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.ServiceCommon, PublicKey=00")]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.Query.UnitTests, PublicKey=00")]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests, PublicKey=00")]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.SplitMerge.Client, PublicKey=00")]
[assembly: InternalsVisibleTo("SplitMergeWorker, PublicKey=00")]
[assembly: InternalsVisibleTo("ShardSplitMergeTests, PublicKey=00")]
#pragma warning restore 1700
#endif
// Added reference to the nuget package in the unsigned versions
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.ServiceCommon" + AssemblyRef.TestPublicKey)]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.SplitMerge.Client" + AssemblyRef.TestPublicKey)]
[assembly: InternalsVisibleTo("SplitMergeWorker" + AssemblyRef.TestPublicKey)]
[assembly: InternalsVisibleTo("ShardSplitMergeTests" + AssemblyRef.TestPublicKey)]
[assembly: InternalsVisibleTo("ElasticScale.ShardManagement.UnitTests.Core")]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.Query.UnitTests")]
[assembly: InternalsVisibleTo("Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests")]
[assembly: CLSCompliant(true)]
// Associated VSTS #2466045
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1824:MarkAssembliesWithNeutralResourcesLanguage", Justification = "Too many dubious spelling errors.")]
// [assembly: NeutralResourcesLanguageAttribute("en-US")]
// The Microsoft Azure SQL Database team's build system automatically creates the AssemblyRef class during the build process.
// This class contains the values of the public keys that the assemblies are signed with. When building externally, we manually define it here.
#if STANDALONE_BUILD
internal static class AssemblyRef
{
public const string ProductPublicKey = "";
public const string TestPublicKey = "";
public const string FakesPublicKey = "";
public const string ElasticQueryPublicKey = "";
}
internal static class ElasticScaleVersionInfo
{
public const string ProductVersion = "1.0.0";
public const string ProductVersion = "2.0.0";
}
#endif

Просмотреть файл

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup>
<RelativeOutputPath>Product\$(RelativeOutputPath)</RelativeOutputPath>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)\..\Build.props" />
</Project>

Просмотреть файл

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<ItemGroup>
<ProjectFile Include="ElasticScale.Client\ElasticScale.Client.csproj" />
</ItemGroup>
<Import Project="$(BuildExtensionsPath)\Traversal.targets" />
</Project>

Просмотреть файл

@ -274,8 +274,6 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.Test.Common
return;
}
Trace.TraceError("Expected: [{0}]", expectedArray.ToCommaSeparatedString());
Trace.TraceError("Actual: [{0}]", actualArray.ToCommaSeparatedString());
Assert.Fail(
"Sequences were not equal. Message: {0}. Expected sequence had {1} elements, actual had {2}. Comma separated contents for expected: <{3}>, for actual: <{4}>",
message,
@ -320,8 +318,6 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.Test.Common
}
}
Trace.TraceError("Expected: [{0}]", expectedArray.ToCommaSeparatedString());
Trace.TraceError("Actual: [{0}]", actualArray.ToCommaSeparatedString());
Assert.Fail(
"Sequences were not equivalent. Message: {0}. Expected sequence had {1} elements, actual had {2}. Comma separated contents for expected: <{3}>, for actual: <{4}>",
message,

Просмотреть файл

@ -1,49 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{13200c7c-8606-47b8-a004-570b56e3a9a8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon</RootNamespace>
<AssemblyName>Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon</AssemblyName>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<Choose>
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
</ItemGroup>
</Otherwise>
</Choose>
<ItemGroup>
<Compile Include="AssertExtensions.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

Просмотреть файл

@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSTest.TestFramework" Version="1.1.18" />
</ItemGroup>
</Project>

Просмотреть файл

@ -4,30 +4,9 @@ using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ElasticScale.Test.Common")]
[assembly: AssemblyDescription("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.0.0")]
// [assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]

Просмотреть файл

@ -11,7 +11,6 @@
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
@ -73,12 +72,6 @@
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ElasticScale.ClientTestCommon\ElasticScale.ClientTestCommon.csproj">
<Project>{13200c7c-8606-47b8-a004-570b56e3a9a8}</Project>
<Name>ElasticScale.ClientTestCommon</Name>
</ProjectReference>
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
@ -99,7 +92,7 @@
</Choose>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>

Просмотреть файл

@ -14,7 +14,6 @@
<TestProjectType>WebTest</TestProjectType>
<IsCodedUITest>False</IsCodedUITest>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
@ -69,7 +68,7 @@
</Choose>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,141 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{EA7DA8D7-6B11-4AF7-9C24-6FEEBDA7E188}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests</RootNamespace>
<AssemblyName>Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests</AssemblyName>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<EnableFakes>true</EnableFakes>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<Choose>
<When Condition="'$(StandaloneBuild)' == 'true'" />
<Otherwise>
<ItemGroup>
<Reference Include="Microsoft.Azure.SqlDatabase.ElasticScale.Client.Fakes, Version=$(VersionMajor).$(VersionMinor).0.0, Culture=neutral, PublicKeyToken=0ae41878053f6703, processorArchitecture=MSIL" />
</ItemGroup>
</Otherwise>
</Choose>
<ItemGroup>
<Reference Include="$(NugetPack)\EnterpriseLibrary.TransientFaultHandling.6.0.1304.0\lib\portable-net45+win+wp8\Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.dll">
<Name>Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling</Name>
</Reference>
<Reference Include="$(NugetPack)\EnterpriseLibrary.TransientFaultHandling.Data.6.0.1304.1\lib\net45\Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Data.dll">
<Name>Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Data</Name>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<Choose>
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
</ItemGroup>
</Otherwise>
</Choose>
<ItemGroup>
<Compile Include="DateTimeShardMapperTests.cs" />
<Compile Include="Decorators\CacheStoreDecorator.cs" />
<Compile Include="Decorators\CountingCacheStore.cs" />
<Compile Include="Decorators\StoreOperationDecorator.cs" />
<Compile Include="Stubs\IStubBehavior.cs" />
<Compile Include="Stubs\StubAddMappingOperation.cs" />
<Compile Include="Stubs\StubAddShardOperation.cs" />
<Compile Include="Stubs\StubBehaviors.cs" />
<Compile Include="Stubs\StubCacheStore.cs" />
<Compile Include="Stubs\StubFindMappingByKeyGlobalOperation.cs" />
<Compile Include="Stubs\StubICacheStoreMapping.cs" />
<Compile Include="Stubs\StubRemoveMappingOperation.cs" />
<Compile Include="Stubs\StubRemoveShardOperation.cs" />
<Compile Include="Stubs\StubReplaceMappingsOperation.cs" />
<Compile Include="Stubs\StubSqlStoreConnectionFactory.cs" />
<Compile Include="Stubs\StubStoreOperationFactory.cs" />
<Compile Include="RecoveryManagerTests.cs" />
<Compile Include="Globals.cs" />
<Compile Include="ScenarioTests.cs" />
<Compile Include="ShardKeyInfo.cs" />
<Compile Include="ShardKeyTests.cs" />
<Compile Include="ShardKeyTypeInfo.cs" />
<Compile Include="ShardMapFaultHandlingTests.cs" />
<Compile Include="ShardMapManagerConcurrencyTests.cs" />
<Compile Include="ShardMapManagerTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ShardMapManagerUpgradeTests.cs" />
<Compile Include="ShardMapperTests.cs" />
<Compile Include="ShardMapManagerLoadTests.cs" />
<Compile Include="ShardMapTests.cs" />
<Compile Include="ShardMapManagerFactoryTests.cs" />
<Compile Include="SchemaInfoCollectionTests.cs" />
<Compile Include="ShardRangeTests.cs" />
<Compile Include="Stubs\StubUpdateMappingOperation.cs" />
<Compile Include="Stubs\StubUpdateShardOperation.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ElasticScale.ClientTestCommon\ElasticScale.ClientTestCommon.csproj">
<Project>{13200c7c-8606-47b8-a004-570b56e3a9a8}</Project>
<Name>ElasticScale.ClientTestCommon</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="App.config">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
</ItemGroup>
</When>
</Choose>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

Просмотреть файл

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-preview-20170628-02" />
<PackageReference Include="MSTest.TestAdapter" Version="1.1.18" />
<PackageReference Include="MSTest.TestFramework" Version="1.1.18" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Src\ElasticScale.Client\Microsoft.Azure.SqlDatabase.ElasticScale.Client.csproj" />
<ProjectReference Include="..\ElasticScale.ClientTestCommon\Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -5,14 +5,8 @@ using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ShardMapManagerUnitTests")]
[assembly: AssemblyDescription("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

Просмотреть файл

@ -1344,6 +1344,7 @@ end", s_testUser);
[TestCategory("ExcludeFromGatedCheckin")]
public void ListShardMapPerformanceCounterValidation()
{
#if NET451
if (PerfCounterInstance.HasCreatePerformanceCategoryPermissions())
{
string shardMapName = "PerTenantShardMap";
@ -1454,8 +1455,10 @@ end", s_testUser);
{
Assert.Inconclusive("Do not have permissions to create performance counter category, test skipped");
}
#endif
}
#if NET451
private bool ValidateNonZeroCounterValue(string instanceName, PerformanceCounterName counterName)
{
string counterdisplayName = (from c in PerfCounterInstance.counterList
@ -1486,6 +1489,7 @@ end", s_testUser);
{
return PerformanceCounterCategory.InstanceExists(instanceName, PerformanceCounters.ShardManagementPerformanceCounterCategory);
}
#endif
private RangeMapping<T> MarkMappingOfflineAndUpdateShard<T>(RangeShardMap<T> map, RangeMapping<T> mapping, Shard newShard)
{

Просмотреть файл

@ -1,6 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Azure.SqlDatabase.ElasticScale;
using Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
@ -8,8 +9,6 @@ using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Linq;
using Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling;
using Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.SqlAzure;
namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests
{
@ -114,7 +113,7 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests
/// <summary>
/// Retry policy used for DDR in unit tests.
/// </summary>
private static RetryPolicy<SqlAzureTransientErrorDetectionStrategy> s_retryPolicy;
private static TransientFaultHandling.RetryPolicy<TransientFaultHandling.SqlDatabaseTransientErrorDetectionStrategy> s_retryPolicy;
#region CommonMethods
@ -215,8 +214,8 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests
}
// Initialize retry policy
s_retryPolicy = new RetryPolicy<SqlAzureTransientErrorDetectionStrategy>(
new ExponentialBackoff(5, TimeSpan.FromMilliseconds(100), TimeSpan.FromSeconds(5), TimeSpan.FromMilliseconds(100)));
s_retryPolicy = new TransientFaultHandling.RetryPolicy<TransientFaultHandling.SqlDatabaseTransientErrorDetectionStrategy>(
new TransientFaultHandling.ExponentialBackoff(5, TimeSpan.FromMilliseconds(100), TimeSpan.FromSeconds(5), TimeSpan.FromMilliseconds(100)));
}
/// <summary>

Просмотреть файл

@ -91,7 +91,7 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests
}
catch (ShardManagementException smme)
{
Assert.IsTrue(smme.ErrorCode == ShardManagementErrorCode.ShardMapLookupFailure);
Assert.AreEqual(ShardManagementErrorCode.ShardMapLookupFailure, smme.ErrorCode);
}
}
@ -111,7 +111,7 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.UnitTests
}
catch (ShardManagementException smme)
{
Assert.IsTrue(smme.ErrorCode == ShardManagementErrorCode.ShardMapLookupFailure);
Assert.AreEqual(ShardManagementErrorCode.ShardMapLookupFailure, smme.ErrorCode);
}
}

Просмотреть файл

@ -0,0 +1,13 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ElasticScale.ShardManagement.UnitTests
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
}
}
}

Просмотреть файл

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup>
<RelativeOutputPath>Test\$(RelativeOutputPath)</RelativeOutputPath>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)\..\Build.props" />
</Project>

Просмотреть файл

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<ItemGroup>
<ProjectFile Include="ElasticScale.ClientTestCommon\ElasticScale.ClientTestCommon.csproj" />
<ProjectFile Include="ElasticScale.Query.UnitTests\ElasticScale.Query.UnitTests.csproj" />
<ProjectFile Include="ElasticScale.ShardManagement.LoadTests\ElasticScale.ShardManagement.LoadTests.csproj" />
<ProjectFile Include="ElasticScale.ShardManagement.UnitTests\ElasticScale.ShardManagement.UnitTests.csproj" />
</ItemGroup>
<Import Project="$(BuildExtensionsPath)\Traversal.targets" />
</Project>

Просмотреть файл

@ -1,32 +0,0 @@
@ECHO OFF
SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
SET SOLUTION_PATH="%~dp0ElasticDatabaseTools.sln"
SET MSBUILD12_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\12.0\bin\MSBuild.exe"
SET MSBUILD14_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"
SET BUILD_TOOLS_PATH=%MSBUILD14_TOOLS_PATH%
IF EXIST %MSBUILD14_TOOLS_PATH% (
SET BUILD_TOOLS_PATH=%MSBUILD14_TOOLS_PATH%
) else if exist %MSBUILD12_TOOLS_PATH% (
SET BUILD_TOOLS_PATH=%MSBUILD12_TOOLS_PATH%
) else (
echo Could not find MSBuild in any of the following locations:
echo %MSBUILD14_TOOLS_PATH%
echo %MSBUILD12_TOOLS_PATH%
exit /b 1
)
IF EXIST %CACHED_NUGET% goto restore
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
:restore
IF NOT EXIST src\packages md src\packages
%CACHED_NUGET% restore %SOLUTION_PATH%
dotnet restore
%BUILD_TOOLS_PATH% %SOLUTION_PATH% /nologo /m /v:m /flp:verbosity=normal %*

Просмотреть файл

@ -1,52 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup>
<!--
Determine whether we are building in the Microsoft Azure SQL Database team's build system
or standalone (i.e. from open source).
-->
<StandaloneBuild Condition="!Exists('$(MSBuildThisFileDirectory)\..\Build.props')">true</StandaloneBuild>
<StandaloneBuild Condition="Exists('$(MSBuildThisFileDirectory)\..\Build.props')">false</StandaloneBuild>
</PropertyGroup>
<!--
Properties that are implicitly defined in the Microsoft Azure SQL Database team's build system
that need to be defined here for standalone build to work.
-->
<PropertyGroup Condition="'$(StandaloneBuild)' == 'true'">
<!-- Common compile properties -->
<ErrorReport Condition="'$(ErrorReport)' == ''">prompt</ErrorReport>
<WarningLevel Condition="'$(WarningLevel)' == ''">4</WarningLevel>
<DefineConstants>$(DefineConstants);STANDALONE_BUILD;NET40</DefineConstants>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<!-- Folder layout properties -->
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)\obj\$(MSBuildProjectFile)</BaseIntermediateOutputPath>
<BaseOutputPath>$(MSBuildThisFileDirectory)\bin</BaseOutputPath>
<OutputPath>$(BaseOutputPath)\$(Configuration)\$(AssemblyName)</OutputPath>
<NugetPack>$(MSBuildThisFileDirectory)\packages</NugetPack>
</PropertyGroup>
<PropertyGroup Condition="'$(StandaloneBuild)' == 'true' and '$(Configuration)' == 'Debug'">
<!-- Debug compile properties -->
<Optimize Condition="'$(Optimize)' == ''">false</Optimize>
<DebugType Condition="'$(DebugType)' == ''">full</DebugType>
<DefineConstants>$(DefineConstants),DEBUG,TRACE,CODE_ANALYSIS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(StandaloneBuild)' == 'true' and ('$(Configuration)' == 'Release' or '$(Configuration)' == 'Cover')">
<!-- Release compile properties -->
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">pdbonly</DebugType>
<DefineConstants>$(DefineConstants),TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(StandaloneBuild)' == 'false'">
<!-- Enable flag that sets the version number of the built assemblies. -->
<EnableElasticScaleClientHardcodedVersioning>true</EnableElasticScaleClientHardcodedVersioning>
</PropertyGroup>
<Import Condition="'$(StandaloneBuild)' == 'false'" Project="$(MSBuildThisFileDirectory)\..\Build.props" />
</Project>

Просмотреть файл

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Build.props))\Build.props" />
<ItemGroup>
<ProjectFile Include="Samples\dirs.proj" />
<ProjectFile Include="Src\dirs.proj" />
<ProjectFile Include="Test\dirs.proj" />
</ItemGroup>
<Import Project="$(BuildExtensionsPath)\Traversal.targets" />
</Project>