Slip
Slip

Reputation: 603

project.json "version" autoincrement

I need to automatically update product version of the dll into which my app is compiled every time. In project.json:

"version": "1.0.0-*",

It doesn't work and if fact I doubt whether I'm doing right. Also I tried to use Automatic Versions extension for Visual Studio but it didn't cope too. There is a solution involving Gulp. Maybe there are some ways to solve the problem using only .Net Core tool?

Upvotes: 2

Views: 978

Answers (1)

haleonj
haleonj

Reputation: 1518

The closest I have found so far is to use 1.*. Unfortunately NPM's semantic versioning and VS Code's is different. VS Code seems more limited in that it doesn't allow leading characters to be anything other than a digit or a space. It doesn't document the fact, both directly and in its link to SemVer, it can use '*' in a limited way either, but I have been able to use it as described here.

Upvotes: 1

Related Questions