How to set version number in dll files on asp.net web site?

When we create a web application in visual studio, we can create a web site application (New -> Web Site) or create a web project application.


We can set dll/file versions on web project application when publishing.

shao1.JPG

How do we change the version numbers for dlls of a  website application?.  

shao2.JPG
Steve HougomDeveloper IIAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
You do it through just as you do with a Windows application, through the Project's properties window as illustrated in your first screenshot.
0
Steve HougomDeveloper IIAuthor Commented:
Perhaps you didn't understand the question.

In visual studio you can create a web application project or a website project.

in a WEBSITE PROJECT.  How do I change the version number of the assembly that I publish.

You cant change the assembly version.  ie  0.0.0.0  When you click project properties on a website application in vstudio you do not have that option that you would in a web application property pages.

shao3.JPG
0
Jacques Bourgeois (James Burger)PresidentCommented:
OK, got you. I was thinking that you were working on a ASP Web Application.

I have not experience with the Web Site template, but I do not think that you can. Look at the page that compares both types of applications.

And from what I see, you are not very far in your project, so take care to read the Note at the beginning of the page.

Then go further down, to the Scenarios section, where it is explicitely said that you should use an ASP Web Application instead of a Web Site if You want control over the assembly name and version number that is generated for the site.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve HougomDeveloper IIAuthor Commented:
Duly noted.  Going forward any older applications that are created as website applications will be converted to web project applications.

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.