本文介绍了为什么来自我的 buildserver 的部署包有额外的程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 asp.net mvc 部署包,我正在尝试使用团队城市构建它.包构建没有任何问题,但 bin 文件夹包含不需要的文件(并导致站点出现故障时).

I've got an asp.net mvc deployment package that I'm trying to build with team city. The package builds without any problems, but the bin folder contains file that are not needed (and cause the site to fail when present).

如果我从 Visual Studio 构建相同的包,则附加文件不存在.

If I build the same package from visual studio the additional files are not present.

附加文件是:

Microsoft.VisualBasic.Activities.Compiler.dll
mscorlib.dll
normidna.nlp
normnfc.nlp
normnfd.nlp
normnfkc.nlp
normnfkd.nlp
System.Data.dll
System.Data.OracleClient.dll
System.EnterpriseServices.dll
System.EnterpriseServices.Wrapper.dll
System.Transactions.dll

如何防止这些额外的程序集和 .nlp 文件包含在包中?

What can I do to prevent these additional assemblies and .nlp files from being included in the package?

更新

在对日志文件进行更多挖掘之后,我发现 _CopyFilesMarkedCopyLocal 构建任务正在将文件复制到 bin 目录中.奇怪的是,程序集没有标记为复制本地.

After a bit more digging through log files I've found that the _CopyFilesMarkedCopyLocal build task is copying the files into the bin directory. The odd thing is that the assemblies are not marked as copy local.

推荐答案

经过一番深入研究后,我注意到构建服务器有 .Net 框架,但没有框架 SDK.在构建服务器上安装 SDK 后,不再添加额外的程序集.

After a bunch more digging around I noticed that the build server had the .Net framework on, but not the framework SDK. After installing the SDK on the build server the additional assemblies were no longer added.

这篇关于为什么来自我的 buildserver 的部署包有额外的程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 05:23