如何将程序集版本设置为Web应用程序? [英] how to set Assembly version to the web application ?
本文介绍了如何将程序集版本设置为Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用C#在ASP.NET中开发了该应用程序.我想为该项目设置程序集版本,但无法在属性页中显示此选项.如何将程序集版本设置为Web应用程序?
i have developed the application in ASP.NET with C#. i want to set the Assembly version to this project but in property page this option can not be displayed .how to set Assembly version to the web application ?
推荐答案
您好,
在您的项目中创建AssemblyInfo.cs文件,并将此代码放入其中...
Hi,
Create AssemblyInfo.cs file in your project and put this code inside...
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("1.0.*")]
有关更多信息,请检查 AssemblyVersionAttribute [ ^ ]类.
另请阅读此 [
For more info check AssemblyVersionAttribute[^] class.
Also read this[^].
这篇关于如何将程序集版本设置为Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文