Permalink
Browse files

Extracted version and common assembly attributes.

  • Loading branch information...
1 parent ef735d8 commit b68bcdbc9a8fcdd3662a3a0062c5e6a3a1a0d06a Matt Burke committed Oct 5, 2010
View
7 CommonAssemblyInfo.cs
@@ -0,0 +1,7 @@
+using System.Reflection;
+
+[assembly: AssemblyCompany("SEP")]
+[assembly: AssemblyProduct("GitTfs")]
+[assembly: AssemblyCopyright("Copyright © 2009-2010")]
+[assembly: AssemblyVersion(GitTfsProperties.Version)]
+[assembly: AssemblyFileVersion(GitTfsProperties.Version)]
View
18 GitTfs.Vs2008/GitTfs.Vs2008.csproj
@@ -70,6 +70,9 @@
</Reference>
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\CommonAssemblyInfo.cs">
+ <Link>Properties\CommonAssemblyInfo.cs</Link>
+ </Compile>
<Compile Include="..\GitTfs.VsCommon\TfsApiBridge.cs">
<Link>TfsApiBridge.cs</Link>
</Compile>
@@ -79,6 +82,9 @@
<Compile Include="..\GitTfs.VsCommon\Wrappers.cs">
<Link>Wrappers.cs</Link>
</Compile>
+ <Compile Include="..\Version.cs">
+ <Link>Properties\Version.cs</Link>
+ </Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TfsHelper.Vs2008.cs" />
<Compile Include="TfsPlugin.cs" />
@@ -90,12 +96,12 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
<PropertyGroup>
<PostBuildEvent>xcopy /y "$(TargetDir)*.dll" "$(SolutionDir)GitTfs\$(OutDir)"</PostBuildEvent>
View
19 GitTfs.Vs2008/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
@@ -8,11 +7,6 @@
[assembly: AssemblyTitle("GitTfs.Vs2008")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("SEP")]
-[assembly: AssemblyProduct("GitTfs.Vs2008")]
-[assembly: AssemblyCopyright("Copyright © 2009-2010")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
@@ -21,16 +15,3 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("08b00a8b-ef09-4850-9ea7-667ae091cd33")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.9.1.0")]
-[assembly: AssemblyFileVersion("0.9.1.0")]
View
18 GitTfs.Vs2010/GitTfs.Vs2010.csproj
@@ -57,6 +57,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\CommonAssemblyInfo.cs">
+ <Link>Properties\CommonAssemblyInfo.cs</Link>
+ </Compile>
<Compile Include="..\GitTfs.VsCommon\TfsApiBridge.cs">
<Link>TfsApiBridge.cs</Link>
</Compile>
@@ -66,6 +69,9 @@
<Compile Include="..\GitTfs.VsCommon\Wrappers.cs">
<Link>Wrappers.cs</Link>
</Compile>
+ <Compile Include="..\Version.cs">
+ <Link>Properties\Version.cs</Link>
+ </Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TfsHelper.Vs2010.cs" />
<Compile Include="TfsPlugin.cs" />
@@ -77,12 +83,12 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
<PropertyGroup>
<PostBuildEvent>xcopy /y "$(TargetDir)*.dll" "$(SolutionDir)GitTfs\$(OutDir)"</PostBuildEvent>
View
19 GitTfs.Vs2010/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
@@ -8,11 +7,6 @@
[assembly: AssemblyTitle("GitTfs.Vs2010")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("GitTfs.Vs2010")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
@@ -21,16 +15,3 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f876a2ae-258b-4c59-8303-8399d453e748")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.9.1.0")]
-[assembly: AssemblyFileVersion("0.9.1.0")]
View
20 GitTfs/GitTfs.csproj
@@ -60,6 +60,12 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\CommonAssemblyInfo.cs">
+ <Link>Properties\CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\Version.cs">
+ <Link>Properties\Version.cs</Link>
+ </Compile>
<Compile Include="Commands\Checkin.cs" />
<Compile Include="Commands\CheckinOptions.cs" />
<Compile Include="Commands\Clone.cs" />
@@ -137,14 +143,14 @@
<None Include="Core\TfsInterop\README.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
<PropertyGroup>
<PreBuildEvent>"$(ProjectDir)..\GetCurrentVersion" "$(GitPath)" &gt; "$(ProjectDir)GitVersionInfo"</PreBuildEvent>
</PropertyGroup>
-</Project>
+</Project>
View
19 GitTfs/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
@@ -8,11 +7,6 @@
[assembly: AssemblyTitle("GitTfs")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("SEP")]
-[assembly: AssemblyProduct("GitTfs")]
-[assembly: AssemblyCopyright("Copyright © 2009-2010")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
@@ -21,16 +15,3 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("8f8bad5d-9e77-4e45-9b08-54340c9c6077")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.9.1.0")]
-[assembly: AssemblyFileVersion("0.9.1.0")]
View
4 Version.cs
@@ -0,0 +1,4 @@
+partial class GitTfsProperties
+{
+ public const string Version = "0.9.1.0";
+}

0 comments on commit b68bcdb

Please sign in to comment.