#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 lines
1.7 KiB

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.IO;
using System.Reflection;
using System.Resources;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Commands;
using ICSharpCode.SharpDevelop.Project;
using ICSharpCode.SharpDevelop.Sda;
using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.SharpSnippetCompiler.Core
{
public sealed class SharpSnippetCompilerManager
{
SharpSnippetCompilerManager()
{
}
public static void Init()
{
SharpSnippetCompilerManager manager = new SharpSnippetCompilerManager();
Assembly exe = manager.GetType().Assembly;
string rootPath = Path.GetDirectoryName(exe.Location);
string configDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SharpSnippetCompiler");
string dataDirectory = Path.Combine(rootPath, "data");
CoreStartup startup = new CoreStartup("SharpSnippetCompiler");
startup.ConfigDirectory = configDirectory;
startup.DataDirectory = dataDirectory;
startup.PropertiesName = "SharpSnippetCompiler";
startup.StartCoreServices();
ResourceService.RegisterNeutralStrings(new ResourceManager("Resources.StringResources", exe));
ResourceService.RegisterNeutralImages(new ResourceManager("Resources.BitmapResources", exe));
StringParser.RegisterStringTagProvider(new SharpDevelopStringTagProvider());
string addInFolder = Path.Combine(rootPath, "AddIns");
startup.AddAddInsFromDirectory(addInFolder);
startup.RunInitialization();
}
}
}