问题描述
我正在Visual Studio 2005中使用WebSite项目.我没有看到为WebSite项目创建的任何AssemblyInfo.cs.我可以在那里的Properties文件夹中手动创建AssemblyInfo.cs还是有更好的方法?
I am using WebSite project in Visual Studio 2005. I don't see any AssemblyInfo.cs created for a WebSite project. Can I manually create AssemblyInfo.cs in a Properties folder there or is there any better way?
它是一个现有项目,所以我现在不能更改它.我正在维护此WebSite项目,并希望使用PostSharp添加log4Net.
推荐答案
需要AssemblyInfo.cs
来保存用于对程序集进行版本控制的信息.通常,您将提供由sn.exe实用程序生成的公共密钥,并提供一个标志来延迟是否签名.
The AssemblyInfo.cs
is required to holds information for versioning the assembly. Normally you will provide your public key generated by the sn.exe utility and also a flag to delay sign or not.
ASP.NET网站不是编译的汇编而是解释的(仅第一次).因此这种事情是不合适的.
ASP.NET websites are not compiled assembly rather interpreted (only first time). And thus such thing is not appropriate.
这篇关于Visual Studio 2005中用于WebSite的AssemblyInfo.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!