开发者

Is it possible to version a asp.net site like you can do with dlls?

开发者 https://www.devze.com 2023-01-01 09:29 出处:网络
Is it possible to version a asp.net site like doing so with AssemblyInfo.cs in Class开发者_StackOverflow中文版 Libraries?According to the comments in the AssemblyInfo.cs in my ASP.net projects, you ca

Is it possible to version a asp.net site like doing so with AssemblyInfo.cs in Class开发者_StackOverflow中文版 Libraries?


According to the comments in the AssemblyInfo.cs in my ASP.net projects, you can:

// You can specify all the values or you can default the Revision and Build Numbers 
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

I tried it, and yes, it works.

[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.*")]

On the AssemblyFileVersion I get a warning while building.


Yes. In VS:

  • right click web project,
  • go to properties
  • then application.
  • Click assembly information button - there you have the version fields.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号