开发者

copying ASP.NET project files with code to server

开发者 https://www.devze.com 2023-02-03 02:08 出处:网络
I know you can copy a Website intact to the server and have it run normally (security and compilation time aside).

I know you can copy a Website intact to the server and have it run normally (security and compilation time aside).

What about the projects that are in the solution? [wh开发者_开发百科ose dll's are copied to the bin when built]. Is there a way to copy the projects' code files to the server as well?

My goal is to be able to debug [by modifying code in the project if needed] directly on the server without having to install an IDE [or keep building on dev machine and copying over dlls]. I can debug/modify the website files, but not the projects.

EDIT: to clarify, not just debug, but be able to edit.


So long as you upload both the DLLs and the PDBs, you should be able to debug successfully without the raw projects on the server. It can be augmented if you have open the matching project / solutions locally. There really isn't a requirement to upload solution, project, or raw code files to the server to debug effectively, remotely. It should be noted that breakig while debugging will hang the app domain on the target application, and as such, should be done with caution in a multiuser environment.


You do not need the project files in order to debug files.

You should read about remote debugging.


Update:

What you want to do sounds very dangerous in a production environment. If you want to develop, develop locally.

Regardless - project and solution files are organizational tools in visual studio as well as build files for the MSBuild build tool. If you don't have either visual studio or MSBuild installed on the server, there is little point in having the project and solution files on it.

Why do you need to develop on a production machine?

0

精彩评论

暂无评论...
验证码 换一张
取 消