In visual studio 2008 sdk document(http://msdn.microsoft.com/en-us/library/bb166416.aspx), I saw that I should implement a CodeBehindCodeGenerator like this:
internal class PythonCodeBehindCodeGenerator
: Microsoft.VisualStudio.Package.Web.CodeBehindCodeGenerator
{
public PythonCodeBehindCodeGenerator()
{
this.IsPartialClassDisabled = true;
}
protected override bool ShouldDeclareField(string name, string typeName)
{
return false;
}
}
and it says the IronPython code-behind code generator is in [Visual Studio SDK installation path]\VisualStudioIntegration\Samples\IronPythonIntegration\Project\PythonCodeBehindCodeGenerator.cs.
but i can't find both the PythonCodeBehindCodeGenerator and the Microsoft.VisualStudio.Package.Web.CodeBehindCodeGenerator, it seems that the document and the example code are not int the same verson.
so, if i want to implement a code behind code generator, what shall i do?