Why is Microsoft.SharePoint.Search.dll copied in my project?

  • Why is Microsoft.SharePoint.Search.dll copied in my project? Hafthor

    When working on a VS project that involves referencing Microsoft.SharePoint.dll, building the project causes Microsoft.SharePoint.Search.dll to be copied to my bin folder. Why is this? Okay, maybe it's just a bug, but I want to know the mechanism. (Thanks to SO, I know how to prevent this from happening, but I still want to find out why it happens in the first place.)

  • I believe this happens because Microsoft.SharePoint.dll uses it as a dependency. As Microsoft.SharePoint.Search.dll is not in the GAC, Visual Studio copies it to the bin folder.

  • Alex is correct, if you want to stop this happening you can use this hack:

    1. Add a reference to Microsoft.SharePoint.Search.dll (in the 12\ISAPI directory)
    2. Select and in the Properties page set Copy Local = false

    This makes it easier when you want to do post build events like coping DLL around.

Related questions and answers
  • I'm using VS 2010 to create a SP 2010 web part. I want to include my images, css files and js files in the VS project, and have them be deployed to the correct location. My understanding is that I...\wpresources\{web part name}\{version}__{pk token}. Is the above correct, or is there a better way? How to I include these fines in the VS project so that they are deployed to this location - e.g. is there a SharePoint mapped folder I have to put them in?

  • I have some code which I am attempting to use to "rollback" a SharePoint document and it's metadata properties to a previous version using ootb version control and the SharePoint API. Here is a sample of my code: int versionCount = item.Versions.Count; if (versionCount > 0) { // this only restores properties item.Versions.Restore(1); } The expected result of calling restore using 1 (the newest version before the current version) would be to restore the file and metadata. Instead, only the metadata is restored and the current file is copied to the new "restored" version. Furthermore

  • to modify all the existing activities without problems. Now, I am starting a new workflow project and I performed my normal routine, but the SharePoint activites were not on the Toolbox. I enabled all... the SharePoint workflow project template guid. So, I added it and could no longer load the project. Besides working on 32 bit or developing in 2008, does anyone know any other work arounds? ...In order to develop SharePoint 2007 workflows in Visual Studio 2008 on 64 bit, I would create a new (non-SharePoint) Workflow project. Then, I would add the appropriate onWorkflowActivated activities

  • Does anyone know what permission levels are required to allow a user to create content but not approve it? I’ve just spent the afternoon trying this and am more confused than when I started. For instance… If I add a user into the Designer site permission group I can create pages – excellent, just as I would expect. If I create a new site permissions level - let’s call it ‘customer-designer’ - by copying the Designer site permission level and then assign this ‘customer-designer’ level to a new site permission group. I then add my user into the new group and… I cannot create pages, even

  • is set to false in the web.config file as well. It is only my user controls that are causing the issue, but I do not know why. So it would be nice if there was a list of known .Net assembles that were not FIPS compliant or some way for me to determine what library is calling the offending code. Any ideas, thoughts, insights are welcome! Update: I wanted to point out that my controls are not used... setting in the web.config file to use the 3des algorithm as I had found on many sites. This fixed most of the issues except for my custom forms .ascx pages as everyone of them still give a FIPS error

  • I’m trying to write a Http Handler to generate rss xml (based on the CKS code). I want to be able to get the list/library that the end point of the url is referring to. For example if my Url is: http://example.org/pressreleases/pages/rss.xml I want to be able to get the pages library of the 'press releases' web. On a side note if I'm going about this in the wrong way please let me know. Update 1 It may be easier for me to show my code (incase of retardation) public void ProcessRequest(HttpContext context) { try { SPList list

  • I have a request for a migration project. My client has a mechanism for Wikis. So they are looking at the feasibility of migrating existing data from wiki onto SharePoint site server. So how can I start off with this project?

  • I have an InfoPath form embedded in a MOSS 2007 page. The form is for requesting approval for a project. The submit button submits the form data to a form library. That triggers a workflow to get approval for the request. So far, my workflow uses the "Collect Data From User" action and the "Send and email" action. I configured data collection option so that there are two inputs: two radio... to the approver doesn't seem to be editable or have the option of being disabled (I don't want them to have a link to the XML for simplicity sake) The link from the "You have been assigned as task" email

  • the problem could be, or how to fix it. EDIT I have tried a few things: Gave "Everyone" group modify access to the area where the solution files are Checked out solution and projects files so.... at EnvDTE.Project.get_CodeModel() at Microsoft.SharePoint.Tools.Reflection.TypeFinder.GetTypesAsCodeElement(Project project, CodeElement parent, String targetTypeFullName) at Microsoft.SharePoint.Tools.Reflection.TypeFinder.Find(Project project, String targetTypeFullName) at Microsoft.SharePoint.Tools.SharePointSolutions.SourceFeatureElementDirector.FindClasses(Project project

Data information