# Remove VS Solution Binding From FB project

**URL:** https://www.finalbuilder.com/forums/t/remove-vs-solution-binding-from-fb-project/581
**Category:** Discussion
**Created:** [September 4, 2007, 8:06am UTC](https://www.finalbuilder.com/forums/t/remove-vs-solution-binding-from-fb-project/581 "2007-09-04T08:06:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![danroot](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@danroot](https://www.finalbuilder.com/forums/u/danroot)
#### Post date: [September 4, 2007, 8:06am UTC](https://www.finalbuilder.com/forums/t/remove-vs-solution-binding-from-fb-project/581/1 "2007-09-04T08:06:37Z")

</div>

We have a client that would like a zipped copy of a Visual Studio solution to download, run, and examine.&nbsp; I'm able to automate this, but when he opens the solution, he gets prompted about source control.&nbsp; To keep this from happening, I would like to automate unbinding the solution from source control before I zip it up.&nbsp;

Typically, this is done in Source Control Options in VS.&nbsp; Any tips on the best automated way to do this?&nbsp;

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.&nbsp; I assume this is because of newline characters, or something.&nbsp; 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.&nbsp; An example of what I'm trying to match is:

GlobalSection(SourceCodeControl) = preSolution  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SccNumberOfProjects = 3  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SccLocalPath0 = .  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CanCheckoutShared = false  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SccProjectUniqueName1 = BenefitsEnrollment\\BenefitsEnrollment.csproj  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SccLocalPath1 = .  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CanCheckoutShared = false  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SccProjectFilePathRelativizedFromConnection1 = BenefitsEnrollment\\  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SccProjectUniqueName2 = BenefitsEnrollment.Requirements\\BenefitsEnrollment.Requirements.csproj  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SccLocalPath2 = BenefitsEnrollment.Requirements  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CanCheckoutShared = false  
&nbsp;&nbsp;&nbsp; EndGlobalSection

Thanks,

Daniel

&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [September 5, 2007, 9:13am UTC](https://www.finalbuilder.com/forums/t/remove-vs-solution-binding-from-fb-project/581/2 "2007-09-05T09:13:58Z")

</div>

Hi Daniel,   
  
 This is actually a limitation in the way the regular expression component we use matches strings. We’ll add a feature to the action shortly which lets you explicitly say “wildcards match across new lines”, but for now this Regular Expression will do the trick:   
  
 (?s)GlobalSection(SourceCodeControl).\*EndGlobalSection   
  
  
 Regards,   
  
 Angus
