Skip to content

Commit f2634c1

Browse files
committed
Merge branch 'main' into dev/ygerges/MSTest.Assert.Extensions
2 parents 32f0d83 + b365c76 commit f2634c1

File tree

127 files changed

+2034
-1011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+2034
-1011
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "dotnet-sdk"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "wednesday"
8+
ignore:
9+
- dependency-name: "*"
10+
update-types:
11+
- "version-update:semver-major"
12+
- "version-update:semver-minor"

Directory.Build.props

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@
1515
</PropertyGroup>
1616

1717
<PropertyGroup>
18-
<!--
19-
This version is read by vsts-prebuild.ps1 and is a base for the current version, this should be updated at the start of
20-
new iteration to the goal number. This is also used to version the local packages. This version needs to be statically
21-
readable when we read the file as xml, don't move it to a .props file, unless you change the build server process
22-
-->
23-
<TPVersionPrefix>17.10.0</TPVersionPrefix>
24-
<!--
25-
Versioning is defined from the build script. Use a default dev build if it's not defined.
26-
Sets the AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion
27-
-->
28-
<Version Condition="'$(Version)' == ''">$(TPVersionPrefix)-dev</Version>
2918
<!-- Override the AssemblyVersion as 15.0.0 since protocol depends on this version for serialization. This is also defined in build script. -->
3019
<AssemblyVersion Condition="'$(AssemblyVersion)' == ''">15.0.0</AssemblyVersion>
3120
<!-- Auto generating binding redirects breaks testhost when running under net8.0 vstest.console as .NET Framework net462. -->
@@ -147,6 +136,8 @@
147136
<TestRunnerName>MSTest</TestRunnerName>
148137
<!-- Skip windows only tests on non-windows systems. -->
149138
<TestRunnerAdditionalArguments Condition=" '$(OS)' != 'Windows_NT' ">$(TestRunnerAdditionalArguments) --filter "TestCategory!=Windows&amp;TestCategory!=Windows-Review"</TestRunnerAdditionalArguments>
139+
<!-- Do not capture test output on CI to help community see errors -->
140+
<TestCaptureOutput Condition=" '$(ContinuousIntegrationBuild)' == 'true' ">false</TestCaptureOutput>
150141
</PropertyGroup>
151142

152143
</Project>

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ stages:
112112
-nobl
113113
-integrationTest
114114
-performanceTest
115+
/bl:$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Test.binlog
115116
name: Test
116117
displayName: Test
117118

docs/contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ default, `Debug` configuration is run.
147147
If you want to run a particular test. Eg: Test Name that contains Blame in Acceptance test
148148

149149
```shell
150-
> test.cmd -p accept -f net451 -filter blame
150+
> .\test.cmd -bl -c release /p:TestRunnerAdditionalArguments="'--filter Blame'" -Integration
151151
```
152152

153153
## Deployment

dotnet.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[dotnet.test.runner]
2+
name = "Microsoft.Testing.Platform"

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<Dependencies>
33
<Source Uri="https://github.com/dotnet/dotnet" Mapping="vstest" Sha="9bcfe617e4f615d6931e2eec47767c3f15116d1d" BarId="272322" />
44
<ProductDependencies>
5-
<Dependency Name="Microsoft.Internal.CodeCoverage" Version="17.15.0-preview.25327.4">
5+
<Dependency Name="Microsoft.Internal.CodeCoverage" Version="17.15.0-preview.25354.5">
66
<Uri>https://dev.azure.com/devdiv/DevDiv/_git/vs-code-coverage</Uri>
7-
<Sha>90b433bee335be4224f0e2b5106027181b4af52b</Sha>
7+
<Sha>b3c8a0e7de26919a4efd2a347133522dca5b8ee6</Sha>
88
</Dependency>
99
<Dependency Name="Microsoft.Diagnostics.NETCore.Client" Version="0.2.631904">
1010
<Uri>https://github.com/dotnet/dotnet</Uri>
@@ -27,9 +27,9 @@
2727
</Dependency>
2828
</ProductDependencies>
2929
<ToolsetDependencies>
30-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.25302.2">
30+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25358.3">
3131
<Uri>https://github.com/dotnet/arcade</Uri>
32-
<Sha>0d52a8b262d35fa2fde84e398cb2e791b8454bd2</Sha>
32+
<Sha>4e526204e83e615efe8eb5743be7fbccfa4e492a</Sha>
3333
</Dependency>
3434
<Dependency Name="Microsoft.DiaSymReader.Pdb2Pdb" Version="1.1.0-beta2-19575-01">
3535
<Uri>https://github.com/dotnet/symreader-converter</Uri>

