3

我想在某些文件中使用修改后的代码更新应用程序,那么更新 .dll 文件扩展名和必要的文件就足够了,还是我需要替换整个项目?

4

1 回答 1

1

You probably never need to replace the whole project. After you recompile, look at what DLLs were modified. You shouldn't need to replace every DLL in your bin, but you may need to replace each DLL that represents a project in your solution, depending on the dependencies of your solution.

So you will need to move over the DLLs that changed, as well as any other files that were modified (obviously excluding .cs, etc).

Though ideally, you will just use the "Publish" feature in Visual Studio, which automatically will copy over any (and only) necessary modified files. Doing it manually leaves too much room for error. Also (ideally) you will have a test server to publish with Debug settings so you can test, and then you publish with Release settings to your live server.

How to: Deploy a Web Project Using One-Click Publish in Visual Studio

于 2013-04-01T14:35:49.563 回答