-
Notifications
You must be signed in to change notification settings - Fork 74
[1.0.1] Fix color output in command prompt #273
Conversation
@@ -15,5 +15,7 @@ public interface IConsole | |||
bool IsInputRedirected { get; } | |||
bool IsOutputRedirected { get; } | |||
bool IsErrorRedirected { get; } | |||
ConsoleColor ForegroundColor { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I don't recall exactly, but I think at one point we said we wanted patches to be 100% binary compatible, which means that no "public" breaking change can happen at all, even in .Internal
namespaces. Is there a way to make this change without breaking any API surface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this guidance applies to command line tools. Users never reference any of the assemblies produced in this repo -- they are all DotNetCliToolReference
packages -- so breaking changes shouldn't matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, very good point! Looks like no "regular" NuGet packages are built from this repo, so presumably no one ever references anything here as a DLL reference.
Is this approved as in merge to rel/1.0.1? Or do we still need DJ approval? |
Still needs official approval. Only merge into the rel/1.0.x branch when the bug gets marked as |
Is this going to happen soon? |
Is it expected that this fix will work on Windows 7 (SP1) 64-bit? |
Still pending approval. It fixes Command Prompt color, which should mean Win 7 is fixed. The |
@natemcmaster - thanks. The steps I took were: Download ZIP of latest Windows X64 SDK: Unzip the file. Place the contents of the unzipped Open a command line ( Type Type Expected result: Actual result: Note: I'm also seeing character-encoding issues in cmd.exe (and Powershell) but not Git-Bash, similar to the issue #265. It's possible I have missed some necessary steps. |
@snerks I'm not sure what you're trying to do. I didn't see mention of dotnet-watch anywhere in your repro steps. This PR is only about changes to dotnet-watch, not dotnet-test. Consider opening an issue instead of commenting on this PR if you're having trouble using our nightly builds. |
@natemcmaster - I've moved the comment to #265 and tried to clarify the steps, to show usage of |
Let me know if you want to pair on this @natemcmaster. The issue is that when we do "dotnet watch SOMETHING" the colors are not used, as in "dotnet watch test" |
@shanselman It sounds like there are two overlapping things being discussed. (1) the color dotnet-watch produces (2) the color dotnet-test produces when run by dotnet-watch. This PR (and issue #265) only address (1). Can you open a separate issue for (2)? |
@natemcmaster I don't think dotnet test produces color. So I think you've fixed it with #265 (comment) right? |
Not yet ;) microsoft/vstest#641. Was just making sure we were talking about the same thing. Yes, #265 is resolved. This is the only color output issue I'm aware of. If you find others, feel free to open a new issue. |
OK, cool. We should just watch out/make sure that when it does, everything works as it should on cmd.exe and powershell.exe. |
ee5ff2e
to
6e25864
Compare
6e25864
to
734c735
Compare
FYI 1.0.1 is now available on NuGet.org. https://www.nuget.org/packages/Microsoft.DotNet.Watcher.Tools/1.0.1 |
Backport #268 to 1.0.1
Resolves #271
NB: this is merging to "namc/rel/1.0.1". If approved, I'll rename that branch to "rel/1.0.1" and rebase this PR to merge into that branch.