views:

21

answers:

2

Is it possible to version a asp.net site like doing so with AssemblyInfo.cs in Class Libraries?

+1  A: 

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.

Wim Haanstra
A: 

Yes. In VS:

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