@@ -22,12 +22,12 @@ Once the environment is setup properly, execute the desired set of commands belo
22
22
| ` BuildNetCore ` | Builds the .NET driver for all target frameworks.|
23
23
| ` BuildNetCoreAllOS ` | Builds the .NET driver for all target frameworks and operating systems.|
24
24
| ` BuildNetFx ` | Builds the .NET Framework driver for all target frameworks.|
25
- | ` BuildTests ` | Builds tests for the .NET and .NET Framework drivers.|
26
25
| ` BuildTestsNetCore ` | Builds tests for the .NET driver.|
27
26
| ` BuildTestsNetFx ` | Builds tests for the .NET Framework driver.|
28
27
| ` Clean ` | Cleans generated files.|
29
28
| ` Restore ` | Restores Nuget packages.|
30
- | ` RunTests ` | Runs the functional and manual tests for the .NET Framework and .NET drivers|
29
+ | ` RunTests ` | Runs the unit, functional, and manual tests for the .NET Framework and .NET drivers|
30
+ | ` RunUnitTests ` | Runs just the unit tests for the .NET Framework and .NET drivers|
31
31
| ` RunFunctionalTests ` | Runs just the functional tests for the .NET Framework and .NET drivers|
32
32
| ` RunManualTests ` | Runs just the manual tests for the .NET Framework and .NET drivers|
33
33
| ` BuildAkv ` | Builds the Azure Key Vault Provider package for all supported platforms.|
@@ -51,39 +51,35 @@ Using the default configuration and running all tests:
51
51
52
52
``` bash
53
53
msbuild
54
- msbuild -t:BuildTests
54
+ msbuild -t:BuildTestsNetFx -p:TF=net462
55
+ msbuild -t:BuildTestsNetCore
55
56
msbuild -t:RunTests
56
57
```
57
58
58
- Targeting .NET Framework (or any specific supported version):
59
-
60
- ``` bash
61
- msbuild -p:TF=net462
62
- msbuild -t:BuildTests -p:TF=net462
63
- msbuild -t:RunTests -p:TF=net462
64
- ```
65
-
66
59
Using the Release configuration:
67
60
68
61
``` bash
69
62
msbuild -p:configuration=Release
70
- msbuild -t:BuildTests -p:configuration=Release
63
+ msbuild -t:BuildTestsNetFx -p:TF=net462 -p:configuration=Release
64
+ msbuild -t:BuildTestsNetCore -p:configuration=Release
71
65
msbuild -t:RunTests -p:configuration=Release
72
66
```
73
67
74
- Running only the functional tests:
68
+ Running only the unit tests:
75
69
76
70
``` bash
77
71
msbuild
78
- msbuild -t:BuildTests
79
- msbuild -t:RunFunctionalTests
72
+ msbuild -t:BuildTestsNetFx -p:TF=net462
73
+ msbuild -t:BuildTestsNetCore
74
+ msbuild -t:RunUnitTests
80
75
```
81
76
82
77
Using a specific dotnet version/architecture:
83
78
84
79
``` bash
85
80
msbuild -p:configuration=Release
86
- msbuild -t:BuildTests -p:configuration=Release
81
+ msbuild -t:BuildTestsNetFx -p:TF=net462 -p:configuration=Release
82
+ msbuild -t:BuildTestsNetCore -p:configuration=Release
87
83
msbuild -t:RunTests -p:configuration=Release -p:DotnetPath=C:\n et8-win-x86\
88
84
```
89
85
@@ -224,10 +220,10 @@ msbuild -t:BuildTestsNetCore -p:ReferenceType=Package
224
220
For .NET Framework, below reference types are supported:
225
221
226
222
``` bash
227
- msbuild -t:BuildTestsNetFx -p:ReferenceType=Project
223
+ msbuild -t:BuildTestsNetFx -p:TF=net462 -p: ReferenceType=Project
228
224
# Default setting uses Project Reference.
229
225
230
- msbuild -t:BuildTestsNetFx -p:ReferenceType=Package
226
+ msbuild -t:BuildTestsNetFx -p:TF=net462 -p: ReferenceType=Package
231
227
```
232
228
233
229
### Running Tests with Reference Type
@@ -245,12 +241,12 @@ Tests can be built and run with custom Target Frameworks. See the below examples
245
241
### Building Tests with custom target framework
246
242
247
243
``` bash
248
- msbuild -t:BuildTestsNetFx -p:TargetNetFxVersion =net462
244
+ msbuild -t:BuildTestsNetFx -p:TF =net462
249
245
# Build the tests for custom .NET Framework target
250
246
```
251
247
252
248
``` bash
253
- msbuild -t:BuildTestsNetCore -p:TargetNetCoreVersion =net8.0
249
+ msbuild -t:BuildTestsNetCore -p:TF =net8.0
254
250
# Build the tests for custom .NET target
255
251
```
256
252
0 commit comments