dotnet / dotnet/format

[Question] Can I specify an array of files?

Open
#773 2 comments 0 reactions 0 assignees View on GitHub
Documentation Help Wanted
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

I was looking and testing the parameters, but I couldn't find a way to specify specific files. For example:
- fileA.cs and fileB.cs
- don't have a sln/csproj in folder

Tests:
- `dotnet-format --check --include .\fileA.cs` -> `The file 'fileA.cs' does not appear to be a valid project or solution file.`
- `dotnet-format --check .\` -> `Could not find a MSBuild project file or solution file in 'C:\path\csharp\'. Specify which to use with the --workspace option. `
- `dotnet-format --check --workspace .\` -> `The --workspace option is deprecated. Use the `` argument instead.
Could not find a MSBuild project file or solution file in 'C:\path\csharp\'. Specify which to use with the --workspace option.`

Do you have a way to pass the file paths and test only those?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.