public void LoadSolution(string folder)
 {
     _folder = folder;
     Loaded = false;
     _project = new CSharpProject(this, _logger, folder);
     Loaded = true;
 }
Beispiel #2
0
 public void LoadSolution(string folder)
 {
     _folder  = folder;
     Loaded   = false;
     _project = new CSharpProject(this, _logger, folder);
     Loaded   = true;
 }
Beispiel #3
0
        public OrphanProject(ISolution solution)
        {
            Title = "Orphan Project";
            _file = new CSharpFile(this, "dummy_file", "");
            Files = new List <CSharpFile>();
            Files.Add(_file);

            ProjectId = Guid.NewGuid();

            string mscorlib = CSharpProject.FindAssembly(CSharpProject.AssemblySearchPaths, "mscorlib");

            ProjectContent = new CSharpProjectContent()
                             .SetAssemblyName("OrphanProject")
                             .AddAssemblyReferences(CSharpProject.LoadAssembly(mscorlib));
        }
        public OrphanProject()
        {
            Title = "Orphan Project";
            Files = new List <CSharpFile>();

            ProjectId = Guid.NewGuid();

            References = new List <IAssemblyReference>();
            FileName   = "OrphanProject";
            string mscorlib = CSharpProject.FindAssembly("mscorlib");

            Console.WriteLine(mscorlib);
            ProjectContent = new CSharpProjectContent()
                             .SetAssemblyName("OrphanProject")
                             .AddAssemblyReferences(CSharpProject.LoadAssembly(mscorlib));
        }
 public void AddReference(string reference)
 {
     AddReference(CSharpProject.LoadAssembly(reference));
 }
Beispiel #6
0
 public void LoadSolution()
 {
     Loaded   = false;
     _project = new CSharpProject(this, _logger, FileName);
     Loaded   = true;
 }
 public void LoadSolution()
 {
     Loaded = false;
     _project = new CSharpProject(this, _logger, FileName, _fileSystem);
     Loaded = true;
 }