dotnet / dotnet/format

Question: How to use with a Xamarin project?

Open
#1,454 3 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

What I want to achive:

- **Detect whitespace formating errors**
- **Detect using order errors**

Both of the above should work in library projects as well as in android, ios and uwp projects.

How it was in .net5:

- `dotnet format --folder`

How it is supposed to be in .net6:

- `dotnet format whitespace --folder`
- `dotnet format someSolution.sln`

**But how does that work within a xamarin project as .net 6 is not able to build xamarin projects from command line (xamarin needs `msbuild` not `dotnet build`)?**

Currently `dotnet format someSolution.sln` will never check the android, ios or uwp projects as it simply misses the targets for those project types and therefore does not know how to build? them to apply the analyzers.

Would be nice if someone could give me a hint on how to restore the old functionality.

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.