SharePoint - 如何将 VSEWSS 解决方案从 VS2005 升级到 VS2008
我使用 VseWss 1.1 在 Visual Studio 2005 中成功创建了 MOSS 解决方案 我现在尝试升级到 Visual Studio 2008 以使用 VseWss 1.3 升级没有引发任何错误,但是现在当我尝试部署时出现以下错误:
The class id 00000000-0000-0000-0000-000000000000 存在于两个 MyGlobals 的解决方案中 (C:\Code\website\ MySolution\MyGlobal.cs) 和 MyWelcomeLayoutFeatureReceiver (C:\Code\website\MySolution\Modules\MyWelcomeLayout\MyWelcomeLayoutFeatureReceiver.cs)。 类 ID 必须是唯一的才能成功部署。 每个类文件中的 Guid 属性应与该特定功能的功能清单中的功能 id 相匹配。
当我尝试在 VS 中打开 WSP 视图时,出现相同的错误。 我对我的文件进行了搜索,没有一个文件的 guid 只包含零。 MyGlobals 类不是特定功能的一部分,而只是程序集的一部分(因此没有唯一的 guid!!,只有程序集有)。
有没有人遇到过这个问题并解决了或者有任何升级提示? 谢谢
I have a MOSS solution successfully created in Visual Studio 2005 using VseWss 1.1
I have now tried to upgrade to Visual Studio 2008 to use VseWss 1.3
The upgrade did not raise any errors however now when I try to deploy I get the following error:
The class id 00000000-0000-0000-0000-000000000000 exists in this Solution in both MyGlobals (C:\Code\website\MySolution\MyGlobal.cs) and MyWelcomeLayoutFeatureReceiver (C:\Code\website\MySolution\Modules\MyWelcomeLayout\MyWelcomeLayoutFeatureReceiver.cs). Class id's must be unique for deployment to succeed. The Guid attribute in each of the class files should match the feature id in the feature manifest for that particular feature.
I get the same error when I try to open the WSP view in VS.
I have run a search on my files and none of them have a guid containing only zeros. The MyGlobals class is not part of a specific feature but rather is just part of the assembly (so doesn't have a unique guid!!, only the assembly does).
Has anyone had this problem and resolved it or have any tips for the upgrade?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谢谢。 对于遇到同样问题的每个人,这里有解决方案的详细信息:
Using System.Runtime.InteropServices;
添加到代码开头[Guid("...您的唯一 GUID...")]
Thank you. For everyone having the same problem here's solution details:
Using System.Runtime.InteropServices;
to beginning of code[Guid("...your-unique-guid...")]
我设法通过在每个类声明上方添加一个唯一的 guid 属性来解决该问题。 还是有点奇怪,因为当我创建一个新项目时,我不需要这样做。
I managed to resolve the problem by adding a unique guid attribute above each class declaration. Still a bit strange as when I create a new project I don't need to do this.