Visual Studio 2010 Publish Web feature not including all DLLs

后端 未结 13 2197
梦毁少年i
梦毁少年i 2021-01-31 07:14

I have an ASP.NET MVC 2 application.

  • Web project contains a reference to SomeProject
  • SomeProject contains references to ExternalAssembly1 and ExternalAs
13条回答
  •  轮回少年
    2021-01-31 08:14

    I am having this same problem (different assemblies though). If I reference the assemblies in my web project, then they will get included in the publish output, but they should be included anyway because they are indirect dependencies:

    Web Project ---> Assembly A ---> Assembly B

    On build, assemblies A and B are outputed to the \bin folder. On publish, only assembly A is outputed to the publish folder.

    I have tried changing the publish settings to include all files in the web project, but then I have files in my publish output that shouldn't be deployed.

    This seems like a bug to me.

提交回复
热议问题