https://github.com/mattparkerdev/dotnetsolutiontools
Various tools to aid in maintaining .NET solutions 👨💻
https://github.com/mattparkerdev/dotnetsolutiontools
csharp csproj dotnet formatter sln
Last synced: about 2 months ago
JSON representation
Various tools to aid in maintaining .NET solutions 👨💻
- Host: GitHub
- URL: https://github.com/mattparkerdev/dotnetsolutiontools
- Owner: MattParkerDev
- Created: 2023-08-29T13:00:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T03:43:20.000Z (11 months ago)
- Last Synced: 2024-05-22T10:42:52.369Z (11 months ago)
- Topics: csharp, csproj, dotnet, formatter, sln
- Language: C#
- Homepage:
- Size: 2.53 MB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotnet Solution Tools
Various tools to manage a C# solution.
✨ Update a solution to .NET 8 - updates csproj target versions and all Microsoft Nuget Packages. Ensure you update the global.json to use the latest SDK version, as this is not done for you.
## App
The app feels quite self explanatory :)
## CLI
**compare** `` `` Finds any missing C# projects in the solution file compared to the folder.
_options_
`-l --logprojectfiles` logs all project files found in folder**format-csproj** Formats a C# project file(s).
`--folder ` or
`--sln ` or
`--project `**implicit-usings** `` Find projects in sln that don't have ImplicitUsings enabled. Optionally enables them.
_options_
`-m|--add-missing` adds missing implicit usings to all project files
`-d|--enable-disabled` enables disabled implicit usings in all project files
`-a|--enable-all` enables implicit usings in all project files**warnings-as-errors** `` Find projects in sln that don't have TreatWarningsAsErrors enabled. Optionally enables them.
_options_
`-m|--add-missing` adds missing TreatWarningsAsErrors to all project files**clear-bin-obj** `` Deletes all bin and obj folders, and node_modules folders in the solution folder.
**update-sln-net80** `` Updates all projects and Microsoft NuGet packages in sln to .NET 8.0.
**update-csproj-net80** `` Updates project and Microsoft NuGet packages to .NET 8.0.