We have a client that would like a zipped copy of a Visual Studio solution to download, run, and examine. I'm able to automate this, but when he opens the solution, he gets prompted about source control. To keep this from happening, I would like to automate unbinding the solution from source control before I zip it up.
Typically, this is done in Source Control Options in VS. Any tips on the best automated way to do this?
Related to this, I tried replacing the source code section in .sln
Find (Use * for wildcards checked):
GlobalSection(SourceCodeControl) = preSolution*EndGlobalSection
But always got 0 matches. I assume this is because of newline characters, or something. Any suggestions on the best way to fix this? My regex is rusty, but GlobalSection(SourceCodeControl) = preSolution[./r/n]*EndGlobalSection didn't match anything either. An example of what I'm trying to match is:
GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 3
SccLocalPath0 = .
CanCheckoutShared = false
SccProjectUniqueName1 = BenefitsEnrollment\\BenefitsEnrollment.csproj
SccLocalPath1 = .
CanCheckoutShared = false
SccProjectFilePathRelativizedFromConnection1 = BenefitsEnrollment\\
SccProjectUniqueName2 = BenefitsEnrollment.Requirements\\BenefitsEnrollment.Requirements.csproj
SccLocalPath2 = BenefitsEnrollment.Requirements
CanCheckoutShared = false
EndGlobalSection
Thanks,
Daniel