Skip to content

Commit 9dc8654

Browse files
CopilotrainersigwaldJanProvaznik
authored
Update .NET SDK to 9.0.300 (#11887)
* Initial plan for issue * Update .NET SDK to 9.0.300 Co-authored-by: rainersigwald <[email protected]> * Remove explicit SDK version from global.json Co-authored-by: rainersigwald <[email protected]> * Suppress IDE0350 warning This is contentious--the untyped lambdas can be harder to read and for LLMs to work with so let's not enforce it. * Remove unused ConcurrentDictionary.AcquireAllLocks * Switch to scouting queue to get newer VS bits * Update .NET SDK version to 9.0.301 Co-authored-by: JanProvaznik <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: rainersigwald <[email protected]> Co-authored-by: Rainer Sigwald <[email protected]> Co-authored-by: JanProvaznik <[email protected]>
1 parent 2b01314 commit 9dc8654

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@ dotnet_diagnostic.IDE0073.severity = error
428428
# Use 'System.Threading.Lock'
429429
dotnet_diagnostic.IDE0330.severity = suggestion
430430

431+
# Use implicitly typed lambda
432+
dotnet_diagnostic.IDE0350.severity = none
433+
431434
# Value types are incompatible with null values. https://xunit.net/xunit.analyzers/rules/xUnit1012
432435
dotnet_diagnostic.xUnit1012.severity = warning
433436

.vsts-dotnet-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
pool:
219219
${{ if eq(variables['System.TeamProject'], 'public') }}:
220220
name: NetCore-Public
221-
demands: ImageOverride -equals windows.vs2022preview.amd64.open
221+
demands: ImageOverride -equals windows.vs2022preview.scout.amd64.open
222222
${{ if ne(variables['System.TeamProject'], 'public') }}:
223223
name: VSEngSS-MicroBuild2022-1ES
224224
demands: agent.os -equals Windows_NT

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"errorMessage": "The .NET SDK could not be found, please run a command-line build with ./build.cmd."
66
},
77
"tools": {
8-
"dotnet": "9.0.106",
8+
"dotnet": "9.0.301",
99
"vs": {
1010
"version": "17.12.0"
1111
},

src/MSBuildTaskHost/Concurrent/ConcurrentDictionary.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -471,22 +471,6 @@ private static void GetBucketAndLockNo(int hashcode, out int bucketNo, out int l
471471
Debug.Assert(lockNo >= 0 && lockNo < lockCount);
472472
}
473473

474-
/// <summary>
475-
/// Acquires all locks for this hash table, and increments locksAcquired by the number
476-
/// of locks that were successfully acquired. The locks are acquired in an increasing
477-
/// order.
478-
/// </summary>
479-
private void AcquireAllLocks(ref int locksAcquired)
480-
{
481-
// First, acquire lock 0
482-
AcquireLocks(0, 1, ref locksAcquired);
483-
484-
// Now that we have lock 0, the _locks array will not change (i.e., grow),
485-
// and so we can safely read _locks.Length.
486-
AcquireLocks(1, _tables._locks.Length, ref locksAcquired);
487-
Debug.Assert(locksAcquired == _tables._locks.Length);
488-
}
489-
490474
/// <summary>
491475
/// Acquires a contiguous range of locks for this hash table, and increments locksAcquired
492476
/// by the number of locks that were successfully acquired. The locks are acquired in an

0 commit comments

Comments
 (0)