1 - <ProjectGuid>$guid1$</ProjectGuid> is a GUID of your custom project instance (not the project type GUID). So it should be unique for every new custom project you create.
2 - As for your custom ProjectConfig and BuildableProjectConfig classes. Maybe you just did not create their instances? Note that for adding your CustomProjectConfig class (inherited from MPF class ProjectConfig) you need:
2 - As for your custom ProjectConfig and BuildableProjectConfig classes. Maybe you just did not create their instances? Note that for adding your CustomProjectConfig class (inherited from MPF class ProjectConfig) you need:
- create CustomConfigProvider : ConfigProvider see the code below
-
create CustomConfigProvider instance from your custom project node class
protected override ConfigProvider CreateConfigProvider()
{
return new CustomConfigProvider(this);
}
[ComVisible(true)]
[CLSCompliant(false)]
public class CustomConfigProvider : ConfigProvider
{
public CustomConfigProvider(ProjectNode manager)
: base(manager)
{}
protected override ProjectConfig CreateProjectConfiguration(string configName)
{
// if we already created it, return the cached one
if (configurationsList.ContainsKey(configName))
{
return configurationsList[configName];
}
CustomProjectConfig requestedConfiguration = new CustomProjectConfig (ProjectMgr, configName);
configurationsList.Add(configName, requestedConfiguration);
return requestedConfiguration;
}
public override int GetPlatformNames(uint celt, string[] names, uint[] actual)
{
if (names != null)
{
names[0] = "Any CPU";
}
if (actual != null)
{
actual[0] = 1;
}
return VSConstants.S_OK;
}
public override int GetSupportedPlatformNames(uint celt, string[] names, uint[] actual)
{
if (names != null)
{
names[0] = "Any CPU";
}
if (actual != null)
{
actual[0] = 1;
}
return VSConstants.S_OK;
}
}