Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created a SharePoint 2010 web part through Visual Studio 2010. All works nicely. However, I have several web parts to build in total and I have a class library that will contain standard methods I can reuse. When I add this class library to my web part solution I get an error when deploying to SharePoint:-

"Could not load file or assembly 'SPUtilities, Version=0.0.1.0, Culture=neutral, PublicKeyToken=2986f17b005315a6' or one of its dependencies. The system cannot find the file specified."

What am I missing? I cannot seem to find any documentation on this on the internet - all examples show just the creation of a web part.

Thanks in advance.

share|improve this question
    
OK, so I figured out the problem was because my class library wasn't being registered with the GAC. I know when I built SP2007 projects with SPVisualDev it automatically registered dll's with the GAC. Is there a way to do this when creating web parts in VS2010, or will I need a custom script when deploying to do this? –  grimorde Nov 10 '10 at 11:28

1 Answer 1

up vote 2 down vote accepted

After some messing around with the project I found the 'Advanced' tab on the Package.package design view that allows me to select extra project outputs to include in the build.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.