mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 12:09:29 +08:00
Upate demo
This commit is contained in:
@@ -111,14 +111,17 @@ namespace SugarCodeGeneration.Codes
|
||||
FileHelper.CreateDirectory(binDic);
|
||||
}
|
||||
FileHelper.CreateFile(projectPath, project, System.Text.Encoding.UTF8);
|
||||
FileHelper.CreateFile(projectDic + "\\class1.cs", "", System.Text.Encoding.UTF8);
|
||||
AppendProjectToSln(projectId, name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void AppendProjectToSln(string projectId,string projectName) {
|
||||
public static void AppendProjectToSln(string projectId, string projectName)
|
||||
{
|
||||
|
||||
var slns = Directory.GetFiles(GetSlnPath).Where(it => it.Contains(".sln"));
|
||||
if (slns.Any()) {
|
||||
if (slns.Any())
|
||||
{
|
||||
var sln = slns.First();
|
||||
var templatePath = GetCurrentProjectPath + "/Template/sln.txt";
|
||||
string appendText = System.IO.File.ReadAllText(templatePath)
|
||||
|
Reference in New Issue
Block a user