Skip to content

Commit 94bcd6c

Browse files
author
SqlClient Azure DevOps
committed
Merge in 'release/3.1' changes
2 parents 75a3184 + 6e78837 commit 94bcd6c

File tree

8 files changed

+61
-8
lines changed

8 files changed

+61
-8
lines changed

src/Directory.Build.props

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,26 @@
6565
<DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants>
6666
</PropertyGroup>
6767

68+
<!-- Packaging for source link-->
69+
<PropertyGroup>
70+
<DebugType>portable</DebugType>
71+
<DebugSymbols>true</DebugSymbols>
72+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
73+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
74+
<EmbedUnTrackedSources>true</EmbedUnTrackedSources>
75+
<DisableSourceLinkTranslation Condition="'$(DisableSourceLinkTranslation)' == ''">false</DisableSourceLinkTranslation>
76+
</PropertyGroup>
77+
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
78+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
79+
</PropertyGroup>
80+
6881
<!-- Provides Version properties -->
6982
<Import Project="$(ToolsDir)props\Versions.props" />
7083
<!-- Provides Tool properties -->
7184
<Import Project="$(ToolsDir)props\Tools.props" />
7285
<!-- Provides Build properties -->
7386
<Import Project="$(ToolsDir)props\AssemblyInfo.props" />
7487
<Import Project="$(ToolsDir)props\AssemblyRef.props" />
88+
<Import Project="$(ToolsDir)targets\RepositoryInfo.targets" />
89+
7590
</Project>

src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1717
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1818
</PropertyGroup>
19+
<PropertyGroup>
20+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFramework)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
21+
</PropertyGroup>
1922
<ItemGroup>
2023
<ProjectReference Condition="'$(TargetGroup)'=='netcoreapp' AND !$(ReferenceType.Contains('Package'))" Include="$(NetCoreSource)src\Microsoft.Data.SqlClient.csproj" />
2124
<ProjectReference Condition="'$(TargetGroup)'=='netfx' AND !$(ReferenceType.Contains('Package'))" Include="$(NetFxSource)src\Microsoft.Data.SqlClient.csproj" />
2225
<PackageReference Condition="$(ReferenceType)=='Package'" Include="Microsoft.Data.SqlClient" Version="$(TestMicrosoftDataSqlClientVersion)" />
2326
</ItemGroup>
2427
<ItemGroup>
25-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubVersion)" PrivateAssets="All" />
2628
<PackageReference Include="Azure.Core" Version="$(AzureCoreVersion)" />
2729
<PackageReference Include="System.Text.Encodings.Web" Version="$(SystemTextEncodingsWebVersion)" />
2830
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="$(AzureSecurityKeyVaultKeysVersion)" />

src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
</PropertyGroup>
2121
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
2222
<SignAssembly>true</SignAssembly>
23-
<DelaySign>true</DelaySign>
2423
<KeyFile>$(SigningKeyPath)</KeyFile>
2524
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
2625
</PropertyGroup>

src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
</PropertyGroup>
3131
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
3232
<SignAssembly>true</SignAssembly>
33-
<DelaySign>true</DelaySign>
3433
<KeyFile>$(SigningKeyPath)</KeyFile>
3534
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
3635
</PropertyGroup>
36+
<PropertyGroup>
37+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFramework)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
38+
</PropertyGroup>
3739
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
3840
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
3941
</PropertyGroup>
@@ -868,7 +870,6 @@
868870
<PackageReference Include="System.Runtime.Caching" Version="$(SystemRuntimeCachingVersion)" />
869871
<PackageReference Condition="$(TargetGroup) == 'netstandard'" Include="System.Runtime.Loader" Version="$(SystemRuntimeLoaderVersion)" />
870872
<PackageReference Include="System.Security.Cryptography.Cng" Version="$(SystemSecurityCryptographyCngVersion)" />
871-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubVersion)" PrivateAssets="All" />
872873
</ItemGroup>
873874
<ItemGroup>
874875
<EmbeddedResource Update="Resources\Strings.resx">

src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</PropertyGroup>
1111
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
1212
<SignAssembly>true</SignAssembly>
13-
<DelaySign>true</DelaySign>
1413
<KeyFile>$(SigningKeyPath)</KeyFile>
1514
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
1615
</PropertyGroup>

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
</PropertyGroup>
6262
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
6363
<SignAssembly>true</SignAssembly>
64-
<DelaySign>true</DelaySign>
6564
<KeyFile>$(SigningKeyPath)</KeyFile>
6665
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
6766
</PropertyGroup>
@@ -591,7 +590,6 @@
591590
</COMReference>
592591
</ItemGroup>
593592
<ItemGroup>
594-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubVersion)" PrivateAssets="All" />
595593
<PackageReference Include="System.Text.Encodings.Web">
596594
<Version>$(SystemTextEncodingsWebVersion)</Version>
597595
</PackageReference>

tools/props/Versions.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
2828
<SystemIOVersion>4.3.0</SystemIOVersion>
2929
<SystemTextEncodingsWebVersion>4.7.2</SystemTextEncodingsWebVersion>
30-
<MicrosoftSourceLinkGitHubVersion>1.0.0</MicrosoftSourceLinkGitHubVersion>
3130
</PropertyGroup>
3231
<!-- NetCore project dependencies -->
3332
<PropertyGroup>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this
2+
file to you under the MIT license. -->
3+
<Project>
4+
5+
<!-- Opt-in switch to disable source link (i.e. for local builds). -->
6+
<PropertyGroup Condition="'$(DisableSourceLink)' == 'true'">
7+
<EnableSourceLink>false</EnableSourceLink>
8+
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
9+
<DeterministicSourcePaths>false</DeterministicSourcePaths>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<SourceRoot Include="$(RepoRoot)" />
14+
</ItemGroup>
15+
16+
<PropertyGroup>
17+
<_TranslateUrlPattern>https://[^/]+/ADO.Net/_git/([^/-]+)-(.+)</_TranslateUrlPattern>
18+
<_TranslateUrlReplacement>https://github.com/dotnet/SqlClient</_TranslateUrlReplacement>
19+
</PropertyGroup>
20+
21+
<Target Name="_TranslateAzureDevOpsUrlToGitHubUrl"
22+
Condition="'$(DisableSourceLinkTranslation)' == 'false'"
23+
DependsOnTargets="$(SourceControlManagerUrlTranslationTargets)"
24+
BeforeTargets="SourceControlManagerPublishTranslatedUrls">
25+
26+
<PropertyGroup>
27+
<ScmRepositoryUrl>$([System.Text.RegularExpressions.Regex]::Replace($(ScmRepositoryUrl), $(_TranslateUrlPattern), $(_TranslateUrlReplacement)))</ScmRepositoryUrl>
28+
</PropertyGroup>
29+
30+
<ItemGroup>
31+
<SourceRoot Update="@(SourceRoot)">
32+
</SourceRoot>
33+
<SourceRoot Update="@(SourceRoot)">
34+
<ScmRepositoryUrl>$([System.Text.RegularExpressions.Regex]::Replace(%(SourceRoot.ScmRepositoryUrl),
35+
$(_TranslateUrlPattern), $(_TranslateUrlReplacement)))</ScmRepositoryUrl>
36+
</SourceRoot>
37+
</ItemGroup>
38+
<Message Text="Final Translated ScmRepositoryUrl to $(ScmRepositoryUrl)" Importance="high" />
39+
</Target>
40+
</Project>

0 commit comments

Comments
 (0)