dotnet-format in WSL2 doesn't recognise a cs file
See original GitHub issueI’m running the following command in Ubuntu 18 (WSL2) but the program doesn’t seem to recognise the cs file.
I installed the tool using the following command.
/usr/bin/dotnet tool install dotnet-format --tool-path ~/dotnet
I’ve tried other variations of the command with quotes but no luck.
~/dotnet/dotnet-format --files "ShortlistService.cs"
~/dotnet/dotnet-format --files 'ShortlistService.cs'
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Debug Your .NET Core Apps in WSL 2 with Visual Studio
The .NET Core Debugging with WSL 2 – Preview extension lets run and debug your .NET Core apps in WSL 2 from Visual...
Read more >Cannot `dotnet format` ASP.NET Core projects · Issue #1519
After upgrading to 6.0.2 (6.0.200) I got errors when trying to format projects using the web SDK, i.e. Initially I assumed that I...
Read more >The .NET Core SDK cannot be located. . ...
Another problem I have when I click on the terminal is this message: The terminal shell path "; C: \ Program Files \...
Read more >VSCode's shell command `code` no longer working in ...
I think this issue was caused to me by an update of VSCode, which happened automatically. To solve it: open VSCode in Windows....
Read more >Solution to Visual Studio 2022 messing up ...
In your system environment variable path , Visual Studio 2022 put C:\Program Files (x86)\dotnet\ before C:\Program Files\dotnet\ .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JoeRobich should we change it so the
--files
flag implies the folder flag if not present?Closing this issue as we’ve updated documentation on how to filter files - https://github.com/dotnet/format/tree/master/docs#filter-files-to-format. Since we’ve reworked the options in our nightly build, it is required to pass the
--folder|-f
flag to specify working with the files directly. Please let us know if you have any suggestions for how to improve the documentation.