dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.93k stars 533 forks source link

VS Terminal incorrect handling of warning messages from dotnet output #9398

Closed vsfeedback closed 1 month ago

vsfeedback commented 1 month ago

This issue has been moved from a ticket on Developer Community.


Hi,

  1. Open VS terminal on project
  2. Run cmd file

Example cmd for publishing MAUI as apk

dotnet publish -c Release -r android-arm64 -p:PackageFormat=Apk -f net8.0-android

dotnet produces various warning messages in yellow. They seem to be missing \n terminator and overwrite line.

Output is misaligned

Image

Image


Original Comments

evgeny.muryshkin on 7/30/2024, 03:46 PM:

Also note PS prompt and then the remainder of the output in the first screenshot. Looks like some kind of race in console.

Feedback Bot on 7/30/2024, 06:30 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

jpobst commented 1 month ago

Does this only happen in the "VS Terminal" window? Or does it also happen from a normal PowerShell window outside of Visual Studio?

This should help us determine if this is an issue with the logging or specifically with the VS Terminal window.

dotnet-policy-service[bot] commented 1 month ago

Hi @vsfeedback. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

dotnet-policy-service[bot] commented 1 month ago

Hi @vsfeedback. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.