public Context() { FileSystem = new FileSystem(); FileSystem.ErrorOccured += error => { ErrorList.Add(error.ToString()); }; MsBuildQueue = new MsBuildQueue { Trace = trace => { ProcessInfo.Text = trace; }, OnError = error => { ErrorList.Add(error.ToString()); } }; }
void Export() { var csprojFileGenerator = new CsprojFileGenerator { FileSystem = FileSystem, FileNames = Context.EntityProjectSourceFileNames, NamespaceName = NamingMap.EntityNamespace, IsClientDll = true, ProjectDirectory = NamingMap.EntityProjectDirectory, References = EntityFileExporter.Config.AssemblyReferences }; var csprojFilePath = csprojFileGenerator.Generate(); MsBuildQueue.Push(csprojFilePath); }
void Export() { foreach (var item in Config.DefaultAssemblyReferences) { Context.RepositoryAssemblyReferences.Add(Resolve(item)); } var csprojFileGenerator = new CsprojFileGenerator { FileSystem = FileSystem, FileNames = Context.RepositoryProjectSourceFileNames, NamespaceName = NamingMap.RepositoryNamespace, IsClientDll = false, ProjectDirectory = NamingMap.RepositoryProjectDirectory, References = Context.RepositoryAssemblyReferences }; var csprojFilePath = csprojFileGenerator.Generate(); MsBuildQueue.Push(csprojFilePath); }
void Export() { foreach (var reference in Config.DefaultAssemblyReferences) { EntityAssemblyReferences.Add(Resolve(reference)); } var csprojFileGenerator = new CsprojFileGenerator { FileSystem = FileSystem, FileNames = new List <string> { "All.cs" }, NamespaceName = NamingMap.EntityNamespace, IsClientDll = true, ProjectDirectory = Context.NamingMap.EntityProjectDirectory, References = EntityAssemblyReferences }; var csprojFilePath = csprojFileGenerator.Generate(); MsBuildQueue.Push(csprojFilePath); }