Ejemplo n.º 1
0
 public Project(LanguageService languageService, Compilation compilation)
 {
     LanguageService = languageService;
     Compilation     = compilation;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Add reference to the project
        /// </summary>
        /// <param name="displayNameOrPath">Assembly name like System.Xml which can be used for search or full path assembly</param>
        public void AddReference(string displayNameOrPath)
        {
            var reference = LanguageService.CreateMetadataReference(displayNameOrPath);

            Compilation = Compilation.AddReferences(reference);
        }