|
11 | 11 | <!-- specific version (eg, x86) is required. Otherwise, this defaults to using the --> |
12 | 12 | <!-- dotnet binary in the PATH variable. The provided path should end with a `\` (or --> |
13 | 13 | <!-- `/`) character. Eg. C:\x86\ --> |
14 | | - <DotnetPath Condition="'$(DotnetPath)' == ''"></DotnetPath> |
| 14 | + <DotnetPath Condition="'$(DotnetPath)' == ''" /> |
15 | 15 | </PropertyGroup> |
16 | 16 |
|
17 | 17 | <!-- Imports ======================================================= --> |
18 | 18 | <Import Project="src/Directory.Build.props" /> |
19 | | - |
20 | | - <!-- Microsoft.Data.SqlClient Build Targets ======================== --> |
| 19 | + |
| 20 | + <!-- =============================================================== --> |
| 21 | + <!-- Microsoft.Data.SqlClient Build Targets --> |
21 | 22 | <PropertyGroup> |
22 | 23 | <MdsProjectPath>$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj</MdsProjectPath> |
23 | 24 | </PropertyGroup> |
|
33 | 34 | -p:Configuration=$(Configuration) |
34 | 35 | -p:TargetOs=Unix |
35 | 36 | </DotnetCommand> |
36 | | - <!-- Convert more than one whitespace character into one space --> |
37 | | - <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> |
| 37 | + <!-- Convert more than one whitespace character into one space --> |
| 38 | + <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> |
38 | 39 | </PropertyGroup> |
39 | 40 | <Message Text=">>> Building MDS for Unix via command: $(DotnetCommand)"/> |
40 | 41 | <Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" /> |
|
48 | 49 | -p:Configuration=$(Configuration) |
49 | 50 | -p:TargetOs=Windows_NT |
50 | 51 | </DotnetCommand> |
51 | | - <!-- Convert more than one whitespace character into one space --> |
52 | | - <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> |
| 52 | + <!-- Convert more than one whitespace character into one space --> |
| 53 | + <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> |
53 | 54 | </PropertyGroup> |
54 | | - <Message Text=">>> Building MDS for Windows via command: $(DotnetCommand)"/> |
| 55 | + <Message Text=">>> Building MDS for Windows via command: $(DotnetCommand)" /> |
55 | 56 | <Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" /> |
56 | 57 | </Target> |
| 58 | + |
| 59 | + <!-- PackMds: Packages MDS binaries into a NuGet package --> |
| 60 | + <Target Name="PackMds"> |
| 61 | + <!-- @TODO --> |
| 62 | + </Target> |
| 63 | + |
| 64 | + <!-- TestMds: Runs all test projects for MDS --> |
| 65 | + <Target Name="TestMds" DependsOnTargets="TestMdsFunctional;TestMdsManual;TestMdsUnit" /> |
| 66 | + |
| 67 | + <!-- TestMdsFunctional: Runs functional tests for MDS --> |
| 68 | + <Target Name="TestMdsFunctional"> |
| 69 | + <!-- @TODO --> |
| 70 | + </Target> |
| 71 | + |
| 72 | + <!-- TestMdsManual: Runs manual tests for MDS --> |
| 73 | + <Target Name="TestMdsManual"> |
| 74 | + <!-- @TODO --> |
| 75 | + </Target> |
| 76 | + |
| 77 | + <!-- TestMdsUnit: Runs unit tests for MDS --> |
| 78 | + <Target Name="TestMdsUnit"> |
| 79 | + <!-- @TODO --> |
| 80 | + </Target> |
| 81 | + |
| 82 | + <!-- ================================================================= --> |
| 83 | + <!-- Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider Targets --> |
| 84 | + <PropertyGroup> |
| 85 | + <AkvProjectPath>$(RepoRoot)src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj</AkvProjectPath> |
| 86 | + </PropertyGroup> |
| 87 | + |
| 88 | + <!-- BuildAkv: Builds all binaries for AKV --> |
| 89 | + <Target Name="BuildAkv"> |
| 90 | + <PropertyGroup> |
| 91 | + <DotnetCommand> |
| 92 | + $(DotnetPath)dotnet build $(AkvProjectPath) |
| 93 | + -p:Configuration=$(Configuration) |
| 94 | + </DotnetCommand> |
| 95 | + <!-- Convert more than one whitespace character into one space --> |
| 96 | + <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> |
| 97 | + </PropertyGroup> |
| 98 | + <Message Text=">>> Building AKV provider via command: $(DotnetCommand)" /> |
| 99 | + <Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" /> |
| 100 | + </Target> |
57 | 101 | </Project> |
0 commit comments