Why this feature is needed:.
When run 'dotnet format' in multi target project, there may cases where format tool can not merges the changes in multi frameworks eg net6, net472 and had to add unhelpful comments like:
see this open issue
and source code is distorted with these such comments which loose the value of formating and we had to run our developed scripts to remove these comments.
Suggestion
It is great if we can avoid such problems by passing framework option in commandLine , e.g:
dotnet format --Framework net472
especially, dotnet build allow building one framework and also dotnet format allow filtering in files/diagon.Id, ..
Why this feature is needed:. When run 'dotnet format' in multi target project, there may cases where format tool can not merges the changes in multi frameworks eg net6, net472 and had to add unhelpful comments like:
see this open issue and source code is distorted with these such comments which loose the value of formating and we had to run our developed scripts to remove these comments.
Suggestion It is great if we can avoid such problems by passing framework option in commandLine , e.g:
especially,
dotnet build
allow building one framework and alsodotnet format
allow filtering in files/diagon.Id, ..