Skip to content

Commit

Permalink
Upgraded AssemblyInfo Task usage. All binaries now share the same ver…
Browse files Browse the repository at this point in the history
…sion number.
  • Loading branch information
lextm committed Oct 4, 2011
1 parent dfec666 commit 32ab84a
Show file tree
Hide file tree
Showing 43 changed files with 87 additions and 185 deletions.
4 changes: 3 additions & 1 deletion Browser/Browser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
<Reference Include="System.Configuration" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\lib\SingleInstanceController.cs">
<Link>SingleInstanceController.cs</Link>
</Compile>
Expand Down Expand Up @@ -297,7 +300,6 @@
<None Include="Resources\media-playback-start.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\SharpSnmpLib\Microsoft.VersionNumber.targets" Condition=" '$(Configuration)' == 'Debug' " />
<!-- 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">
Expand Down
8 changes: 0 additions & 8 deletions Browser/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("7.0.010903.00")]
[assembly: AssemblyFileVersion("7.0.010903.00")]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: CLSCompliant(true)]

Expand Down
4 changes: 3 additions & 1 deletion Compiler/Compiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
<CodeAnalysisRuleDirectories>;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\lib\SingleInstanceController.cs">
<Link>SingleInstanceController.cs</Link>
</Compile>
Expand Down Expand Up @@ -189,7 +192,6 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\SharpSnmpLib\Microsoft.VersionNumber.targets" Condition=" '$(Configuration)' == 'Debug' " />
<!-- 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">
Expand Down
8 changes: 0 additions & 8 deletions Compiler/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("7.0.010903.00")]
[assembly: AssemblyFileVersion("7.0.010903.00")]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: CLSCompliant(true)]

Expand Down
8 changes: 0 additions & 8 deletions Samples/C#/snmpbulkget/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
3 changes: 3 additions & 0 deletions Samples/C#/snmpbulkget/snmpbulkget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
10 changes: 1 addition & 9 deletions Samples/C#/snmpdiscover/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,4 @@

// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
[assembly: ComVisible(false)]
3 changes: 3 additions & 0 deletions Samples/C#/snmpdiscover/snmpdiscover.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions Samples/C#/snmpget/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose index type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
3 changes: 3 additions & 0 deletions Samples/C#/snmpget/snmpget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions Samples/C#/snmpgetnext/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
3 changes: 3 additions & 0 deletions Samples/C#/snmpgetnext/snmpgetnext.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions Samples/C#/snmpsendtrap/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
3 changes: 3 additions & 0 deletions Samples/C#/snmpsendtrap/snmpsendtrap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions Samples/C#/snmpset/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose index type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
3 changes: 3 additions & 0 deletions Samples/C#/snmpset/snmpset.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
13 changes: 0 additions & 13 deletions Samples/C#/snmptranslate/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,3 @@

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("85252266-6b47-4da4-9115-50bce52e4e32")]

// 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("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
5 changes: 4 additions & 1 deletion Samples/C#/snmptranslate/snmptranslate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<SccProvider>
</SccProvider>
<TargetFrameworkProfile />
</PropertyGroup>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
Expand Down Expand Up @@ -56,6 +56,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions Samples/C#/snmptrapd/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose index type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
3 changes: 3 additions & 0 deletions Samples/C#/snmptrapd/snmptrapd.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
<Reference Include="System.Configuration" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions Samples/C#/snmpwalk/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
3 changes: 3 additions & 0 deletions Samples/C#/snmpwalk/snmpwalk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
9 changes: 0 additions & 9 deletions Samples/VB.NET/snmpbulkget/Properties/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,3 @@ Imports System.Runtime.InteropServices
' This sets the default COM visibility of types in the assembly to invisible.
' If you need to expose a type to COM, use <ComVisible(true)> on that type.
<assembly: ComVisible(False)>

' The assembly version has following format :
'
' Major.Minor.Build.Revision
'
' You can specify all values by your own or you can build default build and revision
' numbers with the '*' character (the default):

