VisualBasicProjectFileManagerReferencedAssemblies Property
Gets or sets the referenced assemblies.
Namespace: DevCase.Core.Diagnostics.VisualStudio.SolutionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public SortedDictionary<string, string> ReferencedAssemblies { get; set; }
Public Property ReferencedAssemblies As SortedDictionary(Of String, String)
Get
Set
Dim instance As VisualBasicProjectFileManager
Dim value As SortedDictionary(Of String, String)
value = instance.ReferencedAssemblies
instance.ReferencedAssemblies = value
public:
property SortedDictionary<String^, String^>^ ReferencedAssemblies {
SortedDictionary<String^, String^>^ get ();
void set (SortedDictionary<String^, String^>^ value);
}
member ReferencedAssemblies : SortedDictionary<string, string> with get, set
No code example is currently available or this language may not be supported.
Property Value
SortedDictionaryString,
String
The referenced assemblies.
This is a code example.
No code example is currently available or this language may not be supported.
Dim vbproj As New VisualBasicProjectFileManager("C:\project.vbproj")
Dim referencedAssemblies As SortedDictionary(Of String, String) = vbproj.ReferencedAssemblies
referencedAssemblies.Clear()
referencedAssemblies.Add("System", "") ' Assemblies stored in GAC directory doesnt's require a hint path.
referencedAssemblies.Add("DevCase.Application", "..\..\DevCase\DevCase.Application.dll") ' Relative path.
referencedAssemblies.Add("DevCase.Core", "C:\DevCase\DevCase.Core.dll") ' Absolute path.
vbproj.ReferencedAssemblies = referencedAssemblies
vbproj.Document.Save("C:\modified.vbproj", SaveOptions.None)
Process.Start("notepad.exe", "C:\modified.vbproj")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.