Exemple #1
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));
 }