<assembly: AssemblyVersion("1.0.*")>
3 changes: 3 additions & 0 deletions Samples/VB.NET/snmpbulkget/snmpbulkget.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
<Compile Include="..\..\..\lib\SharedAssemblyInfo.vb">
<Link>SharedAssemblyInfo.vb</Link>
</Compile>
<Compile Include="Program.vb" />
<Compile Include="Properties\AssemblyInfo.vb" />
</ItemGroup>
Expand Down
9 changes: 0 additions & 9 deletions Samples/VB.NET/snmpget/Properties/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,3 @@ Imports System.Runtime.InteropServices
' This sets the default COM visibility of types in the assembly to invisible.
' If you need to expose a type to COM, use <ComVisible(true)> on that type.
<assembly: ComVisible(False)>

' The assembly version has following format :
'
' Major.Minor.Build.Revision
'
' You can specify all values by your own or you can build default build and revision
' numbers with the '*' character (the default):

<assembly: AssemblyVersion("1.0.*")>
3 changes: 3 additions & 0 deletions Samples/VB.NET/snmpget/snmpget.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
<Compile Include="..\..\..\lib\SharedAssemblyInfo.vb">
<Link>SharedAssemblyInfo.vb</Link>
</Compile>
<Compile Include="Program.vb" />
<Compile Include="Properties\AssemblyInfo.vb" />
</ItemGroup>
Expand Down
9 changes: 0 additions & 9 deletions Samples/VB.NET/snmpgetnext/Properties/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,3 @@ Imports System.Runtime.InteropServices
' This sets the default COM visibility of types in the assembly to invisible.
' If you need to expose a type to COM, use <ComVisible(true)> on that type.
<assembly: ComVisible(False)>

' The assembly version has following format :
'
' Major.Minor.Build.Revision
'
' You can specify all values by your own or you can build default build and revision
' numbers with the '*' character (the default):

<assembly: AssemblyVersion("1.0.*")>
3 changes: 3 additions & 0 deletions Samples/VB.NET/snmpgetnext/snmpgetnext.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
<Compile Include="..\..\..\lib\SharedAssemblyInfo.vb">
<Link>SharedAssemblyInfo.vb</Link>
</Compile>
<Compile Include="Program.vb" />
<Compile Include="Properties\AssemblyInfo.vb" />
</ItemGroup>
Expand Down
9 changes: 0 additions & 9 deletions Samples/VB.NET/snmpset/Properties/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,3 @@ Imports System.Runtime.InteropServices
' This sets the default COM visibility of types in the assembly to invisible.
' If you need to expose a type to COM, use <ComVisible(true)> on that type.
<assembly: ComVisible(False)>

' The assembly version has following format :
'
' Major.Minor.Build.Revision
'
' You can specify all values by your own or you can build default build and revision
' numbers with the '*' character (the default):

<assembly: AssemblyVersion("1.0.*")>
3 changes: 3 additions & 0 deletions Samples/VB.NET/snmpset/snmpset.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
<Compile Include="..\..\..\lib\SharedAssemblyInfo.vb">
<Link>SharedAssemblyInfo.vb</Link>
</Compile>
<Compile Include="Program.vb" />
<Compile Include="Properties\AssemblyInfo.vb" />
</ItemGroup>
Expand Down
13 changes: 0 additions & 13 deletions Samples/VB.NET/snmptranslate/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,3 @@ Imports System.Runtime.InteropServices
'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("c50721cc-4e5e-4bcb-a819-e5ee806fb457")>

' 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("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>
3 changes: 3 additions & 0 deletions Samples/VB.NET/snmptranslate/snmptranslate.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
<Import Include="System.Diagnostics" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\lib\SharedAssemblyInfo.vb">
<Link>SharedAssemblyInfo.vb</Link>
</Compile>
<Compile Include="Program.vb" />
<Compile Include="My Project\AssemblyInfo.vb" />
<Compile Include="My Project\Application.Designer.vb">
Expand Down
Loading

0 comments on commit 32ab84a

Please sign in to comment.