Is it possoble to run 'Generate Local Resources Tool' programmatically?

江枫思渺然 提交于 2020-01-11 06:00:31

问题


Is it possible to run Visual Studio tool: 'Generate Local Resources' programmatically?


回答1:


From a macro in VS2010 you can do this:

Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports EnvDTE90a
Imports EnvDTE100
Imports System.Diagnostics

Public Module Module1

    Public Sub test()
        DTE.ExecuteCommand("Tools.GenerateLocalResource")
    End Sub


End Module


来源:https://stackoverflow.com/questions/4769938/is-it-possoble-to-run-generate-local-resources-tool-programmatically

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