Single File Generator not working for .NET Standard Projects in Visual Studio 2017

核能气质少年 提交于 2019-12-05 19:59:21

You need to add a new CodeGeneratorRegistration to your class.

"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"

in my case my class decl looked like

[ComVisible(true)]
[Guid(GuidList.GuidI18NReactivetring)]
[ProvideObject(typeof(I18NReactive))]
[CodeGeneratorRegistration(typeof(I18NReactive), "I18N.Reactive", vsContextGuids.vsContextGuidVCSProject, GeneratesDesignTimeSource = true)]
[CodeGeneratorRegistration(typeof(I18NReactive), "I18N.Reactive", "{9A19103F-16F7-4668-BE54-9A1E7A4F7556}", GeneratesDesignTimeSource = true)]
public class I18NReactive : IVsSingleFileGenerator, IObjectWithSite
{
}

The source info came from this thread

https://github.com/aspnet/Tooling/issues/394

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!