eng/Versions.props

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from appending +<commitId>, which breaks DTAAgent.
1414
-->
1515
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
16-
<VersionPrefix>17.15.0</VersionPrefix>
16+
<VersionPrefix>18.0.0</VersionPrefix>
1717
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
1818
</PropertyGroup>
1919
<PropertyGroup Label="Arcade settings">
@@ -52,12 +52,12 @@
5252
<MicrosoftExtensionsDependencyModelPackageVersion>6.0.2</MicrosoftExtensionsDependencyModelPackageVersion>
5353
<MicrosoftExtensionsFileSystemGlobbingVersion>6.0.0</MicrosoftExtensionsFileSystemGlobbingVersion>
5454
<MicrosoftFakesVersion>17.12.0</MicrosoftFakesVersion>
55-
<MicrosoftInternalCodeCoverageVersion>17.15.0-preview.25327.4</MicrosoftInternalCodeCoverageVersion>
55+
<MicrosoftInternalCodeCoverageVersion>17.15.0-preview.25354.5</MicrosoftInternalCodeCoverageVersion>
5656
<!--
5757
Make sure you are taking a version from a release branch (rel/d*) in VS. Otherwise there won't be symbols for the dlls in package,
5858
a and it will create a symcheck bug on re-insertion into VS.
5959
-->
60-
<MicrosoftVisualStudioDiagnosticsUtilitiesVersion>17.13.35723.115</MicrosoftVisualStudioDiagnosticsUtilitiesVersion>
60+
<MicrosoftVisualStudioDiagnosticsUtilitiesVersion>18.0.0-preview-1-10811-208</MicrosoftVisualStudioDiagnosticsUtilitiesVersion>
6161
<MicrosoftVisualStudioEnterpriseAspNetHelper>$(MicrosoftVisualStudioDiagnosticsUtilitiesVersion)</MicrosoftVisualStudioEnterpriseAspNetHelper>
6262
<MicrosoftVisualStudioInteropVersion>17.13.39960</MicrosoftVisualStudioInteropVersion>
6363
<MicrosoftVSTelemetryVersion>17.13.24</MicrosoftVSTelemetryVersion>
@@ -69,15 +69,17 @@
6969
<SystemComponentModelCompositionVersion>8.0.0</SystemComponentModelCompositionVersion>
7070
<SystemMemoryVersion>4.5.5</SystemMemoryVersion>
7171
<SystemReflectionMetadataVersion>8.0.0</SystemReflectionMetadataVersion>
72-
<TestPlatformExternalsVersion>17.10.0-preview-2-34602-162</TestPlatformExternalsVersion>
73-
<MicrosoftInternalTestPlatformExtensions>17.10.0-preview-2-34602-162</MicrosoftInternalTestPlatformExtensions>
72+
<!-- <TestPlatformExternalsVersion>18.0.0-preview-1-10804-064</TestPlatformExternalsVersion> -->
73+
<TestPlatformExternalsVersion>18.0.0-preview-1-10811-208</TestPlatformExternalsVersion>
74+
<MicrosoftInternalTestPlatformExtensions>18.0.0-preview-1-10811-208</MicrosoftInternalTestPlatformExtensions>
7475
<TestPlatformMSDiaVersion>17.12.35519.223</TestPlatformMSDiaVersion>
7576
<SystemSecurityPrincipalWindowsVersion>5.0.0</SystemSecurityPrincipalWindowsVersion>
7677
<SystemRuntimeCompilerServicesUnsafeVersion>6.1.0</SystemRuntimeCompilerServicesUnsafeVersion>
7778
</PropertyGroup>
7879
<PropertyGroup Label="VSTest test settings">
7980
<!-- Name of the elements must be in sync with test\Microsoft.TestPlatform.TestUtilities\IntegrationTestBase.cs -->
8081
<AwesomeAssertionsVersion>8.1.0</AwesomeAssertionsVersion>
82+
<MicrosoftTestingPlatformVersion>1.7.2</MicrosoftTestingPlatformVersion>
8183
<MoqVersion>4.16.1</MoqVersion>
8284
<!-- For coverage use our own package on latest stable -->
8385
<MicrosoftCodeCoverageVersion>17.9.0</MicrosoftCodeCoverageVersion>

