VijayAnand.Slnx
0.3.0
Prefix Reserved
dotnet tool install --global VijayAnand.Slnx --version 0.3.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local VijayAnand.Slnx --version 0.3.0
#tool dotnet:?package=VijayAnand.Slnx&version=0.3.0
nuke :add-package VijayAnand.Slnx --version 0.3.0
.NET tool to modify solution (slnx) file
Installation:
dotnet tool install --global VijayAnand.Slnx
Supported Commands:
Command | Description |
---|---|
new | Create an empty solution containing no projects. |
add | Add a project to a solution file. |
list | List all projects in a solution file. |
remove | Remove a project from a solution file. |
Code Samples:
Works with an implicit solution file.
slnx new
slnx add Test.csproj
slnx list
slnx remove Test.csproj
Works with an explicit solution file too.
slnx new Test
slnx Test.slnx add Test.csproj
slnx Test.slnx list
slnx Test.slnx remove Test.csproj
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.
Join me on Developer Thoughts (https://egvijayanand.in/), an exclusive blog for articles on Xamarin.Forms, .NET MAUI and Blazor.
What's new in ver. 0.3.0:
-------------------------
1. Ability to add or remove files as solution items.
1.1 Includes an existence check while adding.
slnx add file Directory.Packages.props
slnx remove file Directory.Packages.props
2. Ability to list files, projects, or both.
slnx list - Lists only projects.
slnx list files - Lists only files.
slnx list all - Lists both files and projects.
3. Proper existence check and project file validations while adding a project to the solution.
4. Ability to configure the deploy option while adding App projects.
slnx add MyApp.csproj --deploy
v0.2.0:
Included an existence check to prevent adding a duplicate project entry to the solution.
v0.1.0:
First preview release of the tool.
Install the tool with the below command:
dotnet tool install -g VijayAnand.Slnx
It supports 4 commands:
new - Create an empty solution containing no projects.
add - Add a project to a solution file.
list - List all projects in a solution file.
remove - Remove a project from a solution file.
Works with an implicit solution file.
slnx new
slnx add <proj_name>
slnx list
slnx remove <proj_name>
Works with an explicit solution file too.
slnx new <soln_name>
slnx <soln_name> add <proj_name>
slnx <soln_name> list
slnx <soln_name> remove <proj_name>