Skip to content

Commit bf4a987

Browse files
committed
release: v2.1
1 parent 65a1110 commit bf4a987

6 files changed

Lines changed: 126 additions & 116 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ KirillOsenkov的RoslynOuter项目,链接: https://github.com/KirillOsenkov/Ros
4141
## 更新内容:
4242

4343

44-
Date | Version | Content
45-
:----------: | :-----------: | :-----------
46-
V1.0 | 2021-3-16 | 初始版本
47-
V2.0 | 2022-5-16 | 1. 升级项目框架至.Net 6.0 2. 增加ConvertToCSharp页面 3. 更新README
44+
| Date | Version | Content |
45+
| :---: | :-------: | :------------------------------------------------------------------ |
46+
| V1.0 | 2021-3-16 | 初始版本 |
47+
| V2.0 | 2022-5-16 | 1. 升级项目框架至.Net 6.0 2. 增加ConvertToCSharp页面 3. 更新README |
48+
| V2.1 | 2024-8-24 | 修复语法树代码生成器代码生成错误的问题 |
4849

4950

5051

RST/rst.zip

-9.45 MB
Binary file not shown.

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.0" Height="720" Width="1080">
11+
Title="Roslyn Syntax Tool 版本2.1" Height="720" Width="1080">
1212
<mah:MetroWindow.RightWindowCommands>
1313
<mah:WindowCommands>
1414
<Button Content="关于" Click="ButtonBase_OnClick"></Button>
Lines changed: 116 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,127 @@
11
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
22

3-
<PropertyGroup>
4-
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net6.0-windows</TargetFramework>
6-
<UseWPF>true</UseWPF>
7-
<RootNamespace>Workshop</RootNamespace>
8-
<AssemblyName>RoslynSyntaxTool</AssemblyName>
9-
</PropertyGroup>
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net6.0-windows</TargetFramework>
6+
<UseWPF>true</UseWPF>
7+
<RootNamespace>Workshop</RootNamespace>
8+
<AssemblyName>RoslynSyntaxTool</AssemblyName>
9+
<Authors>LinXiao</Authors>
10+
<Company>MatoApp</Company>
11+
<Copyright>Copyright © LinXiao 2024</Copyright>
12+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
13+
<RepositoryUrl>https://github.com/jevonsflash/RoslynSyntaxTool</RepositoryUrl>
14+
<Description>Create ECharts Graphic in native .Net environment</Description>
15+
</PropertyGroup>
1016

11-
<ItemGroup>
12-
<None Remove="Assets\1.png" />
13-
<None Remove="Assets\2.png" />
14-
</ItemGroup>
17+
<ItemGroup>
18+
<None Remove="Assets\1.png" />
19+
<None Remove="Assets\2.png" />
20+
</ItemGroup>
1521

16-
<ItemGroup>
17-
<Resource Include="Assets\1.png">
18-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
19-
</Resource>
20-
<Resource Include="Assets\2.png">
21-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
22-
</Resource>
23-
</ItemGroup>
22+
<ItemGroup>
23+
<Resource Include="Assets\1.png">
24+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
25+
</Resource>
26+
<Resource Include="Assets\2.png">
27+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
28+
</Resource>
29+
</ItemGroup>
2430

25-
<ItemGroup>
26-
<PackageReference Include="AvalonEdit" Version="6.1.3.50" />
27-
<PackageReference Include="CommunityToolkit.Mvvm" Version="7.1.2" />
28-
<PackageReference Include="Extended.Wpf.Toolkit" Version="4.3.0" />
29-
<PackageReference Include="MahApps.Metro" Version="2.4.9" />
30-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" />
31-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.1.0" />
32-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />
33-
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.1.0" />
34-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
35-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
36-
</ItemGroup>
31+
<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" />
42+
</ItemGroup>
3743

38-
<ItemGroup>
39-
<ApplicationDefinition Update="App.xaml">
40-
<SubType>Designer</SubType>
41-
<Generator>MSBuild:Compile</Generator>
42-
</ApplicationDefinition>
43-
</ItemGroup>
44+
<ItemGroup>
45+
<ApplicationDefinition Update="App.xaml">
46+
<SubType>Designer</SubType>
47+
<Generator>MSBuild:Compile</Generator>
48+
</ApplicationDefinition>
49+
</ItemGroup>
4450

