开发者

Visual Studio 2010 - Web deployment project includes framework DLLs

I have just upgraded a solution with two web deployment projects from VS 2008 to 2010 (upgrading all the projects to .net 4.0 as I went).

I installed the new VS2010 web deployment projects to allow me to open my old build projects (these build up my web sites, clean up a few files and zip them for upload).

I've got these working again, but when I look at the built files, all the referenced .net framework files (e.g. System.Web.dll etc) have been included in the deployed site. Does anybody know why this might be happening and how to turn i开发者_运维知识库t off?


Maybe you are using a component (DLL) which is using that files probably by needing specific file version of some framework libraries. VS will automatically copy dependencies of a dependency.


It seems you're using .Net framework Client profile version. Please check the .Net framework version selected for upgraded projects under Project properties.

Here is the MSDN article on .Net framework client profile: http://msdn.microsoft.com/en-us/library/cc656912.aspx


One reason could be the Copy Local = True property of the referenced .net framework files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