问题
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