-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet build --version-prefix 1.0.0 #7664
Comments
cc @blackdwarf |
Personally, I am not sure why there needs to be a separation of prefix and suffix. Cant there just be a |
@LeeCampbell you can certainly The You're right, though, that now that we're in MSBuild we have a much more powerful property engine in place and there are new ways to express version number policies. This option will make it easier for folks who are migrating from a project.json workflow, but I'm curious to see how folks choose to manage versioning in their solutions now that the project system is so much more flexible. |
Thanks for the update. Running exactly what you have suggested #cantKeepUp |
@LeeCampbell sorry for the confusion. The syntax @piotrpMSFT was showing is for MSBuild-based tools. We have been busy working on them for the past several months, and they are due to be released together with Visual Studio 2017. You can try the MSBuild-based tools by installing RC4 bits (https://github.com/dotnet/core/blob/master/release-notes/rc4-download.md has the information). However, do note that these tools are based on |
Thanks for the quick repsonse @piotrpMSFT and @blackdwarf |
No problem @LeeCampbell. Let us know if we can help with anything else. |
Jesus, I searched a lot on google and it let me here and after I read the comments above... ah... is there any SIMPLE way to actually just create a nuget package by doing I don't want to use version-suffix as I'm not running a pre-release build, I just want my TeamCity build to work. I want to bump up the patch version every time I run the build, however, I can't do it currently coz Why do you guys always try to make simple things HARDER?? Update: I was using old SDK. In latest SDK, dotnet pack /p:Version works fine. Ignore my rant. |
You can use /p:Version=<your_version> as an argument. |
@livarcocc thank you for your help but I actually tried it. I don't think it works with latest dotnet core, as MS is dumping project.json. I got this: |
Are you trying this with project.json? If so, then what I suggested to you above won't work at all. We are no longer making fixes for project.json (we haven't in a while actually) and I would suggest that you look into migrating to the lastest CLI (1.0.1) which you can get at dot.net and migration your project from project.json to csproj. |
@livarcocc sorry about that... i just noticed I was using old SDK. My bad. It works now. Thank you very much for the help! |
How come I can do --version-suffix but not prefix? I know I can do a build property but I shouldn't have to... See #4608
The text was updated successfully, but these errors were encountered: