tempp

Hello,

I have project with following structure:

SolutionA

Project1

Project2

SolutionB

Project 3

I would like to build the project and then transfer the output to a folder. The folder should be constructed by incrementing a number from last build and then create a folder

Want:

Output

<bldXXX>

solutionA

project1,dll

project2.dll

solutionB

project3.dll

Everytime the project build I want get the next build number and create the dir.

How do I dod this using msbuild.

Thanks

Output



Re: Visual Studio MSBuild generating a build number automatically

Fwank79

I did something similar for my project.

First of all, all of our projects use the same AssemblyInfo class so that i only have to update the version number on 1 file.

If you check out the MSBuild Community class (http://msbuildtasks.com/) check out the AssemblyFileInfo class. Its a custom task that allows you to update any settings your assemblyinfo file. There's also a function to increment the version number automaticaly.

Then, to set up your output folder, i would create a simple custom task to do it. If you don' t know how to create a custom task, check out the solution from the MSBuild community website.