<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Slash Dot Dash: Using Subversion with a Windows .NET C# project</title>
    <link>http://www.slashdotdash.net/articles/2006/12/11/using-subversion-with-a-windows-net-c-project</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Rolling on Rails</description>
    <item>
      <title>Using Subversion with a Windows .NET C# project</title>
      <description>&lt;p&gt;The following guide has been adapted from the blog posting referenced below.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; To use Subversion with web projects you will need to enable the Subversion  hack to use &lt;code&gt;_svn&lt;/code&gt; directory names instead of the default &lt;code&gt;.svn&lt;/code&gt; (which are incompatible with &lt;span class="caps"&gt;ASP&lt;/span&gt;.NET web projects).&lt;/p&gt;


	&lt;p&gt;1. Import the existing C# project(s) into Subversion.&lt;/p&gt;


&lt;pre&gt;
svn import svn://svn.url/ProjectName/trunk -m "Initial import of ProjectName" 
&lt;/pre&gt;

	&lt;p&gt;2. Once imported you must delete the existing code (or move to a backup location) and then checkout the source from Subversion.&lt;/p&gt;


&lt;pre&gt;
svn checkout svn://svn.url/ProjectName/trunk .
&lt;/pre&gt;

	&lt;p&gt;This will create a working copy in the current folder.&lt;/p&gt;


	&lt;p&gt;The next step is to ignore certain files and directories that should not be stored under version control. These include user-specific files (*.suo) and the &lt;code&gt;bin&lt;/code&gt; and &lt;code&gt;obj&lt;/code&gt; directories (where the compiled output goes).&lt;/p&gt;


	&lt;p&gt;3. Change directory to the folder than contains the solution file and issue the following command (note the dot at the end):&lt;/p&gt;


&lt;pre&gt;
svn propedit svn:ignore .
&lt;/pre&gt;

	&lt;p&gt;Subversion should pop up Notepad (by default) for you to edit the value of the property. If it doesn&amp;#8217;t, set an environment variable called &lt;span class="caps"&gt;SVN&lt;/span&gt;_EDITOR to notepad.exe.  In Notepad, type in the following:&lt;/p&gt;


&lt;pre&gt;
*.suo
Ankh.*
&lt;/pre&gt;

	&lt;p&gt;4. You&amp;#8217;ll also need to make sure some files and folders are ignored for each of the projects referenced by the solution. To do this, type in the following command, once for each of your project folders:&lt;/p&gt;


&lt;pre&gt;
svn propedit svn:ignore &amp;lt;ProjectName&amp;gt;
&lt;/pre&gt;

	&lt;p&gt;In the Notepad window, type the following:&lt;/p&gt;


&lt;pre&gt;
*.user
bin
obj
Bin
&lt;/pre&gt;

	&lt;p&gt;5. Finally all of these changes need to be commited via the following command:&lt;/p&gt;


&lt;pre&gt;
svn commit -m "Set files and folders to be ignored" 
&lt;/pre&gt;

	&lt;h4&gt;References&lt;/h4&gt;


	&lt;p&gt;&lt;a href="http://staff.interesource.com/james/feb06/svnwin4.htm"&gt;Subversion on Windows&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 11 Dec 2006 13:49:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:99810c65-3c14-4efe-9cbb-598803ffbf9a</guid>
      <author>ben@slashdotdash.net (Ben)</author>
      <link>http://www.slashdotdash.net/articles/2006/12/11/using-subversion-with-a-windows-net-c-project</link>
      <category>.NET</category>
    </item>
  </channel>
</rss>
