Skip to content
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

Nautilus Solution Manager cli tool is able to change a particular C# project version accordingly #29

Closed
synthphonic opened this issue May 24, 2022 · 0 comments · Fixed by #32
Assignees
Labels
area/commands feature-request A viable feature to implement
Milestone

Comments

@synthphonic
Copy link
Owner

synthphonic commented May 24, 2022

Feature By

Name: szs
Date: 24 May 2022
Repository Handle (if exists): github.com/synthphonic

Description

Version of a particular csproj file should be easy to change. The "Version" xml element usually resides in the first "PropertyGroup" element in a particular csproj file.

Screenshot 2022-05-24 at 5 52 39 PM

nsmgr cli tool should be able to cater for this modification with ease

Current Behavior

Not available

Expected Behavior

  • When modifying a version, the cli should keep the original version number in case if the user wishes to rollback to its original version number.

Details

  • Command: modify-project-version
  • Description: Modify a particular C# project version accordingly"

Options

Long Name Short Name Description
--project-path -p Required: true. The full file path of a given csproj file name.
--version-number -n Required: true. The new version number.
--backup -b Default: false. Prior to version change, the command should backup the original version number.
--restore-version -r Required: false. Restore the version number to its original state.

Potential Usage

Change version

nsmgr modify-project-version -p ~/myprj/MyPrj.Service/MyPrj.Service.csproj -n 1.15.232

Change version with csproj file back

nsmgr modify-project-version -p ~/myprj/MyPrj.Service/MyPrj.Service.csproj -n 1.15.232 -b

Restore original version of the csproj file

nsmgr modify-project-version -p ~/myprj/MyPrj.Service/MyPrj.Service.csproj -r

Prerequisites

This feature only applies to C# csproj file only. F# and VB can be catered as well when needs be.

Other Suggestions

This feature should be open ended. In the future, we can also modify Authors, Copyright, Company, Product, Description and other critical elements.

@synthphonic synthphonic added this to the M2.1 milestone May 24, 2022
@synthphonic synthphonic added feature-request A viable feature to implement area/commands labels May 24, 2022
@synthphonic synthphonic self-assigned this May 24, 2022
@synthphonic synthphonic changed the title Nautilus solution manager is able to change the project version accordingly Nautilus solution manager is able to change a particular C# project version accordingly May 24, 2022
@synthphonic synthphonic changed the title Nautilus solution manager is able to change a particular C# project version accordingly Nautilus Solution Manager cli tool is able to change a particular C# project version accordingly May 26, 2022
synthphonic added a commit that referenced this issue May 26, 2022
synthphonic added a commit that referenced this issue May 26, 2022
synthphonic added a commit that referenced this issue May 26, 2022
synthphonic added a commit that referenced this issue May 26, 2022
- update file reader codes
- update file writer codes
- update globalusings
- implement BackupFile & RestoreFile
synthphonic added a commit that referenced this issue May 26, 2022
synthphonic added a commit that referenced this issue May 26, 2022
synthphonic added a commit that referenced this issue May 27, 2022
…version-change

#29 : Implement project's "Version" change via nsmgr cli tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/commands feature-request A viable feature to implement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant