2017-11-09 09:53:29 +01:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
using Microsoft.CSharp;
|
|
|
|
|
using Microsoft.VisualStudio.Shell;
|
|
|
|
|
|
|
|
|
|
namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.VSPackage.CustomTool
|
|
|
|
|
{
|
|
|
|
|
[Guid("98983F6D-BC77-46AC-BA5A-8D9E8763F0D2")]
|
|
|
|
|
[ComVisible(true)]
|
|
|
|
|
[ProvideObject(typeof(ReswFileCSharpCodeGenerator))]
|
|
|
|
|
[CodeGeneratorRegistration(typeof(ReswFileCSharpCodeGenerator),
|
|
|
|
|
"C# ResW File Code Generator",
|
|
|
|
|
Guids.ReswFileCSharpCodeGenerator,
|
|
|
|
|
GeneratesDesignTimeSource = true,
|
2018-07-24 13:39:24 +02:00
|
|
|
GeneratorRegKeyName = "ReswFileCodeGeneratorMod")]
|
2017-11-09 09:53:29 +01:00
|
|
|
public class ReswFileCSharpCodeGenerator : ReswFileCodeGenerator
|
|
|
|
|
{
|
|
|
|
|
public ReswFileCSharpCodeGenerator()
|
|
|
|
|
: base(new CSharpCodeProvider())
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int DefaultExtension(out string pbstrDefaultExtension)
|
|
|
|
|
{
|
|
|
|
|
pbstrDefaultExtension = ".cs";
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|