解释在 Visual Studio 15 扩展模板中为自定义工具窗口生成的不同组件?
Explain different components generated for CustomToolWindow in VisualStudio 15 extension template?
每当我们在 visual studio 扩展模板中创建 CustomToolWindow 时,它会自己创建一些文件,谁能解释每个文件的意义?
例如,如果通过名称 "Sample" 创建一个 CustomToolWindow,它会创建以下内容:
Sample.cs
SampleCommand.cs
SampleControl.xaml
SamplePackage.vsct
或有关上述内容的任何文档。
谢谢,
迪潘卡尔
这里有一个简单的扩展:https://docs.microsoft.com/en-us/vsts/integrate/ide/extensions/hello_world
提供更多信息,即使是关于自定义命令,但我的理解是它们具有相同的功能:
The VSCT file is where you can rename your commands, as well as define
where they go in the Visual Studio command system. As you explore the
VSCT file, you will notice a lot of commented code that explains what
each section of code controls.
The CS file is where you can define actions, such as the click
handler.
您还可以通过此扩展示例更好地理解这些文件:
每当我们在 visual studio 扩展模板中创建 CustomToolWindow 时,它会自己创建一些文件,谁能解释每个文件的意义? 例如,如果通过名称 "Sample" 创建一个 CustomToolWindow,它会创建以下内容:
Sample.cs
SampleCommand.cs
SampleControl.xaml
SamplePackage.vsct
或有关上述内容的任何文档。
谢谢, 迪潘卡尔
这里有一个简单的扩展:https://docs.microsoft.com/en-us/vsts/integrate/ide/extensions/hello_world 提供更多信息,即使是关于自定义命令,但我的理解是它们具有相同的功能:
The VSCT file is where you can rename your commands, as well as define where they go in the Visual Studio command system. As you explore the VSCT file, you will notice a lot of commented code that explains what each section of code controls.
The CS file is where you can define actions, such as the click handler.
您还可以通过此扩展示例更好地理解这些文件: