【问题标题】:Where can be found all the Global Variables of VisualStudio? [duplicate]在哪里可以找到 VisualStudio 的所有全局变量? [复制]
【发布时间】:2014-06-19 12:10:43
【问题描述】:

我在哪里可以找到/查看可在设计器文件中使用的 VisualStudio 的可用全局变量列表,例如 $rootnamespace$

【问题讨论】:

  • 什么是“设计器文件”?

标签: c# vb.net winforms visual-studio-2010 visual-studio


【解决方案1】:

这个documentation article 列出了其中的一些。
但是要获得所有这些,您可以实现自己的wizard,然后在IWizard.RunStarted 中,您将在replacementsDictionary 参数中收到这些参数及其各自的值,然后您可以在调试模式下查看它们或保存到文件中。

void RunStarted(
    Object automationObject,  
    Dictionary<string, string> replacementsDictionary,
    WizardRunKind runKind,  
    Object[] customParams  
)

【讨论】:

    猜你喜欢
    • 2021-08-17
    • 2018-06-14
    • 1970-01-01
    • 2017-06-10
    • 1970-01-01
    • 1970-01-01
    • 2015-02-06
    • 2014-02-18
    • 1970-01-01
    相关资源
    最近更新 更多