Atualizar Assembly Version no ASP.Net c# com a revision do SVN
Abaixo coloco um pequeno tutorial de como colocar o número da revision do SVN no AssemblyInfo.cs de um projeto ASP.Net.
Pré-requisito:
– Ter o tortoise instalado em sua máquina (http://tortoisesvn.net/downloads.html)
Passo 1: Na pasta Properties do seu projeto, crie um arquivo chamado Assembly.tmpl com o conteúdo abaixo. A variável $WCREV$ será substituída pelo número da revision do seu projeto.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("SV - www.sv.com.br")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("© SV Projetos e Sistemas")] [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 // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("6a068a4e-155f-43fe-9820-58956fc9e0a2")] // 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 Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.$WCREV$")] [assembly: AssemblyFileVersion("1.0.$WCREV$")] |
Passo […]