[Monodevelop-patches-list] r1980 - in trunk/MonoDevelop/Core: . build/AddIns/AddIns/BackendBindings build/AddIns/AddIns/BackendBindings/templates src/AddIns/BackendBindings/CSharpBinding src/AddIns/DisplayBindings/SourceEditor/Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Oct 14 23:50:14 EDT 2004
Author: fawad
Date: 2004-10-14 23:50:14 -0400 (Thu, 14 Oct 2004)
New Revision: 1980
Added:
trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/AppConfigFile.xft.xml
Modified:
trunk/MonoDevelop/Core/ChangeLog
trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/BackendBindings.addin.xml
trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/Makefile.am
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
Log:
Add missing NemerleGtkSharpWindow.xft.xml reference causing error in File->New.
Added support for app.config at compile time for C#, and added template for same under File->New->Misc.
Modified: trunk/MonoDevelop/Core/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/ChangeLog 2004-10-12 16:36:06 UTC (rev 1979)
+++ trunk/MonoDevelop/Core/ChangeLog 2004-10-15 03:50:14 UTC (rev 1980)
@@ -1,3 +1,12 @@
+2004-10-15 Fawad Halim <fawad at fawad.net>
+
+ * build/AddIns/AddIns/BackendBindings/templates/Makefile.am: Add missing NemerleGtkSharpWindow.xft.xml reference.
+ * src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs:
+ * src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs:
+ * build/AddIns/AddIns/BackendBindings/BackendBindings.addin.xml:
+ * build/AddIns/AddIns/BackendBindings/templates/AppConfigFile.xft.xml: Added support for app.config at compile time for C#, and added template for same under File->New->Misc.
+
+
2004-10-04 Todd Berman <tberman at off.net>
* configure.in: Add a --with-gtk-sharp-2-0 to allow gtk-sharp-2-0
Modified: trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/BackendBindings.addin.xml
===================================================================
--- trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/BackendBindings.addin.xml 2004-10-12 16:36:06 UTC (rev 1979)
+++ trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/BackendBindings.addin.xml 2004-10-15 03:50:14 UTC (rev 1980)
@@ -27,6 +27,8 @@
location = "templates/GtkSharpWindow.xft.xml"/>
<FileTemplate id = "EmptyHTMLFile"
location = "templates/EmptyHTMLFile.xft.xml"/>
+ <FileTemplate id = "AppConfigFile"
+ location = "templates/AppConfigFile.xft.xml"/>
<FileTemplate id = "EmptyResourceFile"
location = "templates/EmptyResourceFile.xft.xml"/>
<FileTemplate id = "EmptyTextFile"
Added: trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/AppConfigFile.xft.xml
===================================================================
--- trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/AppConfigFile.xft.xml 2004-10-12 16:36:06 UTC (rev 1979)
+++ trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/AppConfigFile.xft.xml 2004-10-15 03:50:14 UTC (rev 1980)
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<Template Originator="Fawad Halim" Language="XML" Created="10/14/2004" LastModified="10/14/2004">
+
+ <TemplateConfiguration>
+ <_Name>Application Configuration File</_Name>
+ <Icon>Icons.32x32.TextFileIcon</Icon>
+ <Category>Misc</Category>
+ <LanguageName>XML</LanguageName>
+ <_Description>Creates a .NET application configuration file.</_Description>
+ </TemplateConfiguration>
+
+ <TemplateFiles>
+ <File DefaultExtension=".config" DefaultName="app">
+ <![CDATA[<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+</configuration>]]>
+ </File>
+ </TemplateFiles>
+
+ <FileOptions/>
+
+</Template>
Modified: trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/Makefile.am 2004-10-12 16:36:06 UTC (rev 1979)
+++ trunk/MonoDevelop/Core/build/AddIns/AddIns/BackendBindings/templates/Makefile.am 2004-10-15 03:50:14 UTC (rev 1980)
@@ -34,6 +34,8 @@
JavaConsoleApplicationProject.xpt.xml \
Library.xpt.xml \
NemerleEmptyProject.xpt.xml \
-NemerleGtkSharpProject.xpt.xml
+NemerleGtkSharpProject.xpt.xml \
+NemerleGtkSharpWindow.xft.xml \
+AppConfigFile.xft.xml
EXTRA_DIST = $(template_DATA)
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2004-10-12 16:36:06 UTC (rev 1979)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2004-10-15 03:50:14 UTC (rev 1980)
@@ -207,8 +207,12 @@
break;
}
}
+
+ // Treat app.config in the project root directory as the application config
+ if(Path.GetFileName(finfo.Name).ToUpper()=="app.config".ToUpper() &&
+ Path.GetDirectoryName(finfo.Name)==p.BaseDirectory)
+ File.Copy(finfo.Name,exe+".config",true);
}
-
if (compilerparameters.GenerateXmlDocumentation) {
writer.WriteLine("\"/doc:" + Path.ChangeExtension(exe, ".xml") + '"');
}
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-10-12 16:36:06 UTC (rev 1979)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs 2004-10-15 03:50:14 UTC (rev 1980)
@@ -40,6 +40,8 @@
return true;
if (mimetype == "application/x-python")
return true;
+ if (mimetype == "application/x-config")
+ return true;
return false;
}
More information about the Monodevelop-patches-list
mailing list