Skip to content

Commit 2b60b16

Browse files
committed
feat: update framework and packages
1 parent bf4a987 commit 2b60b16

6 files changed

Lines changed: 22 additions & 21 deletions

File tree

RoslynSyntaxTool.Process/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Microsoft.CodeAnalysis;
66
using RoslynSyntaxTool.Process;
77

8-
[assembly: TargetFramework("net6.0", FrameworkDisplayName = "net6.0")]
8+
[assembly: TargetFramework("net9.0", FrameworkDisplayName = "net9.0")]
99
[assembly: AssemblyTitle("RoslynSyntaxTool.Proxy.ConvertToCSharpProxy")]
1010
[assembly: AssemblyProduct("RoslynSyntaxTool.Proxy.ConvertToCSharpProxy")]
1111
[assembly: AssemblyCopyright("Copyright © MatoApp")]

RoslynSyntaxTool.Process/RoslynSyntaxTool.Process.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.1.0" />
12-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" />
11+
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="5.0.0" />
12+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
1313
</ItemGroup>
1414

1515
</Project>

RoslynSyntaxTool/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
99
mc:Ignorable="d"
1010
WindowState="Maximized"
11-
Title="Roslyn Syntax Tool 版本2.1" Height="720" Width="1080">
11+
Title="Roslyn Syntax Tool 版本2.2" Height="720" Width="1080">
1212
<mah:MetroWindow.RightWindowCommands>
1313
<mah:WindowCommands>
1414
<Button Content="关于" Click="ButtonBase_OnClick"></Button>

RoslynSyntaxTool/Manager/CompilationUtilitys.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ private static SyntaxTree GetAssemblyInfo(AssemblyInfo info)
9595
SyntaxFactory.AttributeArgument(
9696
SyntaxFactory.LiteralExpression(
9797
SyntaxKind.StringLiteralExpression,
98-
SyntaxFactory.Literal("net6.0"))),
98+
SyntaxFactory.Literal("net9.0"))),
9999
SyntaxFactory.Token(SyntaxKind.CommaToken),
100100
SyntaxFactory.AttributeArgument(
101101
SyntaxFactory.LiteralExpression(
102102
SyntaxKind.StringLiteralExpression,
103-
SyntaxFactory.Literal("net6.0")))
103+
SyntaxFactory.Literal("net9.0")))
104104
.WithNameEquals(
105105
SyntaxFactory.NameEquals(
106106
SyntaxFactory.IdentifierName("FrameworkDisplayName")))})))))

RoslynSyntaxTool/RoslynSyntaxTool.csproj

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net6.0-windows</TargetFramework>
5+
<TargetFramework>net9.0-windows</TargetFramework>
66
<UseWPF>true</UseWPF>
77
<RootNamespace>Workshop</RootNamespace>
88
<AssemblyName>RoslynSyntaxTool</AssemblyName>
99
<Authors>LinXiao</Authors>
1010
<Company>MatoApp</Company>
11-
<Copyright>Copyright © LinXiao 2024</Copyright>
11+
<Version>2.2</Version>
12+
<Copyright>Copyright © LinXiao 2026</Copyright>
1213
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1314
<RepositoryUrl>https://github.com/jevonsflash/RoslynSyntaxTool</RepositoryUrl>
14-
<Description>Create ECharts Graphic in native .Net environment</Description>
15+
<Description>Roslyn Syntactic Parser</Description>
1516
</PropertyGroup>
1617

1718
<ItemGroup>
@@ -29,16 +30,16 @@
2930
</ItemGroup>
3031

3132
<ItemGroup>
32-
<PackageReference Include="AvalonEdit" Version="6.1.3.50" />
33-
<PackageReference Include="CommunityToolkit.Mvvm" Version="7.1.2" />
34-
<PackageReference Include="Extended.Wpf.Toolkit" Version="4.3.0" />
35-
<PackageReference Include="MahApps.Metro" Version="2.4.9" />
36-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" />
37-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.1.0" />
38-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />
39-
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.1.0" />
40-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
41-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
33+
<PackageReference Include="AvalonEdit" Version="6.3.1.120" />
34+
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
35+
<PackageReference Include="Extended.Wpf.Toolkit" Version="5.0.0" />
36+
<PackageReference Include="MahApps.Metro" Version="2.4.11" />
37+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
38+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="5.0.0" />
39+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0" />
40+
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="5.0.0" />
41+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.1" />
42+
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
4243
</ItemGroup>
4344

4445
<ItemGroup>

RoslynSyntaxTool/View/AboutWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
HorizontalAlignment="Center"
2525
Margin="12,0">
2626
<TextBlock HorizontalAlignment="Center" Text="Roslyn Syntax Tool" FontSize="{StaticResource LargeFontSize}"></TextBlock>
27-
<TextBlock HorizontalAlignment="Center" Text="2.1" Margin="0,5"></TextBlock>
27+
<TextBlock HorizontalAlignment="Center" Text="2.2" Margin="0,5"></TextBlock>
2828
</StackPanel>
2929
<StackPanel Grid.Row="1"
3030
Margin="12,0">

0 commit comments

Comments
 (0)