2

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?

Community
  • 1
  • 1
Slip
  • 593
  • 1
  • 7
  • 21
  • Possible duplicate of [How can I auto-increment an MVC 6 version number?](http://stackoverflow.com/questions/33771501/how-can-i-auto-increment-an-mvc-6-version-number) – Set Sep 23 '16 at 13:34
  • I'm using .Net Core 1.0.1. I suppose, there is no DNX anymore – Slip Sep 23 '16 at 13:35
  • accepted answer is stile valid, as suggests using gulp-bump, that is a nodejs tool, and doesn't relate to DNX – Set Sep 23 '16 at 13:40
  • Ok, I've changed my question – Slip Sep 23 '16 at 13:51

1 Answers1

1

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.

haleonj
  • 1,438
  • 3
  • 16
  • 30