如何在.vsix包中包含调试符号 [英] How to include debugging symbols to .vsix package

查看:130
本文介绍了如何在.vsix包中包含调试符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了Visual Studio扩展供私人使用.该程序包仍在开发中,但我想使用它并将其分发给我的同事.是否可以在.vsix软件包中包含调试符号(.pdb)?我更喜欢Visual Studio或Project设置,而不是程序包编辑.

I have written visual studio extension for private use. The package is still under development but I would like to use it and distribute it to my colleagues. Is it possible to include debugging symbols (.pdb) to .vsix package? I prefer a Visual Studio or Project setting to the package editing.

推荐答案

在VS UI中没有针对它的设置,但是您可以编辑.csproj或.vbproj文件来进行更改.如果您在记事本中打开.csproj文件,请更新该文件或将其添加到<PropertyGroup>

There's no setting for it within the VS UI, but you can edit your .csproj or .vbproj file to change it. If you open the .csproj file in notepad, either update or add this under a <PropertyGroup>

<IncludeDebugSymbolsInVSIXContainer>true</IncludeDebugSymbolsInVSIXContainer>

您可能想将其添加到调试" PropertyGroup下,以使其包含在调试版本中,而不发布可能会公开放置的版本.如果您有添加到VSIX的项目引用,请转到项目文件中的<ProjectReference>节点,然后查找:

You probably want to add this under your "debug" PropertyGroup so that way it gets included in debug builds but not release ones you might stick somewhere public. If you have project references that get added to the VSIX, go to the <ProjectReference> node in your project file and look for:

<IncludeOutputGroupsInVSIX>BuiltProjectOutputGroup%3bBuiltProjectOutputGroupDependencies%3bGetCopyToOutputDirectoryItems%3b</IncludeOutputGroupsInVSIX>
<IncludeOutputGroupsInVSIXLocalOnly>DebugSymbolsProjectOutputGroup%3b</IncludeOutputGroupsInVSIXLocalOnly>

第一行是VSIX中包含的输出组,第二行是在按F5键时在本地复制的输出组.按预期调整组,其中%3b是a的转义形式;是这里的定界符.

The first line is the output groups that get included in the VSIX, and the second is what gets copied locally when you hit F5. Tweak the groups as expected, where the %3b is the escaped form of a ; and is the delimiter here.

这篇关于如何在.vsix包中包含调试符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