Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Determines if this action will be run within the relevant stage.

What to Remove

Select what to want to remove from what. You can choose to remove one of the following:

  • Package from project 
  • Reference from project
  • Project from solution

Package from project

This option uses the "dotnet remove package" command line to remove a NuGet package reference from a project file. 

The following fields are shown when this option is selected.

Project Path

...

The path to project file or folder to modify. If a folder is specified, the folder will be searched for a file that has a file extension that ends in

...

"proj". If left empty, this will default to the workspace folder.

Working Folder

...

An optional working folder for running the executable.

...

Reference from project

Project Path

...

If left empty, this will default to the Project Path.

Package Name

The name of the package reference to remove.


Reference from project

This option uses the "dotnet remove reference" command line to  remove project references from a project file. 

The following fields are shown when this option is selected.

Project Path

The path to project file or folder to modify. If a folder is specified, the folder will be searched for a file that has a file extension that ends in

...

"proj". If left empty, this will default to the workspace folder.

Working Folder

...

An optional working folder for running the executable.

...

If left empty, this will default to the Project Path.


Target Framework

...

If the target framework name is entered, the project reference will only be removed from a project targeting the specified framework.

Project References

Removes references only when targeting a specific framework.

Package Name

The name of the package reference to remove.

Project from solution

Solution Path

...

Enter the path to one or more project references - one reference per line. These should generally be entered as relative paths - relative to the Working Folder.


Project from solution

This option uses the "dotnet sln .. remove" command line to remove project references from a solution file. 

The following fields are shown when this option is selected.

Solution Path

The path to the solution file to modify. If a folder is specified, the folder will be searched for a file that has a file extension that ends in `sln`. If there are multiple solution files in the folder, one must be specified.

...

 If left empty, this will default to the workspace folder.

Working Folder

...

An optional working folder for running the executable.

...

If left empty, this will default to the Solution Path.

Project Paths

...

Add the path to one or more project files - one file per line. This should generally be entered as relative paths - relative to the Working Folder.



Using

The Using drop down is populated with any property collector whose namespace matches the pattern defined by the DotNet CLI Actions. The pattern for this action is ^DotNet.Cli.*

...