PLK 和 Web 服务软件工厂
我们在 Web 服务软件工厂中发现了一个错误,可以在此处找到说明。目前还没有更新,因此我们决定下载代码并自行修复。非常简单的错误,我们用大约 3 行代码修补了它。然而*我们现在尝试重新打包并使用它,发现这似乎是一个不可能的过程。
有人可以向我解释一下 PLK 的流程吗?我已经阅读了所有相关内容,但仍然不明白分发 VS 包真正需要什么。
我能够使用从 此处,但我假设您必须是 合作伙伴以获得可在其他人的系统上识别的功能性 PLK?
每次我尝试在不同的计算机上安装它时,我都会收到“包加载失败”的消息。我收到错误的原因是因为我没有使用合作伙伴密钥吗?还有其他办法解决这个问题吗?例如,我们有什么办法可以拥有一个可以分发的“内部”VS 包吗?
编辑 我必须更改文件才能使其正常工作。
- 首先运行 devenv PostInstall.proj
- 生成您的 plk 并替换 ##Package PLK##(.resx 文件) --注意包版本不是类名而是“Web Service Software Factory: Modeling Edition” -- 并且您需要从关键
- ProductDefinitionRegistryFragment.wxi 第 1252 行中删除新行(将版本更新为您在 plk 中使用的任何版本)
- 取消注释所有 // [VSShell::ProvideLoadKey("Standard", .tt 文件中的常量。
We found a bug in Web Service Software Factory a description can be found here. There has been no updates on it so we decided to download the code and fix it ourself. Very simple bug and we patched it with maybe 3 lines of code. However* we have now tried to repackage it and use it and are finding that this is seemingly an impossible process.
Can someone please explain to me the process of PLKs? I have read all about them but still don't understand what is really required to distribute a VS package.
I was able to get it to load and run using a PLK obtained from here, but i am assuming that you have to be a partner to get a functional PLK that will be recognized on other peoples systems?
Every time i try and install this on a different computer I get a "Package Load Failure". Is the reason I am getting errors because I am not using a partner key? Is there any other way around this? For instance is there any way we can have an "internal" VS package that we can distribute?
Edit
Files I had to change to get it to work.
- First run devenv PostInstall.proj
- Generate your plks and replace ##Package PLK## (.resx files)
--Just note that package version is not the class name but is "Web Service Software Factory: Modeling Edition"
-- And you need to remove the new lines from the key - ProductDefinitionRegistryFragment.wxi line 1252(update version to whatever version you used in plk)
- Uncomment all // [VSShell::ProvideLoadKey("Standard", Constant in .tt files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简而言之,答案是否定的,您不需要成为在 Microsoft 注册的 VSIP 合作伙伴即可获取和使用 PLK。您从网站获得的 PLK 应该可以在任何 VS 安装上运行。 (与此相关的是,Microsoft 已完全消除了 VS 2010 对 PLK 的要求。)
以下页面应有助于调试问题所在:
http://msdn.microsoft.com/en-us/library/bb164677.aspx
http://blogs.msdn.com/dr._ex/archive/2006/12/ 14/debugging-package-load-failures.aspx
Visual Studio 2008 SDK 中还有一个称为包加载分析器的工具,它可以帮助您调试加载失败(并确认它实际上是 PLK 问题,而不是其他的东西)。将 VSSDK_PLA.exe(在 VS SDK 安装位置下的 VisualStudioIntegration\Tools\Bin 下)复制并运行到测试计算机以安装包加载分析器工具。
The short answer is no, you don't need to be a VSIP partner registered with Microsoft to obtain and use a PLK. The PLK you obtained from the site should work on any VS install. (On a related note, Microsoft has eliminated the requirement for PLK's altogether for VS 2010.)
The following pages should help with debugging what the issue is:
http://msdn.microsoft.com/en-us/library/bb164677.aspx
http://blogs.msdn.com/dr._ex/archive/2006/12/14/debugging-package-load-failures.aspx
There is also a tool in the Visual Studio 2008 SDK called the Package Load Analyzer that should help you debug the load failure (and confirm that it's actually a PLK issue and not something else). Copy and run VSSDK_PLA.exe (under VisualStudioIntegration\Tools\Bin under the VS SDK install location) to your test machine to install the Package Load Analyzer tool.
重建 Web 服务软件工厂时,您不必担心包加载密钥,因为它是依赖于 GAX 的指导包,GAX 具有唯一所需的 PLK。要构建指导包(例如服务工厂),您还需要安装 GAT。
服务工厂源代码应包含构建和重新部署它所需的安装项目。如果您遇到问题,请访问其社区网站 (http://servicefactory.codeplex.com) 上的讨论论坛由团队成员监控。反响相当不错。
Aaron 是对的,整个故事在 VS2010 中变得更加容易。 VSIX 非常可爱。我们正在将服务工厂更新到 VS2010。它应该在一个月内准备好发布。
大学教师
MS p&p
You don't have to worry about package load keys when rebuilding the Web Service Software Factory because it is a guidance package that depends on GAX, which has the only PLK needed. To build guidance packages, like the Service Factory, you also need to have GAT installed.
The Service Factory source should contain the setup projects you need to build and redeploy it. If you have an issue, the discussion forums on its community site (http://servicefactory.codeplex.com) are monitored by team members. Response is pretty good.
Aaron is right that this whole story gets a LOT easier in VS2010. VSIX is pretty sweet. We are updating the Service Factory to VS2010. It should be ready for release within a month.
Don
MS p&p