How to close/dispose tool window when visual studio solution closed and create/open toolwindow again in an extension

怎甘沉沦 提交于 2020-08-06 06:09:08

问题


  • I created a tool window inside visual studio extension using https://docs.microsoft.com/en-us/visualstudio/extensibility/adding-a-tool-window?view=vs-2019. I show some documentation in it based on user inputs from the wizard.Ex : User selected Tab, I show Tab related documentation
  • User closed the solution
  • User created another project , He changed the user input Ex : Bot is selected

Expected : Bot documentation to be shown

Actual : Tab documentation is shown(Tool window content doesn't change)

Question : How to destroy the tool window and how to create it again?

来源:https://stackoverflow.com/questions/63180631/how-to-close-dispose-tool-window-when-visual-studio-solution-closed-and-create-o

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