@@ -108,9 +108,9 @@ static Tester()
108108 TesterPath = Path . GetDirectoryName ( typeof ( Tester ) . Assembly . Location ) ;
109109 TestCasePath = Path . Combine ( TesterPath , "../../../../TestCases" ) ;
110110#if DEBUG
111- testRunnerBasePath = Path . Combine ( TesterPath , "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Debug/net10 .0" ) ;
111+ testRunnerBasePath = Path . Combine ( TesterPath , "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Debug/net11 .0" ) ;
112112#else
113- testRunnerBasePath = Path . Combine ( TesterPath , "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Release/net10 .0" ) ;
113+ testRunnerBasePath = Path . Combine ( TesterPath , "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Release/net11 .0" ) ;
114114#endif
115115 // To parse: <Project><ItemGroup><PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0-3.final" />
116116 packagesPropsFile = Path . Combine ( TesterPath , "../../../../../Directory.Packages.props" ) ;
@@ -135,7 +135,7 @@ internal static async Task Initialize()
135135
136136 await vswhereToolset . Fetch ( ) . ConfigureAwait ( false ) ;
137137 await RefAssembliesToolset . Fetch ( "5.0.0" , sourcePath : "ref/net5.0" ) . ConfigureAwait ( false ) ;
138- await RefAssembliesToolset . Fetch ( "10 .0.0-rc .2.25502.107 " , sourcePath : "ref/net10 .0" ) . ConfigureAwait ( false ) ;
138+ await RefAssembliesToolset . Fetch ( "11 .0.0-preview .2.26159.112 " , sourcePath : "ref/net11 .0" ) . ConfigureAwait ( false ) ;
139139
140140#if DEBUG
141141 await BuildTestRunner ( "win-x86" , "Debug" ) . ConfigureAwait ( false ) ;
@@ -341,7 +341,7 @@ private static string ReplacePrivImplDetails(string il)
341341 } ;
342342
343343 static readonly Dictionary < string , Lazy < string > > targetFrameworkAttributeSnippetFiles = new ( ) {
344- { ".NETCoreApp,Version=v10 .0" , new Lazy < string > ( ( ) => GetTargetFrameworkAttributeSnippetFile ( ".NETCoreApp,Version=v10 .0" ) ) } ,
344+ { ".NETCoreApp,Version=v11 .0" , new Lazy < string > ( ( ) => GetTargetFrameworkAttributeSnippetFile ( ".NETCoreApp,Version=v11 .0" ) ) } ,
345345 { ".NETCoreApp,Version=v5.0" , new Lazy < string > ( ( ) => GetTargetFrameworkAttributeSnippetFile ( ".NETCoreApp,Version=v5.0" ) ) } ,
346346 { ".NETCoreApp,Version=v2.2" , new Lazy < string > ( ( ) => GetTargetFrameworkAttributeSnippetFile ( ".NETCoreApp,Version=v2.2" ) ) } ,
347347 } ;
@@ -454,12 +454,15 @@ public static List<string> GetPreprocessorSymbols(CompilerOptions flags)
454454 preprocessorSymbols . Add ( "NET80" ) ;
455455 preprocessorSymbols . Add ( "NET90" ) ;
456456 preprocessorSymbols . Add ( "NET100" ) ;
457+ preprocessorSymbols . Add ( "NET110" ) ;
457458 }
458459 preprocessorSymbols . Add ( "ROSLYN4" ) ;
459460 preprocessorSymbols . Add ( "CS100" ) ;
460461 preprocessorSymbols . Add ( "CS110" ) ;
461462 preprocessorSymbols . Add ( "CS120" ) ;
462463 preprocessorSymbols . Add ( "CS130" ) ;
464+ preprocessorSymbols . Add ( "CS140" ) ;
465+ preprocessorSymbols . Add ( "CS150" ) ;
463466 }
464467 }
465468 else if ( ( flags & CompilerOptions . UseMcsMask ) != 0 )
@@ -520,7 +523,7 @@ public static async Task<CompilerResults> CompileCSharp(string sourceFileName, C
520523 CompilerOptions . UseRoslyn1_3_2 => ( "1.3.2" , "6" , null ) ,
521524 CompilerOptions . UseRoslyn2_10_0 => ( "2.10.0" , "latest" , targetNet40 ? null : ".NETCoreApp,Version=v2.2" ) ,
522525 CompilerOptions . UseRoslyn3_11_0 => ( "3.11.0" , "latest" , targetNet40 ? null : ".NETCoreApp,Version=v5.0" ) ,
523- _ => ( roslynLatestVersion , flags . HasFlag ( CompilerOptions . Preview ) ? "preview" : "latest" , targetNet40 ? null : ".NETCoreApp,Version=v10 .0" )
526+ _ => ( roslynLatestVersion , flags . HasFlag ( CompilerOptions . Preview ) ? "preview" : "latest" , targetNet40 ? null : ".NETCoreApp,Version=v11 .0" )
524527 } ;
525528
526529 var cscPath = roslynToolset . GetCSharpCompiler ( roslynVersion ) ;
@@ -770,7 +773,7 @@ public static void CompileCSharpWithPdb(string assemblyName, Dictionary<string,
770773 }
771774
772775 var compilation = CSharpCompilation . Create ( Path . GetFileNameWithoutExtension ( assemblyName ) ,
773- syntaxTrees , coreDefaultReferences . Select ( r => MetadataReference . CreateFromFile ( Path . Combine ( RefAssembliesToolset . GetPath ( ".NETCoreApp,Version=v10 .0" ) , r ) ) ) ,
776+ syntaxTrees , coreDefaultReferences . Select ( r => MetadataReference . CreateFromFile ( Path . Combine ( RefAssembliesToolset . GetPath ( ".NETCoreApp,Version=v11 .0" ) , r ) ) ) ,
774777 new CSharpCompilationOptions (
775778 OutputKind . DynamicallyLinkedLibrary ,
776779 platform : Platform . AnyCpu ,
0 commit comments