Click here to Skip to main content
15,885,878 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi all,

About Team Explorer, we can define the drop folder location under build definition.
Example: I define my drop folder location as
\\home\Drop
.

Can we hard code it to append subnet such as
C#
\\home.com.my\Drop
in our .cs file without changing it in build definition? If can, how ya?

I am new to TFS. Hope you all can give me some guidance. Thanks!
I am using VS 2010 64bits, Framework 4.0, TFS.
Posted

1 solution

This is my solution that worked. Sorry for the late update. Hope that it might help others.
C#
string local = buildDetail.DropLocation;
string global = local.Replace(local, "\\\\home.com.my\\Drop);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900