public VSNetCSharpProject AddWinServiceProject(string name) { VSNetCSharpProject project = new VSNetCSharpProject(ProjectType.WinService, name, this); Projects.Add(project.ProjectName, project); ProjectConfig.AddConfigItem(project.ProjectID + ".Debug.ActiveCfg", "Debug|.NET"); ProjectConfig.AddConfigItem(project.ProjectID + ".Debug.Build.0", "Debug|.NET"); ProjectConfig.AddConfigItem(project.ProjectID + ".Release.ActiveCfg", "Release|.NET"); ProjectConfig.AddConfigItem(project.ProjectID + ".Release.Build.0", "Release|.NET"); project.AddAsmReference("System", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"); project.AddAsmReference("System.Data", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"); project.AddAsmReference("System.Xml", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Xml.dll"); project.AddAsmReference("System.Configuration.Install", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Configuration.Install.dll"); project.AddAsmReference("System.Management", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Management.dll"); project.AddAsmReference("System.ServiceProcess", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.ServiceProcess.dll"); return project; }
public VSNetCSharpProject AddClassLibProject(string name) { VSNetCSharpProject project = new VSNetCSharpProject(ProjectType.ClassLib, name, this); Projects.Add(project.ProjectName, project); ProjectConfig.AddConfigItem(project.ProjectID + ".Debug.ActiveCfg", "Debug|.NET"); ProjectConfig.AddConfigItem(project.ProjectID + ".Debug.Build.0", "Debug|.NET"); ProjectConfig.AddConfigItem(project.ProjectID + ".Release.ActiveCfg", "Release|.NET"); ProjectConfig.AddConfigItem(project.ProjectID + ".Release.Build.0", "Release|.NET"); project.AddAsmReference("System", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"); project.AddAsmReference("System.Data", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"); project.AddAsmReference("System.XML", @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"); return project; }