tfs - Using Team Foundation Server on a development web site -
we'd start using team foundation server keep track of versions of .aspx files. use shared drive develop on asp.net site visual studio editor.
when set our paths in team foundation server, it's between our local drive , box tfs. not ideal because doesn't push changes live our development site (separate box).
is there way check out, edit, , check in files work on appear on our shared drive on iis server? or have work on them locally , copy them server?
there several options.
simple: use robocopy push files dev server local machine dev server once you've checked in changes. simple set doesn't utilise full tfs capability , potentially overwrite other devs changes on server.
advanced: use automated build. if use "default" build template compile web site solution , in build output have folder contains folder called "published websites" contains need deploy code server. once have use msdeploy publish code iis
other advantages using build
- you can run code analysis against code on each build
- you know instantly when checks in code doesn't compile
- you can run unit tests against code on build environment
- to on server must check in, therefore can confident haven't published code didn't checked in source control
- you can compile in both debug , release mode in same build, reducing risk of debug code shipping
- you can reports on things code churn, unit test code coverage , build failures improve quality of code deliver , understand weaknesses in development workflow.
- reduce number of times hear "it works on machine"
if you're new tfs can quite daunting. suggest set automated build nothing more build solution. can copy build output dev server. once you're comfortable start @ enhancing build. e.g. turning on code analysis easy. if you're writing unit tests should easy integrate in build. setting msdeploy takes bit more time , knowledge.
Comments
Post a Comment