How do i set the version on a asp.net project? as the properties dont contain any thing…
there is no project file in the folder where the webpage is.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you’re using a Web Application (rather than a Web Site project) then you should find that you have an AssemblyInfo.cs file in your “properties” folder.
This will contain attributes such as:
If you have a Web Site project then you can manually add a new .cs file and put these attributes in it.
You can find more info about these attributes here (on SO):
What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion?
update
Having just read the above post it might be that AssemblyInformationalVersion is the more appropriate attribute to use if you’re just trying to hold info that you’d only display to a user.
update II
This is some “quick and dirty” code that’ll grab the InformationalVersion from the attribuite:
If I were you I’d write a class that holds the attribute value, and the code above that access it, such that you can implement your version number using this attribute or whatever you like and then change the way you implement it over time.