我有一个ASP.NET MVC部署包,想要通过Team City构建。这个包可以顺利构建,但bin文件夹中包含了不需要的文件(在出现时会导致网站崩溃)。
如果我从Visual Studio构建相同的包,则不会有额外的文件出现。
额外的文件包括:
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文件被包含在软件包中?
更新
经过查看日志文件,我发现_CopyFilesMarkedCopyLocal
构建任务将这些文件复制到了bin目录中。奇怪的是,这些程序集并没有标记为本地复制。