Commits

Christian Specht committed be75772

rename App.config.example to App.config in build script
(fixes #1)

Comments (0)

Files changed (3)

 ## Setup
 
 Bitbucket Backup loads all important values (your Bitbucket username and password, and the backup folder on your local machine) from a config file.
-Before you run Bitbucket Backup the first time, you need to provide your data.
-
-An example configuration file is included. You can find it here:
-**\\src\\BitbucketBackup\\App.config.example**
-
-You need to make a copy of this, change the name to **App.config** and edit the configuration values.
+Before you run Bitbucket Backup the first time, you need to edit **BitbucketBackup.exe.config** and provide your data.
       </ReleaseFiles>
     </ItemGroup>
     <Copy SourceFiles="@(ReleaseFiles)" DestinationFolder="$(ReleaseDir)"/>
+	
+	<!-- rename App.config.example to app.config -->
+	<Copy 
+		SourceFiles="$(ReleaseDir)\App.config.example" 
+		DestinationFiles="$(ReleaseDir)\BitbucketBackup.exe.config"/>	
+	<Delete Files="$(ReleaseDir)\App.config.example"/>
+	
   </Target>
 
 

src/BitbucketBackup/BitbucketBackup.csproj

   </ItemGroup>
   <ItemGroup>
     <None Include="App.config" />
+    <None Include="App.config.example">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.