Skip to content

Commit a35e78e

Browse files
committed
Release v3.2.7.0
- Updated Roslyn packages to support C#14 (.NET10)
1 parent eeb740d commit a35e78e

File tree

3 files changed

+40
-13
lines changed

3 files changed

+40
-13
lines changed

syntaxer.csproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<TargetFrameworks>net10.0;net8.0</TargetFrameworks>
66
<RootNamespace>syntaxer</RootNamespace>
77
<AssemblyName>syntaxer</AssemblyName>
8-
<AssemblyVersion>3.2.6.0</AssemblyVersion>
9-
<FileVersion>3.2.6.0</FileVersion>
10-
<Version>3.2.6.0</Version>
8+
<AssemblyVersion>3.2.7.0</AssemblyVersion>
9+
<FileVersion>3.2.7.0</FileVersion>
10+
<Version>3.2.7.0</Version>
1111
<PackageReleaseNotes>- Ported to .NET10</PackageReleaseNotes>
12-
<Description>C# syntax provider for CS-Script scripts. This service is created to allow the integration of C# syntax services with various extendibles IDE (e.g. VSCode, Notepad++, Sublime Text)</Description>
12+
<Description>C# syntax provider for CS-Script scripts. This service is created to allow the integration of C# syntax services with various extendible IDE (e.g. VSCode, Notepad++, Sublime Text)</Description>
1313
<Authors>Oleg Shilo</Authors>
14-
<Copyright>(C) 2024 Oleg Shilo</Copyright>
14+
<Copyright>(C) 2025-2026 Oleg Shilo</Copyright>
1515
<PackageId>cs-syntaxer</PackageId>
1616
<Product>cs-syntaxer</Product>
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -60,12 +60,12 @@
6060

6161

6262
<ItemGroup>
63-
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.14.0" />
64-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
65-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />
66-
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.14.0" />
67-
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.14.0" />
68-
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="10.0.0" />
63+
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="5.0.0" />
64+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
65+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0" />
66+
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="5.0.0" />
67+
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="5.0.0" />
68+
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="10.0.1" />
6969
</ItemGroup>
7070

7171
</Project>

syntaxer.tests/Global.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
static class Global
88
{
9+
static string css_self = null;
10+
911
public static void WithDisposable(Action<string> action, bool local = false)
1012
{
1113
var script = Path.GetTempFileName();
@@ -28,9 +30,13 @@ public static void WithDisposable(Action<string> action, bool local = false)
2830
CSScriptProxy.cscs_path = cscs;
2931
else
3032
{
31-
cscs = @"C:\ProgramData\chocolatey\lib\cs-script\tools\cscs.dll";
32-
cscs = @"C:\Users\oleg\.dotnet\tools\.store\cs-script.cli\4.9.8\cs-script.cli\4.9.8\tools\net9.0\any\cscs.dll";
33+
// cscs = @"C:\ProgramData\chocolatey\lib\cs-script\tools\cscs.dll";
34+
// cscs = @"C:\Users\oleg\.dotnet\tools\.store\cs-script.cli\4.9.8\cs-script.cli\4.9.8\tools\net9.0\any\cscs.dll";
3335
// cscs = Environment.GetEnvironmentVariable("CSSCRIPT_DIR")?.PathJoin("cscs.dll");
36+
37+
cscs = css_self ??
38+
(css_self = "css".Run("-self").output.Trim());
39+
3440
if (File.Exists(cscs))
3541
CSScriptProxy.cscs_path = cscs;
3642
else

syntaxer.tests/IntellisenseTest.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,27 @@ namespace syntaxer.core.tests
1414
{
1515
public class IntellisenseTest
1616
{
17+
[Fact]
18+
public static void CSharp_14() => WithDisposable(scriptFile =>
19+
{
20+
(var caret, _) = """
21+
using System;
22+
public class Test
23+
{
24+
public string Message
25+
{
26+
get;
27+
set => field = value ?? throw new ArgumentNullException(nameof(value) + field.Len|);
28+
}
29+
}
30+
"""
31+
.ToTestData(scriptFile);
32+
33+
var completions = TestServices.GetCompletion(scriptFile, caret);
34+
35+
Assert.NotNull(completions.Split(NewLine).FirstOrDefault(x => x.StartsWith("Length")));
36+
});
37+
1738
[Fact]
1839
public static void Completion() => WithDisposable(scriptFile =>
1940
{

0 commit comments

Comments
 (0)