views:

178

answers:

3

What is the best strategy for making changes to a specific file within a C# .NET project and a DEV server and then moving that file to a different environment, say server B? I noticed it always wants me to recompile on the destination server and I figured I was doing something wrong because I didn't think I would have to (plus the server isn't in-house so it is really slow and time consuming).

Any suggestions or strategies you or your company uses would be appreciated.

+6  A: 
  • Make sure you are using a Web Application project where it compiles a DLL, not web site which uses loose code files.
  • You could use a source code versioning system like Subversion.
Daniel A. White
subversion plus having a build script that does an `update` and then if files were changed recompiles everything.
Earlz
You can also set your hook script up to automatically deploy the change if desired.
GrayWizardx
A: 

use a source control program for source files (like SubVersion) and Cruise Control for binaries built out of those files...

Dani
A: 

For web application development my experience has been:

Developers have a development environment on their local machines that is attached to source control A DEV web server with shares to the projects created allows developers to COPY files to the web application folders manually. A TEST web server where MSI installations ONLY are used to distribute the changes for UAT A PROD web server where MSI installations ONLY are used to distribute the UAT approved MSI

The size of projects I am involved with usually makes build scripts overkill, most times a project is being worked on it is built many times for debugging etc.

WACM161