Reference DLL file not copying to bin with deployment project, causing error

前端 未结 14 909
刺人心
刺人心 2020-12-04 09:23

We have several external DLL files being referenced in our Web Application Project. We have a deployment project for installing on the hosting servers. When we were using .N

14条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 09:53

    I am not sure how it was set up in Visual Studio 2008, but I am almost positive that you might have been using the Post-Build event command line. In there you can tell to copy the DLL files you need for deployment. An example is given below:

    mkdir $(SolutionDir)\Deployment
    copy "$(SolutionDir)Your_Library_Name\Your_Dll_ForDeployement.dll" 
    $(SolutionDir)\Deployment\
    

提交回复
热议问题