Skip to content

Commit bf92fcd

Browse files
authored
Merge pull request #1375 from microsoft/dev/andarno/libtemplateUpdate
Merge latest Library.Template
2 parents 5b6584c + aed3cb0 commit bf92fcd

File tree

18 files changed

+121
-65
lines changed

18 files changed

+121
-65
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242

4343
- name: Deploy to GitHub Pages
4444
id: deployment
45-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
45+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

Directory.Packages.props

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<PropertyGroup>
55
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
66
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
7+
<MicrosoftTestingPlatformVersion>2.0.2</MicrosoftTestingPlatformVersion>
78
<MessagePackVersion>2.5.198</MessagePackVersion>
89
<MicroBuildVersion>2.0.208</MicroBuildVersion>
910
<RoslynVersion>4.14.0</RoslynVersion>
@@ -48,16 +49,13 @@
4849
<PackageVersion Update="System.IO.Pipelines" Version="9.0.0" />
4950
<PackageVersion Update="System.Reflection.Metadata" Version="9.0.0" />
5051
</ItemGroup>
51-
<ItemGroup Condition="'$(IsBenchmarksProject)'=='true' or '$(MSBuildProjectName)'=='BenchmarkDotNet.Autogenerated' or '$(IsTestProject)'=='true'">
52-
<PackageVersion Update="System.Collections.Immutable" Version="9.0.0" />
53-
<PackageVersion Update="System.IO.Pipelines" Version="9.0.0" />
54-
<PackageVersion Update="System.Reflection.Metadata" Version="9.0.0" />
55-
</ItemGroup>
5652
<ItemGroup Label="Library.Template">
57-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
53+
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0" />
54+
<PackageVersion Include="Microsoft.Testing.Extensions.CrashDump" Version="$(MicrosoftTestingPlatformVersion)" />
55+
<PackageVersion Include="Microsoft.Testing.Extensions.HangDump" Version="$(MicrosoftTestingPlatformVersion)" />
56+
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="$(MicrosoftTestingPlatformVersion)" />
5857
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
59-
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
60-
<PackageVersion Include="xunit.v3" Version="3.2.1" />
58+
<PackageVersion Include="xunit.v3.mtp-v2" Version="3.2.1" />
6159
</ItemGroup>
6260
<ItemGroup>
6361
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(CodeAnalysisAnalyzerVersion)" />

