Visual Studio - SharePoint 2010 - 包括程序集 >快速问题 [英] Visual Studio - SharePoint 2010 - Include Assembly > Quick Question

查看:53
本文介绍了Visual Studio - SharePoint 2010 - 包括程序集 >快速问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的问题....构建一个 VS 2010 SharePoint 项目,我正在引用一个自定义程序集.我可以在我的代码中引用这个程序集,它可以很好地编写代码等等.当我将项目部署到 SharePoint 时,我的功能激活代码将不会运行,因为自定义程序集未与项目一起部署.

I have a quick question....building a VS 2010 SharePoint project and I am referencing a custom assembly. I can reference this assembly in my code and it works fine to write code and all. When I deploy the project to SharePoint my Feature Activation code will not run because the custom assembly does not get deployed with the project.

我已在引用的程序集上将 Copy Local 设置为 TRUE.我错过了什么吗?

I have set Copy Local to TRUE on the referenced assembly. Am I missing something?

谢谢

推荐答案

当您在 Visual Studio 2010 中创建 SharePoint 项目时,您将在其中看到一个名为 Package 的项目.单击打开它并在左下角单击高级",您将查看添加其他程序集的选项,添加任意数量的程序集 > 您在此处选择的所有程序集都将作为您创建的 SHarePoint 包的一部分进行部署.

When you Create SharePoint Project in Visual Studio 2010, you will see a Item called Package in it.Click open it and bottom left corner click on Advanced, you will see an option to add additional assemblies , add as many you want > all assemblies you select here will get deployed as a Part of SHarePoint Package you create.

这篇关于Visual Studio - SharePoint 2010 - 包括程序集 >快速问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