SharePoint - 如何将 VSEWSS 解决方案从 VS2005 升级到 VS2008

发布于 2024-07-26 12:47:51 字数 633 浏览 7 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何必那么矫情 2024-08-02 12:47:51

谢谢。 对于遇到同样问题的每个人,这里有解决方案的详细信息:

  1. Using System.Runtime.InteropServices; 添加到代码开头
  2. 使用 Guid 生成器创建唯一的 GUID (“C:\Program Files\Microsoft SDKs\Windows\v6.1”) 0A\bin\guidgen.exe")
  3. 在课程之前添加以下行:
    [Guid("...您的唯一 GUID...")]

Thank you. For everyone having the same problem here's solution details:

  1. Add Using System.Runtime.InteropServices; to beginning of code
  2. Create unique GUID using Guid generator ("C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\guidgen.exe")
  3. Just before your class add the following line:
    [Guid("...your-unique-guid...")]
清旖 2024-08-02 12:47:51

我设法通过在每个类声明上方添加一个唯一的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文