Skip to content

Commit

Permalink
Lots of stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTarantula committed Aug 7, 2017
1 parent 983bbf0 commit 6df5ad7
Show file tree
Hide file tree
Showing 26 changed files with 492 additions and 3,685 deletions.
5 changes: 0 additions & 5 deletions ThirdPartyNotices.txt

This file was deleted.

4 changes: 2 additions & 2 deletions license.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ClickOnce Versioning
Project Version Tools

Copyright (c) //TODO:Add owners name
Copyright (c) Ryan Tauriainen

All rights reserved.

Expand Down
32 changes: 0 additions & 32 deletions overview.md

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
"package": "npm run clean && npm run compile && tfx extension create --rev-version",
"gallery-publish": "tfx extension publish --rev-version",
"clean": "rimraf ./*.vsix",
"compile": "tsc -p .",
"install-task-lib": "cd setclickonceversion && npm install --save-dev"
"compile": "tsc -p ."
},
"devDependencies": {
"@types/node": "^8.0.7",
"tfx-cli": "^0.4.5",
"typescript": "2.3.4"
},
"name": "vstsexttask",
"name": "projectversiontools",
"private": true,
"version": "0.0.1",
"dependencies": {
Expand Down
45 changes: 45 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## Project Version Tools ##

### Set Project Version ###

Update a project's Application Version and/or Minimum Required Version.

#### Application Version ####

There are three options available for updating the `Application Version`:

1. **Do not update Application Version** - Application Version will not be updated, will use the value supplied in the project file.
2. **Revision only** - The Major.Minor.Build numbers will be supplied by the project file. Only the revision number will be changed. This will be user-supplied in a text field, and can be a variable.
3. **Custom Application Version** - Set a completely custom Application Version number. Can be a variable or set of variables.

#### Minimum Required Version ####

There are three options available for updating the `Minimum Required Version`:

1. **Do not update Minimum Required Version** - Minimum Required Version will not be updated, will use the value supplied in the project file.
2. **Same as Application Version** - Sets Minimum Application Version to the same value as the Application Version, even if the Application Version is not updated.
3. **Custom Minimum Required Version** - Set a completely custom Minimum Required Version number. Can be a variable or set of variables.

![Set Project Version](static/images/setversion.png)

### Get Application Version as Variables ###

Reads the project file and creates variables from the Application Version, available in a number of formats:

```
Version.Major
Version.Minor
Version.Build
Version.Patch (same as Version.Build)
Version.Revision
Version.MajorMinor
Version.MajorMinorBuild
Version.MajorMinorPatch
Version.MajorMinorBuildRevision
Version.MajorMinorPatchRevision
Version.Full (same as Version.MajorMinorBuildRevision)
```

An optional prefix can be set so that the task can be used on multiple projects. If the prefix is set to `Fabrikam` then the Application Version variable can be added to another task as `$(Fabrikam.Version.Full)`.

![Set Project Version](static/images/variables.png)
56 changes: 0 additions & 56 deletions setclickonceversion/setclickonceversion.js

This file was deleted.

1 change: 0 additions & 1 deletion setclickonceversion/setclickonceversion.js.map

This file was deleted.

58 changes: 0 additions & 58 deletions setclickonceversion/setclickonceversion.ts

This file was deleted.

65 changes: 0 additions & 65 deletions setclickonceversion/task.json

This file was deleted.

File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "task",
"name": "setprojectversion",
"version": "1.0.0",
"description": "package.json for task lib",
"scripts": {
Expand Down
87 changes: 87 additions & 0 deletions setprojectversion/setprojectversion.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6df5ad7

Please sign in to comment.