C# 我可以编辑程序集版本的文件在哪里
我有一个c语言的应用程序,我想设置我的应用程序的版本 通过Assembly.GetExecutionGassembly.GetName.Version,但我的问题是C# 我可以编辑程序集版本的文件在哪里,c#,version,.net-assembly,C#,Version,.net Assembly,我有一个c语言的应用程序,我想设置我的应用程序的版本 通过Assembly.GetExecutionGassembly.GetName.Version,但我的问题是 如何编辑它的值以及将版本值写入其中的文件在哪里?它位于AssemblyInfo.cs文件中的“属性”文件夹下: using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Gener
如何编辑它的值以及将版本值写入其中的文件在哪里?它位于AssemblyInfo.cs文件中的“属性”文件夹下:
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("ConsoleTests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ConsoleTests")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[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("e2e2a417-bd3d-414d-97f9-91196ce1c63a")]
// 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")]
最后两行标识文件版本和程序集版本,这些是您编辑以更改版本的内容。根据您使用的IDE,文件的外观可能与上面的相同,也可能不同,但您要查找的是AssemblyVersion和AssemblyFileVersion程序集属性。如果您使用的是Visual Studio,还可以通过右键单击项目,选择“属性”、“应用程序”选项卡,然后单击“部件信息”选项卡。然后,您将看到类似以下对话框的内容,您可以在其中编辑部件和文件版本: