Skip to content

Commit

Permalink
[main] Update dependencies from dotnet/roslyn (dotnet#97388)
Browse files Browse the repository at this point in the history
* Update dependencies from https://github.com/dotnet/roslyn build 20240122.4

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-1.24072.4

* Update dependencies from https://github.com/dotnet/roslyn build 20240123.8

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-1.24073.8

* Update dependencies from https://github.com/dotnet/roslyn build 20240124.3

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-1.24074.3

* Update dependencies from https://github.com/dotnet/roslyn build 20240125.16

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-1.24075.16

* Update dependencies from https://github.com/dotnet/roslyn build 20240126.10

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-1.24076.10

* Update dependencies from https://github.com/dotnet/roslyn build 20240126.10

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-1.24076.10

* Update dependencies from https://github.com/dotnet/roslyn build 20240126.10

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-1.24076.10

* Update dependencies from https://github.com/dotnet/roslyn build 20240129.14

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24079.14

* Update dependencies from https://github.com/dotnet/roslyn build 20240130.8

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24080.8

* Update dependencies from https://github.com/dotnet/roslyn build 20240131.14

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24081.14

* Update dependencies from https://github.com/dotnet/roslyn build 20240201.7

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24101.7

* Update dependencies from https://github.com/dotnet/roslyn build 20240209.1

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24109.1

* Update dependencies from https://github.com/dotnet/roslyn build 20240209.17

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24109.17

* Update dependencies from https://github.com/dotnet/roslyn build 20240209.17

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24109.17

* Update dependencies from https://github.com/dotnet/roslyn build 20240209.17

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24109.17

* Comment out tests which fail to compile due to C# breaking change

* Update dependencies from https://github.com/dotnet/roslyn build 20240212.13

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.10.0-1.24069.13 -> To Version 4.10.0-2.24112.13

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Larry Ewing <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
  • Loading branch information
4 people authored Feb 13, 2024
1 parent 53453a5 commit f04473a
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 111 deletions.
17 changes: 9 additions & 8 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -392,17 +392,18 @@
<Uri>https://github.com/dotnet/runtime-assets</Uri>
<Sha>b5ac2d9031d4b2dc40683b31de86b05a20b670af</Sha>
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.10.0-1.24069.13">
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.10.0-2.24112.13">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>2fe96bca1092f880e91eea6eb17ea3487d89309a</Sha>
<Sha>892d5f01f7f41dfe7fcd82522276c5628255ef74</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis" Version="4.10.0-1.24069.13">
<Dependency Name="Microsoft.CodeAnalysis" Version="4.10.0-2.24112.13">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>2fe96bca1092f880e91eea6eb17ea3487d89309a</Sha>
<Sha>892d5f01f7f41dfe7fcd82522276c5628255ef74</Sha>
<SourceBuild RepoName="roslyn" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.10.0-1.24069.13">
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.10.0-2.24112.13">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>2fe96bca1092f880e91eea6eb17ea3487d89309a</Sha>
<Sha>892d5f01f7f41dfe7fcd82522276c5628255ef74</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0-beta1.24072.1">
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
Expand All @@ -413,9 +414,9 @@
<Sha>e39798fc8357615ab319c81b20acfb036ef7b513</Sha>
</Dependency>
<!-- Intermediate is necessary for source build. -->
<Dependency Name="Microsoft.SourceBuild.Intermediate.roslyn" Version="4.10.0-1.24069.13">
<Dependency Name="Microsoft.SourceBuild.Intermediate.roslyn" Version="4.10.0-2.24112.13">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>2fe96bca1092f880e91eea6eb17ea3487d89309a</Sha>
<Sha>892d5f01f7f41dfe7fcd82522276c5628255ef74</Sha>
<SourceBuild RepoName="roslyn" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat.Task" Version="9.0.100-preview.2.24112.1">
Expand Down
6 changes: 3 additions & 3 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
Any tools that contribute to the design-time experience should use the MicrosoftCodeAnalysisVersion_LatestVS property above to ensure
they do not break the local dev experience.
-->
<MicrosoftCodeAnalysisCSharpVersion>4.10.0-1.24069.13</MicrosoftCodeAnalysisCSharpVersion>
<MicrosoftCodeAnalysisVersion>4.10.0-1.24069.13</MicrosoftCodeAnalysisVersion>
<MicrosoftNetCompilersToolsetVersion>4.10.0-1.24069.13</MicrosoftNetCompilersToolsetVersion>
<MicrosoftCodeAnalysisCSharpVersion>4.10.0-2.24112.13</MicrosoftCodeAnalysisCSharpVersion>
<MicrosoftCodeAnalysisVersion>4.10.0-2.24112.13</MicrosoftCodeAnalysisVersion>
<MicrosoftNetCompilersToolsetVersion>4.10.0-2.24112.13</MicrosoftNetCompilersToolsetVersion>
</PropertyGroup>
<!--
For source generator support we need to target multiple versions of Roslyn in order to be able to run on older versions of Roslyn.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2394,56 +2394,58 @@ public static int MainMethod()
}



