Skip to content

Commit ac46086

Browse files
committed
Stubbing out additional targets for build2.proj
1 parent fcafada commit ac46086

1 file changed

Lines changed: 52 additions & 8 deletions

File tree

build2.proj

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
<!-- specific version (eg, x86) is required. Otherwise, this defaults to using the -->
1212
<!-- dotnet binary in the PATH variable. The provided path should end with a `\` (or -->
1313
<!-- `/`) character. Eg. C:\x86\ -->
14-
<DotnetPath Condition="'$(DotnetPath)' == ''"></DotnetPath>
14+
<DotnetPath Condition="'$(DotnetPath)' == ''" />
1515
</PropertyGroup>
1616

1717
<!-- Imports ======================================================= -->
1818
<Import Project="src/Directory.Build.props" />
19-
20-
<!-- Microsoft.Data.SqlClient Build Targets ======================== -->
19+
20+
<!-- =============================================================== -->
21+
<!-- Microsoft.Data.SqlClient Build Targets -->
2122
<PropertyGroup>
2223
<MdsProjectPath>$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj</MdsProjectPath>
2324
</PropertyGroup>
@@ -33,8 +34,8 @@
3334
-p:Configuration=$(Configuration)
3435
-p:TargetOs=Unix
3536
</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>
3839
</PropertyGroup>
3940
<Message Text=">>> Building MDS for Unix via command: $(DotnetCommand)"/>
4041
<Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" />
@@ -48,10 +49,53 @@
4849
-p:Configuration=$(Configuration)
4950
-p:TargetOs=Windows_NT
5051
</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>
5354
</PropertyGroup>
54-
<Message Text=">>> Building MDS for Windows via command: $(DotnetCommand)"/>
55+
<Message Text=">>> Building MDS for Windows via command: $(DotnetCommand)" />
5556
<Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" />
5657
</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>
57101
</Project>

0 commit comments

Comments
 (0)