|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | | - <!-- Build Parameters ============================================== --> |
| 3 | + <!-- =============================================================== --> |
| 4 | + <!-- Build Parameters --> |
4 | 5 | <PropertyGroup> |
5 | 6 | <!-- Configuration: Which build configuration to build --> |
6 | 7 | <!-- Allowed values: Debug, Release --> |
|
11 | 12 | <!-- specific version (eg, x86) is required. Otherwise, this defaults to using the --> |
12 | 13 | <!-- dotnet binary in the PATH variable. The provided path should end with a `\` (or --> |
13 | 14 | <!-- `/`) character. Eg. C:\x86\ --> |
14 | | - <DotnetPath Condition="'$(DotnetPath)' == ''"></DotnetPath> |
| 15 | + <DotnetPath Condition="'$(DotnetPath)' == ''" /> |
15 | 16 | </PropertyGroup> |
16 | 17 |
|
17 | | - <!-- Imports ======================================================= --> |
| 18 | + <!-- =============================================================== --> |
| 19 | + <!-- Imports --> |
18 | 20 | <Import Project="src/Directory.Build.props" /> |
19 | 21 |
|
20 | | - <!-- Microsoft.Data.SqlClient Build Targets ======================== --> |
| 22 | + <!-- =============================================================== --> |
| 23 | + <!-- Microsoft.Data.SqlClient Build Targets --> |
21 | 24 | <PropertyGroup> |
22 | 25 | <MdsProjectPath>$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj</MdsProjectPath> |
23 | 26 | </PropertyGroup> |
|
54 | 57 | <Message Text=">>> Building MDS for Windows via command: $(DotnetCommand)"/> |
55 | 58 | <Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" /> |
56 | 59 | </Target> |
| 60 | + |
| 61 | + <!-- =============================================================== --> |
| 62 | + <!-- Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider targets --> |
| 63 | + <PropertyGroup> |
| 64 | + <AkvProjectPath>$(RepoRoot)src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj</AkvProjectPath> |
| 65 | + </PropertyGroup> |
| 66 | + |
| 67 | + <Target Name="BuildAkv"> |
| 68 | + <PropertyGroup> |
| 69 | + <DotnetCommand> |
| 70 | + $(DotnetPath)dotnet build $(AkvProjectPath) |
| 71 | + -p:Configuration=$(Configuration) |
| 72 | + </DotnetCommand> |
| 73 | + <!-- Convert more than one whitespace character into one space --> |
| 74 | + <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> |
| 75 | + </PropertyGroup> |
| 76 | + <Message Text=">>> Building AKV via command: $(DotnetCommand)" /> |
| 77 | + <Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" /> |
| 78 | + </Target> |
| 79 | + |
57 | 80 | </Project> |
0 commit comments