I have written a DLL in C# using VS2005.
Currently the DLL is showing a version number of 1.0.0.0.
How do I set this version number to something different?
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.
You can either specify the file version using the AssemblyFileVersionAttribute directly…
…or you can remove this attribute entirely which will mean that the file version defaults to the assembly version. This is probably good practice as having a file version that is different to the assembly version will cause confusion.
You can set the assembly version using the AssemblyVersionAttribute.
Assembly attributes are usually applied in the AssemblyInfo.cs file as stated in the other answers.