"Herausgeber" bestimmen (C#)
-
hallo zusammen
ich kann in der exe eigenschaft div angaben wie den herausgeber oder die versionsnummer festlegen!
ich habe shcon setup programme gesehen, die das machen können...
allerdings weiss ich nicht, wie ich dies bei C# machen muss!
gibt es da bei speziellen compilern attribute oder gleich funktionen für in den quellcode?mfg, fätzminator
-
Gibt Attribute mit denen du das angibst. VS packt sie in die AssemblyInfo.cs.
Zum Beispiel:
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("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM componenets. 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("")] // 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.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
Musst halt ausfüllen was du brauchst.