Skip to content

Commit cd0f945

Browse files
修改了全部BUG,发布为版本:2.0.5441.37112版本。
1 parent b193679 commit cd0f945

File tree

8 files changed

+222
-63
lines changed

8 files changed

+222
-63
lines changed

AssemblyInfoManager.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@
4747
<Reference Include="System" />
4848
<Reference Include="System.Configuration" />
4949
<Reference Include="System.Core" />
50-
<Reference Include="System.Xml.Linq" />
51-
<Reference Include="System.Data.DataSetExtensions" />
5250
<Reference Include="Microsoft.CSharp" />
53-
<Reference Include="System.Data" />
54-
<Reference Include="System.Deployment" />
5551
<Reference Include="System.Drawing" />
5652
<Reference Include="System.Windows.Forms" />
5753
<Reference Include="System.Xml" />
@@ -72,6 +68,7 @@
7268
<Compile Include="Properties\AssemblyInfo.cs" />
7369
<Compile Include="Resources\Resource.cs" />
7470
<Compile Include="Resources\ResourceReader.cs" />
71+
<Compile Include="Templates\TemplateFinder.cs" />
7572
<Compile Include="Threading\ProgressDescriptionUpdater.cs" />
7673
<Compile Include="Threading\ThreadArgs.cs" />
7774
<Compile Include="Threading\ThreadPoolHelper.cs" />

Generators/TemplateGeneratorPartial.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#endregion
2121

2222
using System;
23-
using SourcePro.Csharp.Lab.Entity;
2423
using System.IO;
24+
using SourcePro.Csharp.Lab.Entity;
2525

2626
namespace SourcePro.Csharp.Lab.Generators
2727
{

Properties/AssemblyInfo.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Runtime.InteropServices;
33

44
// 有关程序集的常规信息通过以下
55
// 特性集控制。更改这些特性值可修改
66
// 与程序集关联的信息。
7-
[assembly: AssemblyTitle(".NET程序集信息管理工具")]
8-
[assembly: AssemblyDescription("用于修改AssemblyInfo.cs文件中的程序集信息")]
7+
[assembly: AssemblyTitle(".Net 程序集信息编辑器")]
8+
[assembly: AssemblyDescription("程序集信息编辑器")]
99
[assembly: AssemblyConfiguration("")]
1010
[assembly: AssemblyCompany("SourcePro Studio")]
11-
[assembly: AssemblyProduct("AssemblyInfo Management Tool")]
12-
[assembly: AssemblyCopyright("Copyright © 2014 Wang Yucai")]
11+
[assembly: AssemblyProduct("Assembly Information Editor")]
12+
[assembly: AssemblyCopyright("Copyright © 2014 Wang Yucai. All rights reserved.")]
1313
[assembly: AssemblyTrademark("SourcePro Studio")]
1414
[assembly: AssemblyCulture("")]
1515

@@ -31,5 +31,6 @@
3131
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
3232
// 方法是按如下所示使用“*”:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.0.0.0")]
35-
[assembly: AssemblyFileVersion("1.0.0.0")]
34+
[assembly: AssemblyVersion("2.0.5441.37112")]
35+
[assembly: AssemblyFileVersion("2.0.5441.37112")]
36+
/*Generate By AssemblyInfoManager v2.0.5441.37029. Time: 2014-11-24 10:18:32*/

Templates/TemplateFinder.cs

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#region README
2+
3+
/*
4+
* README
5+
*
6+
* Current Thread User : GUOCOLAND\wangyucai
7+
* Machine Name : GLCHQWYCWINW7
8+
* Visual Studio : Microsoft Visual Studio 2010 Ultimate Edition
9+
* Create Time : 2014-11-24 9:39:52
10+
* Common Language Runtime : 4.0.30319.18444
11+
* Minimum .Net Framework Version : 4.0
12+
*
13+
* SourcePro Studio 2014
14+
* Project Url : https://github.com/SourceproStudio/CodeTemplates
15+
* Home Page Url : https://github.com/SourceproStudio
16+
* E-mail Address : MasterDuner@yeah.net or Yucai.Wang-Public@outlook.com
17+
* QQ : 180261899
18+
*/
19+
20+
#endregion
21+
22+
using System;
23+
using System.Collections.Generic;
24+
using System.IO;
25+
using System.Linq;
26+
27+
namespace SourcePro.Csharp.Lab.Templates
28+
{
29+
/// <summary>
30+
/// <para>
31+
/// 提供了用于查找模板的方法。
32+
/// </para>
33+
/// <para>
34+
/// Namespace : <see cref="SourcePro.Csharp.Lab.Templates"/>
35+
/// </para>
36+
/// <para>
37+
/// Type : <see cref="TemplateFinder"/>
38+
/// </para>
39+
/// <para>
40+
/// The minimum .Net Framework version requirements : 4.0
41+
/// </para>
42+
/// <para>
43+
/// <see cref="TemplateFinder"/> is a static type !
44+
/// </para>
45+
/// </summary>
46+
/// <remarks>
47+
/// <see cref="TemplateFinder"/> is a static type !
48+
/// </remarks>
49+
/// <seealso cref="SourcePro.Csharp.Lab.Templates"/>
50+
public static class TemplateFinder
51+
{
52+
private static readonly DirectoryInfo TemplatesDir = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"SourcePro Studio\AssemblyInfoManager\Templates"));
53+
54+
#region GetAllTemplates
55+
/// <summary>
56+
/// 获取所有模板。
57+
/// </summary>
58+
/// <returns>动态类型数组。</returns>
59+
static public dynamic[] GetAllTemplates()
60+
{
61+
List<dynamic> output = new List<dynamic>();
62+
if (TemplatesDir.Exists)
63+
{
64+
var enumerator = from item in TemplatesDir.GetFiles("*.t", SearchOption.TopDirectoryOnly)
65+
orderby item.CreationTime descending
66+
select item;
67+
foreach (var item in enumerator)
68+
output.Add(new
69+
{
70+
Name = item.Name,
71+
Path = item.FullName,
72+
CreateTime = item.CreationTime
73+
});
74+
}
75+
return output.ToArray();
76+
}
77+
#endregion
78+
79+
#region DeleteAll
80+
/// <summary>
81+
/// 删除所有模板文件。
82+
/// </summary>
83+
static public void DeleteAll()
84+
{
85+
try
86+
{
87+
FileInfo[] files = TemplatesDir.GetFiles("*.t");
88+
for (var i = 0; i < files.Length; i++)
89+
{
90+
files[i].Delete();
91+
}
92+
}
93+
catch { }
94+
}
95+
#endregion
96+
}
97+
}
98+
99+
/*
100+
* Copyright © 2014 Wang Yucai. All rights reserved.
101+
*/

Threading/ThreadArgs.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#endregion
2121

22-
using System;
2322
using SourcePro.Csharp.Lab.Entity;
2423

2524
namespace SourcePro.Csharp.Lab.Threading

Threading/ThreadPoolHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
#endregion
2121

2222
using System;
23-
using System.Threading;
24-
using SourcePro.Csharp.Lab.Entity;
2523
using System.Collections.Generic;
26-
using SourcePro.Csharp.Lab.Resources;
2724
using System.IO;
25+
using System.Linq;
2826
using System.Text;
2927
using System.Text.RegularExpressions;
30-
using System.Linq;
28+
using System.Threading;
29+
using SourcePro.Csharp.Lab.Entity;
30+
using SourcePro.Csharp.Lab.Resources;
3131

3232
namespace SourcePro.Csharp.Lab.Threading
3333
{

Windows/MainWindow.Designer.cs

Lines changed: 38 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)