45-
<ItemGroup>
46-
<Compile Update="App.xaml.cs">
47-
<SubType>Code</SubType>
48-
<DependentUpon>App.xaml</DependentUpon>
49-
</Compile>
50-
<Compile Update="Control\ProgressWindow.xaml.cs">
51-
<DependentUpon>ProgressWindow.xaml</DependentUpon>
52-
</Compile>
53-
<Compile Update="Control\SimpleKeyValueControl.xaml.cs">
54-
<DependentUpon>SimpleKeyValueControl.xaml</DependentUpon>
55-
</Compile>
56-
<Compile Update="Control\SyntaxDetailViewer.xaml.cs">
57-
<SubType>Code</SubType>
58-
</Compile>
59-
<Compile Update="MainWindow.xaml.cs">
60-
<SubType>Code</SubType>
61-
<DependentUpon>MainWindow.xaml</DependentUpon>
62-
</Compile>
63-
<Compile Update="View\AboutWindow.xaml.cs">
64-
<DependentUpon>AboutWindow.xaml</DependentUpon>
65-
</Compile>
66-
<Compile Update="View\ErrorPage.xaml.cs">
67-
<DependentUpon>ErrorPage.xaml</DependentUpon>
68-
</Compile>
69-
<Compile Update="View\IndexPage - 复制.xaml.cs">
70-
<DependentUpon>IndexPage.xaml</DependentUpon>
71-
</Compile>
72-
<Compile Update="View\IndexPage.xaml.cs">
73-
<DependentUpon>IndexPage.xaml</DependentUpon>
74-
</Compile>
75-
<Compile Update="View\SettingPage.xaml.cs">
76-
<DependentUpon>SettingPage.xaml</DependentUpon>
77-
</Compile>
78-
</ItemGroup>
51+
<ItemGroup>
52+
<Compile Update="App.xaml.cs">
53+
<SubType>Code</SubType>
54+
<DependentUpon>App.xaml</DependentUpon>
55+
</Compile>
56+
<Compile Update="Control\ProgressWindow.xaml.cs">
57+
<DependentUpon>ProgressWindow.xaml</DependentUpon>
58+
</Compile>
59+
<Compile Update="Control\SimpleKeyValueControl.xaml.cs">
60+
<DependentUpon>SimpleKeyValueControl.xaml</DependentUpon>
61+
</Compile>
62+
<Compile Update="Control\SyntaxDetailViewer.xaml.cs">
63+
<SubType>Code</SubType>
64+
</Compile>
65+
<Compile Update="MainWindow.xaml.cs">
66+
<SubType>Code</SubType>
67+
<DependentUpon>MainWindow.xaml</DependentUpon>
68+
</Compile>
69+
<Compile Update="View\AboutWindow.xaml.cs">
70+
<DependentUpon>AboutWindow.xaml</DependentUpon>
71+
</Compile>
72+
<Compile Update="View\ErrorPage.xaml.cs">
73+
<DependentUpon>ErrorPage.xaml</DependentUpon>
74+
</Compile>
75+
<Compile Update="View\IndexPage - 复制.xaml.cs">
76+
<DependentUpon>IndexPage.xaml</DependentUpon>
77+
</Compile>
78+
<Compile Update="View\IndexPage.xaml.cs">
79+
<DependentUpon>IndexPage.xaml</DependentUpon>
80+
</Compile>
81+
<Compile Update="View\SettingPage.xaml.cs">
82+
<DependentUpon>SettingPage.xaml</DependentUpon>
83+
</Compile>
84+
</ItemGroup>
7985

80-
<ItemGroup>
81-
<None Update="default.txt">
82-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
83-
</None>
84-
</ItemGroup>
86+
<ItemGroup>
87+
<None Update="default.txt">
88+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
89+
</None>
90+
</ItemGroup>
8591

86-
<ItemGroup>
87-
<Page Update="Control\ProgressWindow.xaml">
88-
<SubType>Designer</SubType>
89-
</Page>
90-
<Page Update="Control\SimpleKeyValueControl.xaml">
91-
<SubType>Designer</SubType>
92-
</Page>
93-
<Page Update="Control\SyntaxDetailViewer.xaml">
94-
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
95-
<SubType>Designer</SubType>
96-
</Page>
97-
<Page Update="Style\ConvertersDictionary.xaml">
98-
<SubType>Designer</SubType>
99-
</Page>
100-
<Page Update="Style\DefaultDictionary.xaml">
101-
<SubType>Designer</SubType>
102-
</Page>
103-
<Page Update="View\AboutWindow.xaml">
104-
<SubType>Designer</SubType>
105-
</Page>
106-
<Page Update="View\ErrorPage.xaml">
107-
<SubType>Designer</SubType>
108-
</Page>
109-
<Page Update="View\ConvertToCSharpPage.xaml">
110-
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
111-
<SubType>Designer</SubType>
112-
</Page>
113-
<Page Update="View\IndexPage.xaml">
114-
<SubType>Designer</SubType>
115-
</Page>
116-
<Page Update="View\SettingPage.xaml">
117-
<SubType>Designer</SubType>
118-
</Page>
119-
</ItemGroup>
92+
<ItemGroup>
93+
<Page Update="Control\ProgressWindow.xaml">
94+
<SubType>Designer</SubType>
95+
</Page>
96+
<Page Update="Control\SimpleKeyValueControl.xaml">
97+
<SubType>Designer</SubType>
98+
</Page>
99+
<Page Update="Control\SyntaxDetailViewer.xaml">
100+
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
101+
<SubType>Designer</SubType>
102+
</Page>
103+
<Page Update="Style\ConvertersDictionary.xaml">
104+
<SubType>Designer</SubType>
105+
</Page>
106+
<Page Update="Style\DefaultDictionary.xaml">
107+
<SubType>Designer</SubType>
108+
</Page>
109+
<Page Update="View\AboutWindow.xaml">
110+
<SubType>Designer</SubType>
111+
</Page>
112+
<Page Update="View\ErrorPage.xaml">
113+
<SubType>Designer</SubType>
114+
</Page>
115+
<Page Update="View\ConvertToCSharpPage.xaml">
116+
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
117+
<SubType>Designer</SubType>
118+
</Page>
119+
<Page Update="View\IndexPage.xaml">
120+
<SubType>Designer</SubType>
121+
</Page>
122+
<Page Update="View\SettingPage.xaml">
123+
<SubType>Designer</SubType>
124+
</Page>
125+
</ItemGroup>
120126

121127
</Project>

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.0" Margin="0,5"></TextBlock>
27+
<TextBlock HorizontalAlignment="Center" Text="2.1" Margin="0,5"></TextBlock>
2828
</StackPanel>
2929
<StackPanel Grid.Row="1"
3030
Margin="12,0">

RoslynSyntaxTool/default.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ namespace HelloWorld
66
{
77
class Program
88
{
9+
///<summary>
10+
///The program entry point
11+
///</summary>
912
static void Main(string[] args)
1013
{
1114
Console.WriteLine("Hello World!");

0 commit comments

Comments
 (0)