Repository navigation
Conversation
SDK 的 PackVpx 把整个 $(TargetDir) 原样打进 .vpx,于是 2.1.9 的 8 个包里共带了 20 个 pdb/xml(含 VelaShell.Rdp、VelaShell.Vnc 的)。在 plugins/Directory.Build.props 里 对 Release 构建: - CopyOutputSymbolsToOutputDirectory / CopyDocumentationFileToOutputDirectory = false: 插件自己的 pdb 与 xml 照常生成在 obj/(文档注释告警不受影响),只是不复制到 bin/; - AllowedReferenceRelatedFileExtensions 写成默认清单去掉 .pdb;.xml:被引用工程的 pdb / xml 不再随引用带进来(留空会回落到含 .pdb;.xml 的默认值)。 输出目录本身干净了,PackVpx、GetVelaPluginPayload、artifacts/plugins 暂存三条路一次全对。 Debug 不变(本机宿主挂调试器要 pdb)。代价:Release 包里插件的异常堆栈不带源码行号。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
主要改动
Release 打出的
.vpx不再带.pdb与 API 文档.xml。原因:SDK 的
PackVpx把整个$(TargetDir)原样打进包。已发布的 2.1.9 里,8 个插件共带了 20 个 pdb/xml(每个插件自己的,外加VelaShell.Rdp、VelaShell.Vnc的)。插件包GetVelaPluginPayload原本就排除了它们,只有.vpx这条路漏了。改法(
plugins/Directory.Build.props,只对 Release、只对插件工程):CopyOutputSymbolsToOutputDirectory/CopyDocumentationFileToOutputDirectory=false:插件自己的 pdb 与 xml 照常生成在obj/(文档注释的编译告警照常生效),只是不复制到bin/;AllowedReferenceRelatedFileExtensions写成 MSBuild 默认清单去掉.pdb;.xml:被引用工程的 pdb/xml 不再随引用带进来(留空会回落到含这两项的默认值,所以必须显式写)。输出目录本身干净了,
PackVpx、GetVelaPluginPayload、artifacts/plugins暂存三条路一次全对,不需要清理步骤,也不用改 SDK。plugins/Directory.Build.targets只更新了注释。不变的:Debug 构建照旧带 pdb(本机宿主挂调试器要用);测试在 Debug 下跑,不受影响。
代价:Release 包里的插件抛异常时,堆栈不带源码行号。
验证
PackAllVpx,用 SDK 自己的VpxContainer打开每个.vpx列出内容:8 个包 0 个 pdb/xml。同样的方法检查 Release 上的 2.1.9:20 个。bin/里 pdb/xml 照旧;Release 的obj/里两者照旧生成。文档
不涉及文档修改:打包产物的内容不在 velashell-docs 的描述范围内,本仓库 README 也没有写过包里带 pdb。