eng/common/CIBuild.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"
2+
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"

eng/common/build.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Param(
77
[string] $msbuildEngine = $null,
88
[bool] $warnAsError = $true,
99
[bool] $nodeReuse = $true,
10+
[switch] $buildCheck = $false,
1011
[switch][Alias('r')]$restore,
1112
[switch] $deployDeps,
1213
[switch][Alias('b')]$build,
@@ -20,6 +21,7 @@ Param(
2021
[switch] $publish,
2122
[switch] $clean,
2223
[switch][Alias('pb')]$productBuild,
24+
[switch]$fromVMR,
2325
[switch][Alias('bl')]$binaryLog,
2426
[switch][Alias('nobl')]$excludeCIBinarylog,
2527
[switch] $ci,
@@ -71,6 +73,9 @@ function Print-Usage() {
7173
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
7274
Write-Host " -excludePrereleaseVS Set to exclude build engines in prerelease versions of Visual Studio"
7375
Write-Host " -nativeToolsOnMachine Sets the native tools on machine environment variable (indicating that the script should use native tools on machine)"
76+
Write-Host " -nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
77+
Write-Host " -buildCheck Sets /check msbuild parameter"
78+
Write-Host " -fromVMR Set when building from within the VMR"
7479
Write-Host ""
7580

7681
Write-Host "Command line arguments not listed above are passed thru to msbuild."
@@ -97,6 +102,7 @@ function Build {
97102

98103
$bl = if ($binaryLog) { '/bl:' + (Join-Path $LogDir 'Build.binlog') } else { '' }
99104
$platformArg = if ($platform) { "/p:Platform=$platform" } else { '' }
105+
$check = if ($buildCheck) { '/check' } else { '' }
100106

101107
if ($projects) {
102108
# Re-assign properties to a new variable because PowerShell doesn't let us append properties directly for unclear reasons.
@@ -113,6 +119,7 @@ function Build {
113119
MSBuild $toolsetBuildProj `
114120
$bl `
115121
$platformArg `
122+
$check `
116123
/p:Configuration=$configuration `
117124
/p:RepoRoot=$RepoRoot `
118125
/p:Restore=$restore `
@@ -122,11 +129,13 @@ function Build {
122129
/p:Deploy=$deploy `
123130
/p:Test=$test `
124131
/p:Pack=$pack `
125-
/p:DotNetBuildRepo=$productBuild `
132+
/p:DotNetBuild=$productBuild `
133+
/p:DotNetBuildFromVMR=$fromVMR `
126134
/p:IntegrationTest=$integrationTest `
127135
/p:PerformanceTest=$performanceTest `
128136
/p:Sign=$sign `
129137
/p:Publish=$publish `
138+
/p:RestoreStaticGraphEnableBinaryLogger=$binaryLog `
130139
@properties
131140
}
132141

eng/common/build.sh

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ usage()
4242
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
4343
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
4444
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
45+
echo " --buildCheck <value> Sets /check msbuild parameter"
46+
echo " --fromVMR Set when building from within the VMR"
4547
echo ""
4648
echo "Command line arguments not listed above are passed thru to msbuild."
4749
echo "Arguments can also be passed in with a single hyphen."
@@ -63,6 +65,7 @@ restore=false
6365
build=false
6466
source_build=false
6567
product_build=false
68+
from_vmr=false
6669
rebuild=false
6770
test=false
6871
integration_test=false
@@ -76,6 +79,7 @@ clean=false
7679

7780
warn_as_error=true
7881
node_reuse=true
82+
build_check=false
7983
binary_log=false
8084
exclude_ci_binary_log=false
8185
pipelines_log=false
@@ -87,7 +91,7 @@ verbosity='minimal'
8791
runtime_source_feed=''
8892
runtime_source_feed_key=''
8993

90-
properties=''
94+
properties=()
9195
while [[ $# > 0 ]]; do
9296
opt="$(echo "${1/#--/-}" | tr "[:upper:]" "[:lower:]")"
9397
case "$opt" in
@@ -127,19 +131,22 @@ while [[ $# > 0 ]]; do
127131
-pack)
128132
pack=true
129133
;;
130-
-sourcebuild|-sb)
134+
-sourcebuild|-source-build|-sb)
131135
build=true
132136
source_build=true
133137
product_build=true
134138
restore=true
135139
pack=true
136140
;;
137-
-productBuild|-pb)
141+
-productbuild|-product-build|-pb)
138142
build=true
139143
product_build=true
140144
restore=true
141145
pack=true
142146
;;
147+
-fromvmr|-from-vmr)
148+
from_vmr=true
149+
;;
143150
-test|-t)
144151
test=true
145152
;;
@@ -173,6 +180,9 @@ while [[ $# > 0 ]]; do
173180
node_reuse=$2
174181
shift
175182
;;
183+
-buildcheck)
184+
build_check=true
185+
;;
176186
-runtimesourcefeed)
177187
runtime_source_feed=$2
178188
shift
@@ -182,7 +192,7 @@ while [[ $# > 0 ]]; do
182192
shift
183193
;;
184194
*)
185-
properties="$properties $1"
195+
properties+=("$1")
186196
;;
187197
esac
188198

@@ -216,31 +226,38 @@ function Build {
216226
InitializeCustomToolset
217227

218228
if [[ ! -z "$projects" ]]; then
219-
properties="$properties /p:Projects=$projects"
229+
properties+=("/p:Projects=$projects")
220230
fi
221231

222232
local bl=""
223233
if [[ "$binary_log" == true ]]; then
224234
bl="/bl:\"$log_dir/Build.binlog\""
225235
fi
226236

237+
local check=""
238+
if [[ "$build_check" == true ]]; then
239+
check="/check"
240+
fi
241+
227242
MSBuild $_InitializeToolset \
228243
$bl \
244+
$check \
229245
/p:Configuration=$configuration \
230246
/p:RepoRoot="$repo_root" \
231247
/p:Restore=$restore \
232248
/p:Build=$build \
233-
/p:DotNetBuildRepo=$product_build \
234-
/p:ArcadeBuildFromSource=$source_build \
249+
/p:DotNetBuild=$product_build \
235250
/p:DotNetBuildSourceOnly=$source_build \
251+
/p:DotNetBuildFromVMR=$from_vmr \
236252
/p:Rebuild=$rebuild \
237253
/p:Test=$test \
238254
/p:Pack=$pack \
239255
/p:IntegrationTest=$integration_test \
240256
/p:PerformanceTest=$performance_test \
241257
/p:Sign=$sign \
242258
/p:Publish=$publish \
243-
$properties
259+
/p:RestoreStaticGraphEnableBinaryLogger=$binary_log \
260+
${properties[@]+"${properties[@]}"}
244261

245262
ExitWithExitCode 0
246263
}

0 commit comments

Comments
 (0)