C# Shortcuts
This is a VS Code extension that adds shortcuts for common operations for C# projects.
This extension effectively acts as a wrapper around the dotnet CLI, offering a visual way to perform common operations, like adding project references, managing NuGet packages, and more.
This is meant to be a simple extension, with a small set of features to make it easier to work with C# projects.
Note: This extension is still in preview. Please report any issues you find.
Requirements
This extension requires the dotnet CLI to be installed.
Features
This extensions adds the following shortcuts to the contextual menu for .csproj files:
- Add project references: visually add or remove references to other projects
- Manage NuGet packages: manage the installed NuGet packages, or search and install new ones
- Manage user secrets : initialize and open the secrets.json file to manage user secrets
- Build project: build the project
- Clean project: clean the project
- Rebuild project: rebuild the project
- Run project: runs the project without debugging
This extensions adds the following shortcuts to the contextual menu for .sln files:
- Add existing projects to a solution: visually add or remove projects from a solution
- Build solution: build the solution
- Clean solution: clean the solution
- Rebuild solution: rebuild the solution
Extension Settings
This extension contributes the following settings:
csharp-shortcuts.searchPrereleasePackages
: enables searching for prerelease packages in the NuGet package manager
Known Issues
- Not showing error messages when a file is not found.
Current Limitations
- Can only search public packages from NuGet.org.
Release Notes
0.0.13
- Removed commands from command palette.
0.0.12
- Reduced the size of the extension.
0.0.11
- Removed the Run project command.
0.0.10
- Run commands as child processes instead of using the terminal.
0.0.9
- Added command to run project.
0.0.8
- Added commands to build solutions and projects.
0.0.7
- Create an empty user secrets file if it doesn't exist.
- Added a progress bar when initializing user secrets.
0.0.6
- Fixed an issue when reading project paths from a solution file on Linux and MacOS.
0.0.5
- Added command to manage user secrets.
0.0.4
- Added option to manage package references.
- Added option to add existing projects to a solution.
0.0.1
Contribute
Contributions are welcome! Please open an issue or a pull request.