namespace ManagedTests.DynamicCSharp.Conformance.dynamic.namedandoptional.usage.other.ref03a.ref03a
{
// <Area>Declaration of Methods with Optional Parameters</Area>
// <Title>calling with a ref parameter </Title>
// <Description>Should be able to call a ref parameter</Description>
// <Expects status=success></Expects>
// <Code>
using System.Runtime.InteropServices;

public class Parent
{
public int Foo(
[Optional]
ref int x)
{
if (x == 2)
return 1;
return 1;
}
}

public class Test
{
[Fact]
public static void DynamicCSharpRunTest()
{
Assert.Equal(0, MainMethod());
}

public static int MainMethod()
{
Parent p = new Parent();
dynamic i = 2;
try
{
p.Foo(x: i);
}
catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
{
bool ret = ErrorVerifier.Verify(ErrorMessageId.BadArgTypes, e.Message, "Parent.Foo(ref int)");
if (ret)
return 0;
}

return 1;
}
}
//</Code>
}
// This test is failing to compile now due to this C# breaking change:
// https://github.com/dotnet/roslyn/blob/291255bc40c2ccd8ef1ca12ed580820c79f527cc/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20DotNet%208.md#ref-modifiers-of-dynamic-arguments-should-be-compatible-with-ref-modifiers-of-corresponding-parameters

// namespace ManagedTests.DynamicCSharp.Conformance.dynamic.namedandoptional.usage.other.ref03a.ref03a
// {
// // <Area>Declaration of Methods with Optional Parameters</Area>
// // <Title>calling with a ref parameter </Title>
// // <Description>Should be able to call a ref parameter</Description>
// // <Expects status=success></Expects>
// // <Code>
// using System.Runtime.InteropServices;

// public class Parent
// {
// public int Foo(
// [Optional]
// ref int x)
// {
// if (x == 2)
// return 1;
// return 1;
// }
// }

// public class Test
// {
// [Fact]
// public static void DynamicCSharpRunTest()
// {
// Assert.Equal(0, MainMethod());
// }

// public static int MainMethod()
// {
// Parent p = new Parent();
// dynamic i = 2;
// try
// {
// p.Foo(x: i);
// }
// catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
// {
// bool ret = ErrorVerifier.Verify(ErrorMessageId.BadArgTypes, e.Message, "Parent.Foo(ref int)");
// if (ret)
// return 0;
// }

// return 1;
// }
// }
// //</Code>
// }



Expand Down Expand Up @@ -2498,56 +2500,58 @@ public static int MainMethod()
}



namespace ManagedTests.DynamicCSharp.Conformance.dynamic.namedandoptional.usage.other.ref03c.ref03c
{
// <Area>Declaration of Methods with Optional Parameters</Area>
// <Title>calling with a ref parameter </Title>
// <Description>Should be able to call a ref parameter</Description>
// <Expects status=success></Expects>
// <Code>
using System.Runtime.InteropServices;

public class Parent
{
public int Foo(
[Optional]
ref dynamic x)
{
if (x == 2)
return 1;
return 1;
}
}

public class Test
{
[Fact]
public static void DynamicCSharpRunTest()
{
Assert.Equal(0, MainMethod());
}

public static int MainMethod()
{
Parent p = new Parent();
dynamic i = 2;
try
{
p.Foo(x: i);
}
catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
{
bool ret = ErrorVerifier.Verify(ErrorMessageId.BadArgTypes, e.Message, "Parent.Foo(ref object)");
if (ret)
return 0;
}

return 1;
}
}
//</Code>
}
// This test is failing to compile now due to this C# breaking change:
// https://github.com/dotnet/roslyn/blob/291255bc40c2ccd8ef1ca12ed580820c79f527cc/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20DotNet%208.md#ref-modifiers-of-dynamic-arguments-should-be-compatible-with-ref-modifiers-of-corresponding-parameters

// namespace ManagedTests.DynamicCSharp.Conformance.dynamic.namedandoptional.usage.other.ref03c.ref03c
// {
// // <Area>Declaration of Methods with Optional Parameters</Area>
// // <Title>calling with a ref parameter </Title>
// // <Description>Should be able to call a ref parameter</Description>
// // <Expects status=success></Expects>
// // <Code>
// using System.Runtime.InteropServices;

// public class Parent
// {
// public int Foo(
// [Optional]
// ref dynamic x)
// {
// if (x == 2)
// return 1;
// return 1;
// }
// }

// public class Test
// {
// [Fact]
// public static void DynamicCSharpRunTest()
// {
// Assert.Equal(0, MainMethod());
// }

// public static int MainMethod()
// {
// Parent p = new Parent();
// dynamic i = 2;
// try
// {
// p.Foo(x: i);
// }
// catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e)
// {
// bool ret = ErrorVerifier.Verify(ErrorMessageId.BadArgTypes, e.Message, "Parent.Foo(ref object)");
// if (ret)
// return 0;
// }

// return 1;
// }
// }
// //</Code>
// }



Expand Down

0 comments on commit f04473a

Please sign in to comment.