[MonoDevelop] What is a Mono version of EnvDTE80 Namespace
Sameer Ahmed
sameer135 at gmail.com
Wed Apr 14 07:45:38 EDT 2010
Hi All,
What is a Mono version of this code?
// Get an instance of the currently running Visual Studio IDE.
EnvDTE80.DTE2 dte = (EnvDTE80.DTE2)
System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.8.0");
if ( dte != null )
{
dte.SuppressUI = true;
EnvDTE.ProjectItem item =
dte.Solution.FindProjectItem("web.config");
if ( item != null )
{
if
(!item.ContainingProject.FullName.ToLower().StartsWith("http:"))
{
System.IO.FileInfo info = new
System.IO.FileInfo(item.ContainingProject.FullName);
path = String.Format("{0}\\{1}", info.Directory.FullName,
item.Name);
configMap = new ExeConfigurationFileMap();
configMap.ExeConfigFilename = path;
}
else
{
configMap = new ExeConfigurationFileMap();
configMap.ExeConfigFilename = item.get_FileNames(0);
}}
Thanks & Regards,
Sameer Ahmed.S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20100414/c366917b/attachment-0001.html
More information about the Monodevelop-list
mailing list