Tagged Questions
2
votes
3answers
1k views
How can I get msbuild to increment clickonce publish revision version number on build server?
We have an nant script that checks out from cvs then runs msbuild to publish the application. The problem is we have to remember to always increment the version in visual studio.
We have the option ...
0
votes
1answer
102 views
Adding MSBuild version to ASP.NET Web Project in VS2012
I'm working on a Web Site solution (not a Web Application shame on me) in Visual Studio 2012 on a ASP.NET Web Forms (double shame on me) project.
I would like to have an auto-increment version on each ...
1
vote
1answer
156 views
Team Foundation Service build versioning
I want to add the Changeset and the BuildNr into my version number. In example:
4.5. _Changeset_ . _BuildNr_
I have found some solutions for doing it through console and that exists some extensions ...
53
votes
8answers
36k views
How can I auto increment the C# assembly version via our CI platform (Hudson)?
Myself and my group are horrendous at incrementing assembly version numbers and we frequently ship assemblies with 1.0.0.0 versions. Obviously, this causes a lot of headaches.
We're getting a lot ...
0
votes
1answer
130 views
Visual Studio - MSI Install project - Overwrite previous version
I have an MSI installer project that installs a windows service.
For every release manually I have to change the Version number in the properties box.
For Ex: 1.0.35.
How do I change the same from ...
4
votes
2answers
159 views
MSBuild minify & concat javascript, hash contents into filename
I've been using, up to this point, MS Ajax Minifier for squashing and combining my CSS and JS. My servers set very far future expires headers so i need a cache expiry strategy. Currently I'm manually ...
1
vote
3answers
432 views
Generating version number in MSBuild
We have a C# solution with a WiX installer and an MSBuild build script. We're in the process of migrating from SVN to Git.
As the fourth part of our version number, we want something that ascends ...
0
votes
2answers
138 views
Increment the build number automatically
I have two projects in solution. One is version 3.0.0.* and the other is 2.0.0.*. I build my solution on Team City using an MSBuild script. How can I inject the build number portion of the version ...
3
votes
1answer
54 views
[MSBuild]::Add invocation returns error MSB4186
MSBuild engine returns error MSB4186 for '$([MSBuild]::Add($(OldRevision), 1))' statement.
I'm using an example from here, but it does not work for me:
error MSB4186: Invalid static method invocation ...
7
votes
3answers
3k views
Read AssemblyFileVersion from AssemblyInfo post-compile
How can one read the AssemblyFileVersion, or its components AssemblyFileMajorVersion, AssemblyFileMinorVersion, AssemblyFileBuildNumber, AssemblyFileRevision, within the .csproj, following ...
3
votes
1answer
2k views
Setting AssemblyFileVersion with MSBuild-call?
We have a batch-based buildprocess and we are using MSBuild only for compiling our project-files from visual studio. We also have integrated wix into our build-process. To set the version of our ...
0
votes
1answer
387 views
MSBuild - Custom assembly version format
Is there any way to use a custom format for assembly versions, when building them with MSBuild?
For example, we tried to use a version like "0.16.10r2.10717" But we got this error:
error emitting ...
0
votes
0answers
76 views
Using the MVC3 source to debug
I am having some issues with MVC3 (another topic) and am trying to debug it. I have some libraries that are compiled against the GAC's MVC3 and MVC2 assemblies.
In my project, I add the source for ...
0
votes
0answers
478 views
MSBuild (clean/package/build) with multiple solutions failing due to dependency version conflict
Summary
I'm running MSBuild against multiple projects. I want to clean/build/package 6 web services and make a zip of the certs for our staging server and drop all that into a publishing folder, but ...
1
vote
1answer
1k views
Specify assembly version number as a command line argument in MSBuild
I would like to be able to specify the version number for all assemblies to be generated during a build as a MSBuild command argument like this: MSBuild.exe /p:version=5.4.3.0 I have looked over ...