Skip to content

Commit f242967

Browse files
authored
Merge pull request #56225 from dotnet/merges/main-to-main-vs-deps
Merge main to main-vs-deps
2 parents 2bdcc01 + 2fb8106 commit f242967

File tree

84 files changed

+1122
-860
lines changed

Some content is hidden

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

84 files changed

+1122
-860
lines changed

docs/compilers/CSharp/readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Breaking changes (newest release on top):
2+
3+
- [.NET 6 and Visual Studio 2022](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20DotNet%206.md)
4+
- [Minor releases following .NET 5 and Visual Studio 2019 version 16.9](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20post%20DotNet%205.md)
5+
- [.NET 5 and Visual Studio 2019 version 16.9](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20DotNet%205.md)
6+
- [Minor releases following Visual Studio 2019 version 16.0](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20post%20VS2019.md)
7+
- [Visual Studio 2019 version 16.0](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20VS2019.md)
8+
- [Minor releases following Visual Studio 2017 version 15.0](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20post%20VS2017.md)
9+
- [Visual Studio 2017 version 15.0](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20VS2017.md)
10+
- [Visual Studio 2015 version 14.0](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20VS2015.md)

eng/Versions.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<BasicUndoVersion>0.9.3</BasicUndoVersion>
5353
<BasicReferenceAssembliesNetStandard20Version>1.2.1</BasicReferenceAssembliesNetStandard20Version>
5454
<BasicReferenceAssembliesNet50Version>1.2.1</BasicReferenceAssembliesNet50Version>
55+
<BasicReferenceAssembliesNet60Version>1.2.2</BasicReferenceAssembliesNet60Version>
5556
<BenchmarkDotNetVersion>0.13.0</BenchmarkDotNetVersion>
5657
<BenchmarkDotNetDiagnosticsWindowsVersion>0.13.0</BenchmarkDotNetDiagnosticsWindowsVersion>
5758
<DiffPlexVersion>1.4.4</DiffPlexVersion>

src/Compilers/CSharp/Portable/Symbols/AssemblySymbol.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,7 @@ internal bool RuntimeSupportsDefaultInterfaceImplementation
436436
/// </summary>
437437
internal bool RuntimeSupportsStaticAbstractMembersInInterfaces
438438
{
439-
// https://github.com/dotnet/roslyn/issues/53800: Implement the actual check, this is a temporary stub.
440-
get => RuntimeSupportsDefaultInterfaceImplementation;
439+
get => RuntimeSupportsFeature(SpecialMember.System_Runtime_CompilerServices_RuntimeFeature__VirtualStaticsInInterfaces);
441440
}
442441

443442
private bool RuntimeSupportsFeature(SpecialMember feature)

src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10100,7 +10100,7 @@ public static void Main()
1010010100
}
1010110101
}
1010210102
";
10103-
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp);
10103+
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net60);
1010410104
comp.VerifyEmitDiagnostics();
1010510105
}
1010610106

src/Compilers/CSharp/Test/Symbol/Symbols/DefaultInterfaceImplementationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7003,7 +7003,7 @@ class Test2 : I1
70037003
";
70047004
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll,
70057005
parseOptions: TestOptions.Regular9,
7006-
targetFramework: TargetFramework.NetCoreApp);
7006+
targetFramework: TargetFramework.Net60);
70077007

70087008
compilation1.VerifyDiagnostics(
70097009
// (10,24): error CS8703: The modifier 'sealed' is not valid for this item in C# 9.0. Please use language version 'preview' or greater.
@@ -12210,7 +12210,7 @@ class Test2 : I1
1221012210
";
1221112211
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll,
1221212212
parseOptions: TestOptions.Regular9,
12213-
targetFramework: TargetFramework.NetCoreApp);
12213+
targetFramework: TargetFramework.Net60);
1221412214

1221512215
compilation1.VerifyDiagnostics(
1221612216
// (4,25): error CS8703: The modifier 'abstract' is not valid for this item in C# 9.0. Please use language version 'preview' or greater.
@@ -25379,7 +25379,7 @@ class Test2 : I1
2537925379
";
2538025380
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll,
2538125381
parseOptions: TestOptions.Regular9,
25382-
targetFramework: TargetFramework.NetCoreApp);
25382+
targetFramework: TargetFramework.Net60);
2538325383

2538425384
compilation1.VerifyDiagnostics(
2538525385
// (8,46): error CS0073: An add or remove accessor must have a body

src/Compilers/CSharp/Test/Symbol/Symbols/MissingSpecialMember.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ public void AllSpecialTypeMembers()
542542
var symbol = comp.GetSpecialTypeMember(special);
543543
if (special == SpecialMember.System_Runtime_CompilerServices_RuntimeFeature__DefaultImplementationsOfInterfaces
544544
|| special == SpecialMember.System_Runtime_CompilerServices_RuntimeFeature__CovariantReturnsOfClasses
545+
|| special == SpecialMember.System_Runtime_CompilerServices_RuntimeFeature__VirtualStaticsInInterfaces
545546
|| special == SpecialMember.System_Runtime_CompilerServices_RuntimeFeature__UnmanagedSignatureCallingConvention
546547
|| special == SpecialMember.System_Runtime_CompilerServices_PreserveBaseOverridesAttribute__ctor)
547548
{

0 commit comments

Comments
 (0)