Questions tagged [assemblyversions]

51 questions
164
votes
7 answers

How do you keep user.config settings across different assembly versions in .net?

Basically the problem is that each time the assembly version changes (i.e. the user installs a new version of the application) all their settings are reset the the defaults (or more accurately a new user.config file is created in a folder with a…
Davy8
  • 30,868
  • 25
  • 115
  • 173
158
votes
6 answers

Best practices/guidance for maintaining assembly version numbers

I'm looking for pointers, suggestions, and even dictation on how to manage the three different assembly version numbers for a .NET assembly. The Product version is the simplest, as this seems would normally be dictated by business. Then, the file…
ProfK
  • 49,207
  • 121
  • 399
  • 775
28
votes
5 answers

Binary Deserialization with different assembly version

I have a project which uses BinaryFormatter to serialize a collection of structs with string and bool? datatypes. The serialization/deserialization works fine, however if I were to change the assembly which does the work it fails to deserialize…
Matthew Savage
  • 3,794
  • 10
  • 43
  • 53
15
votes
4 answers

How to get version number in post-build event

I want to use post-build event to automatically create a nuget package and then copy it to a shared folder on our network, something like this (the version number 1.0.0.0. is specified inside the MyLib.nuspec file): nuget.exe pack…
12
votes
2 answers

What causes Assembly Version incrementation when using asterisk?

If I have an assembly version such as: [assembly: AssemblyVersion("2013.7.18.*")] When this version number is read, it will be something like 2013.7.18.123. What causes the incrementation of the final number?
Curtis
  • 101,612
  • 66
  • 270
  • 352
8
votes
1 answer

MSBuild: How to read Assembly Version and FIle Version from AssmeblyInfo.cs?

Using MSBuild script how can we get AssmeblyVersion and FileVersion from AssemblyInfo.cs?
Sujeet Singh
  • 165
  • 3
  • 13
6
votes
1 answer

Get assembly version of another project (.exe)

I have source code of two C# projects. Project A starts project B (process.Start();). From project B I need to get assembly version of project A.
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
5
votes
1 answer

How can I get the build number of a Visual Studio project to increment?

Why does building a project in Visual Studio not increment the Build number? I've got this in AssemblyInfo.cs: [assembly: AssemblyVersion("1.5.*")] ...and this in frmAbout's constructor: Version versionInfo =…
4
votes
0 answers

OldVersion="0.0.0.0-x.x.x.x" is not accepting in WebConfig file

I have given this in my web config file…
D Aon
  • 143
  • 12
4
votes
4 answers

AssemblyInfo build number not updated

I have the following code in AssemblyInfo.cs: [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("1.0.0.0")] I'm trying to make sure the Build Number changes each time I build/rebuild my project. But, in that case it doesn't. Only…
3
votes
2 answers

Change assembly version of another .EXE

How to change from one project, assembly version of another project (.exe)? I have source for both projects.
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
3
votes
2 answers

Should I auto-increment the assembly version when I build my software?

In Visual Studio 2003, you could easily set your project assembly to auto-increment every time you built it, but with Visual Studio 2005, this functionality was removed. You can still auto-increment your assembly version on every build, but it's a…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
3
votes
1 answer

Changing AssemblyVersion Stop project Compiling

Having a very odd error when compiling me solution. I have a solution with about 19 projects, we control the AssemblyVersion, and AssemblyFileVersion using a shared AssemblyInfo.cs this keeps all our version inline when building a release. This has…
David Molyneux
  • 304
  • 2
  • 12
3
votes
2 answers

Is it appropriate to use leading zero in C# assembly version?

I am setting assembly version for my dot net dll Assmebly version has below format, "major version.minor version.build number.revision" I am setting Verison like below, 200.1.1.0; Now my question is do I need to keep a leading zero in minor…
srajeshnkl
  • 883
  • 3
  • 16
  • 49
3
votes
1 answer

Third party components referencing different versions of the same assembly

In my project I'm using two different third party components. I don't have access to the source code of these components. Each component is referencing a different version of the same DLL assembly log4net. In particular component A is referencing…
Lorenzo Santoro
  • 464
  • 1
  • 6
  • 16
1
2 3 4