AddReference() public method

public AddReference ( string assembly ) : void
assembly string
return void
Beispiel #1
0
        private void AddAssemblyReferences()
        {
            VisualStudioProject project = VisualStudio.SelectedProject;

            project.AddReference("System");
            project.AddReference("System.Xml");
            project.AddReference("System.Runtime.Serialization");
            project.AddReference("System.ServiceModel");
            project.AddReference("System.Configuration");
        }
Beispiel #2
0
        /// <summary>
        /// Add more assembly references beyond the basic Fx assemblies
        /// </summary>
        private void AddMetadataExtensionsReference()
        {
            string addinDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            string extensionPath  = Path.Combine(addinDirectory, "Thinktecture.ServiceModel.Extensions.Metadata.dll");

            VisualStudioProject project = this.VisualStudio.SelectedProject;

            project.AddReference(extensionPath);
        }
Beispiel #3
0
 private void AddAssemblyReferences()
 {
     //TODO: we need to find a way to extend this to add the
     //metadata extensions if Enable WSDL is selected.
     currentProject.AddReference("System");
     currentProject.AddReference("System.Xml");
     currentProject.AddReference("System.Runtime.Serialization");
     currentProject.AddReference("System.ServiceModel");
     currentProject.AddReference("System.Configuration");
 }