azure-pipelines/Merge-CodeCoverage.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ try {
2828
if ($reports) {
2929
$reports |% { $_.FullName } |% {
3030
# In addition to replacing {reporoot}, we also normalize on one kind of slash so that the report aggregates data for a file whether data was collected on Windows or not.
31+
Write-Verbose "Processing $_"
3132
$xml = [xml](Get-Content -LiteralPath $_)
3233
$xml.coverage.packages.package.classes.class |? { $_.filename} |% {
3334
$_.filename = $_.filename.Replace('{reporoot}', $RepoRoot).Replace([IO.Path]::AltDirectorySeparatorChar, [IO.Path]::DirectorySeparatorChar)

azure-pipelines/dotnet.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,17 @@ steps:
2020
displayName: 🧪 dotnet test
2121
condition: and(succeeded(), ${{ parameters.RunTests }})
2222

23-
- task: DotNetCoreCLI@2
23+
- powershell: tools/dotnet-test-cloud.ps1 -Configuration $(BuildConfiguration) -Agent $(Agent.JobName) -PublishResults -netfxOnly -logIsolationName EventSource-throw
2424
displayName: 🧪 dotnet test -f net472 (+EventSource throw)
25-
inputs:
26-
command: test
27-
arguments: --no-build -c $(BuildConfiguration) -f net472 --filter "TestCategory!=FailsInCloudTest$(FailsOnMonoFilter)" -v n /p:CollectCoverage=true /bl:"$(Build.ArtifactStagingDirectory)/build_logs/test_net472_etw.binlog" --diag "$(Build.ArtifactStagingDirectory)/test_logs/net472_etw.txt"
28-
testRunTitle: streamjsonrpc.tests-etw (net472, $(Agent.JobName))
2925
env:
3026
StreamJsonRpc_TestWithEventSource: 1 # allow exceptions from EventSource to propagate
31-
condition: and(succeeded(), ne(variables['OptProf'], 'true'), eq(variables['Agent.OS'], 'Windows_NT'))
27+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
3228

33-
- task: DotNetCoreCLI@2
29+
- powershell: tools/dotnet-test-cloud.ps1 -Configuration $(BuildConfiguration) -Agent $(Agent.JobName) -PublishResults -netfxOnly -logIsolationName EventSource-production
3430
displayName: 🧪 dotnet test -f net472 (+EventSource production)
35-
inputs:
36-
command: test
37-
arguments: --no-build -c $(BuildConfiguration) -f net472 --filter "TestCategory!=FailsInCloudTest$(FailsOnMonoFilter)" -v n /p:CollectCoverage=true /bl:"$(Build.ArtifactStagingDirectory)/build_logs/test_net472_etw.binlog" --diag "$(Build.ArtifactStagingDirectory)/test_logs/net472_etw.txt"
38-
testRunTitle: streamjsonrpc.tests-etw (net472, $(Agent.JobName))
3931
env:
4032
StreamJsonRpc_TestWithEventSource: 2 # swallow exceptions from EventSource, as is done in production
41-
condition: and(succeeded(), ne(variables['OptProf'], 'true'), eq(variables['Agent.OS'], 'Windows_NT'))
33+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
4234

4335
- powershell: tools/variables/_define.ps1
4436
failOnStderr: true

global.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"sdk": {
3-
"version": "10.0.100",
3+
"version": "10.0.101",
44
"rollForward": "patch",
55
"allowPrerelease": false
66
},
7+
"test": {
8+
"runner": "Microsoft.Testing.Platform"
9+
},
710
"msbuild-sdks": {
811
"Microsoft.Build.NoTargets": "3.7.134",
912
"Microsoft.Build.Traversal": "4.1.82"

test/Benchmarks/Benchmarks.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFrameworks>net8.0;net472</TargetFrameworks>
6+
<IsTestProject>false</IsTestProject>
67
<IsBenchmarksProject>true</IsBenchmarksProject>
78
</PropertyGroup>
89

test/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<PropertyGroup>
66
<IsPackable>false</IsPackable>
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
8+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
89
</PropertyGroup>
910

1011
<ItemGroup>

test/Directory.Build.targets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
3+
<ItemGroup Condition="'$(IsTestProject)' != 'false'">
4+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
5+
<PackageReference Include="Microsoft.Testing.Extensions.CrashDump" />
6+
<PackageReference Include="Microsoft.Testing.Extensions.HangDump" />
7+
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" />
8+
</ItemGroup>
39
<ItemGroup>
410
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" Condition="Exists('xunit.runner.json')" />
511
</ItemGroup>

test/Directory.Packages.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="$([MSBuild]::GetPathOfFileAbove($(MSBuildThisFile), $(MSBuildThisFileDirectory)..))" />
4+
5+
<ItemGroup>
6+
<PackageVersion Update="System.Collections.Immutable" Version="9.0.0" />
7+
<PackageVersion Update="System.IO.Pipelines" Version="9.0.0" />
8+
<PackageVersion Update="System.Reflection.Metadata" Version="9.0.0" />
9+
</ItemGroup>
10+
</Project>

test/NativeAOTCompatibility.Test/NativeAOTCompatibility.Test.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<TrimmerSingleWarn>false</TrimmerSingleWarn>
77
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
88
<EnableStreamJsonRpcInterceptors>true</EnableStreamJsonRpcInterceptors>
9+
<IsTestProject>false</IsTestProject>
910
</PropertyGroup>
1011

1112
<ItemGroup>

0 commit comments

Comments
 (0)