简体   繁体   English

使用WSPBuilder构建WebPart时出现问题

[英]Problem building webpart using WSPBuilder

I have tried creating several web parts using Visual Studio 2010 using available guides for WSPBuilder but I always get the error: 我已尝试使用WSPBuilder的可用指南使用Visual Studio 2010创建多个Web部件,但始终会收到错误消息:

WSPBuilder Version: 1.0.9.1118 Created by Carsten Keutmann GPL License 2007 Building the solution - please wait Can not find the defined Project Assembly : c:\\documents and settings\\adm_marcus\\my documents\\visual studio 2010\\Projects\\TestWSP\\TestWSP\\GAC\\TestWSP.dll Solution compatibility: SharePoint 2007 and SharePoint 2010 Saving the Manifest.xml file Creating the WSP file Cleanup Done! WSPBuilder版本:1.0.9.1118由Carsten Keutmann创建GPL授权2007构建解决方案-请稍候找不到定义的项目组件:c:\\ documents and settings \\ adm_marcus \\ mydocuments \\ visual studio 2010 \\ Projects \\ TestWSP \\ TestWSP \\ GAC \\ TestWSP.dll解决方案兼容性:SharePoint 2007和SharePoint 2010保存Manifest.xml文件创建WSP文件清理完成!

If I then deploy I can see it in the GAC using the Solutions Manager but it doesn't show as available when trying to add it to the Web Parts Gallery. 如果随后进行部署,则可以使用解决方案管理器在GAC中看到它,但是当尝试将其添加到Web部件库时,它不会显示为可用。 I have made an IIS-reset every time after deployment. 部署后,每次都会进行一次IIS重置。

Also, WSPBuilder doesn't create a 12-folder. 此外,WSPBuilder不会创建12文件夹。 Instead I get a SharepointRoot folder. 相反,我得到一个SharepointRoot文件夹。

Does anyone have any clue of what the problem can be? 有人对问题可能有什么线索吗?

It was really quite stupid of me. 我真的很傻。 I thought that I should only use the build process under the WSPBuild menu. 我认为我应该只使用WSPBuild菜单下的生成过程。 When I used the regular menu's Build first and then WSPBuilder's Build I didn't get this message anymore. 当我先使用常规菜单的Build,然后再使用WSPBuilder的Build时,我不再收到此消息。 Then I got another error message regarding unmanaged code and I had to change target framework to C# 3.5. 然后,我又收到了有关非托管代码的错误消息,我不得不将目标框架更改为C#3.5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM