Konstantin Koch 8287c54432 Included the Visual Studio extension and made the necessary changes to make it run.
Replaced the old VS templates with ones that offer more flexiblity.
Started replacing the Content Project for the samples with our custom project type.
Inlcuded a basic not yet working AssimpImporter.
2015-04-08 14:50:03 +02:00

48 lines
970 B
C#

using Microsoft.VisualStudio.Project;
using Microsoft.VisualStudio.Shell;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ANX.Framework.VisualStudio.Controls
{
class VisualStudioSite : ISite
{
ProjectNode node;
public VisualStudioSite(ProjectNode node)
{
this.node = node;
}
public IComponent Component
{
get { return null; }
}
public IContainer Container
{
get { return null; }
}
public bool DesignMode
{
get { return VsShellUtilities.IsVisualStudioInDesignMode(node.Site); }
}
public string Name
{
get;
set;
}
public object GetService(Type serviceType)
{
return node.Site.GetService(serviceType);
}
}
}