This project is read-only.
The project format of the utility is VS.NET 2010 targetting .NET 4. It can be used to update vdproj files from any version of VS.NET.

The code itself uses one Linq statement so could be easily retargeted to .net 3.5 if needed or .net 2 with a small code change.

Usage:
VersionVDProj -msi | -msm projectPath version=<VERSION>
[packagecode=<PACKAGECODE>] [productcode=<PRODUCTCODE>]
[upgradecode=<UPGRADECODE>] [signature=<SIGNATURE>] [outfile=<OUTPATH>]

-msi | -msm     Specifies whether projectPath is a MSI or MSM project
projectPath     Specifies the location of the .vdproj file
version         Specifies the new version to assign to the project
                Can be 1 of 2 formats:
                1) The path to an assembly who's version will be used
                2) A 3 part version where each field can be ? | + | [number]
                if ? the current value from the project for that field will
                        be preserved
                if + the current value from the project for that field will
                        be incremented by 1
                if [number] that field will be set to the value specified
                Examples of versions
                        version=1.0.0 set's the version to this value
                        version=?.?.+ leaves the first 2 fields and increments
                                the last field by 1
packagecode     Optional package guid (if not specified will be auto-generated)
                only applies to -msi
productcode     Optional product guid (if not specified will be set to the same
                value used to set the package code)
                only applies to -msi
upgradecode     Optional upgrade guid (if not specified the upgrade code will
                not be modified)
                only applies to -msi
signature       Optional unique id for the merge module (if not specified a
                guid based signature will be auto-generated)
                only applies to -msm
outfile         Specifies the path to the output file to create. If not
                specified the input project will be modified in place

Named arguments can be specified in any order.

Last edited Jun 5, 2011 at 3:59 PM by dkackman, version 4

Comments

No comments yet.