AssemblyInfo.cs for WebSite in Visual Studio 2005

荒凉一梦 提交于 2019-12-25 04:54:17

问题


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?

Its an existing project so I can't change it now. I am maintaining this WebSite project and want to add log4Net using PostSharp.


回答1:


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 websites are not compiled assembly rather interpreted (only first time). And thus such thing is not appropriate.




回答2:


Why not use a web application project? With that type of project you will have an AssemblyInfo.cs.



来源:https://stackoverflow.com/questions/2237622/assemblyinfo-cs-for-website-in-visual-studio-2005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!