Skip to content

Commit 53c5d48

Browse files
authored
Update to 6.0 SDK and use included dotnet-format (#2371)
1 parent c90ed0a commit 53c5d48

Some content is hidden

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

41 files changed

+95
-145
lines changed

.config/dotnet-tools.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ dotnet_diagnostic.CA2201.severity = none
135135
# Analyzer crashes with https://github.com/dotnet/roslyn-analyzers/issues/5450
136136
dotnet_diagnostic.CA2252.severity = none
137137

138+
[src/linker/ref/**/*.cs]
139+
140+
# CA1822: Mark members as static
141+
dotnet_diagnostic.CA1822.severity = none
142+
138143
[external**]
139144
dotnet_analyzer_diagnostic.severity = none
140145
generated_code = true

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tools": {
3-
"dotnet": "6.0.100-rc.1.21430.12"
3+
"dotnet": "6.0.100"
44
},
55
"msbuild-sdks": {
66
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21559.3",

lint.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
@echo off
2-
powershell -ExecutionPolicy ByPass -NoProfile -command "Set-Location %~dp0; & """%~dp0eng\dotnet.ps1""" ""tool restore"""
3-
powershell -ExecutionPolicy ByPass -NoProfile -command "Set-Location %~dp0; & """%~dp0eng\dotnet.ps1""" ""tool run dotnet-format -- illink.sln --fix-whitespace --exclude src/analyzer src/tuner external %*"""
2+
powershell -ExecutionPolicy ByPass -NoProfile -command "Set-Location %~dp0; & """%~dp0eng\dotnet.ps1""" ""format illink.sln --exclude src/analyzer src/tuner external %*"""

lint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ while [[ -h $source ]]; do
1313
done
1414

1515
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
16-
"$scriptroot/eng/dotnet.sh" tool restore
17-
"$scriptroot/eng/dotnet.sh" tool run dotnet-format -- illink.sln --fix-whitespace --exclude src/analyzer src/tuner external $@
16+
"$scriptroot/eng/dotnet.sh" format illink.sln --exclude src/analyzer src/tuner external $@

src/ILLink.Shared/DiagnosticString.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace ILLink.Shared
1+
namespace ILLink.Shared
42
{
53
public readonly struct DiagnosticString
64
{

src/linker/Linker.Steps/BaseSubStep.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using System.Diagnostics;
65
using Mono.Cecil;
76

src/linker/Linker.Steps/DiscoverCustomOperatorsHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Diagnostics;
76
using Mono.Cecil;

src/linker/Linker.Steps/DiscoverSerializationHandler.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.Collections.Generic;
65
using System.Diagnostics;
7-
using System.Linq;
86
using Mono.Cecil;
9-
using Mono.Linker.Dataflow;
10-
using Mono.Linker.Steps;
117

128
namespace Mono.Linker.Steps
139
{

src/linker/Linker.Steps/MarkSubStepsDispatcher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Diagnostics;
76

0 commit comments

Comments
 (0)