Why 'msbuild' command doesn't redirect its output to Preview app, while 'man' command does?
When I open the 'Terminal' from my 'El Capitan' OS X, and issue the following command:
$man -t cd | open -f -a /Applications/Preview.app
It opens the Preview app with the documentation of 'cd'. But when I issue the following command:
$msbuild | open -f -a /Applications/Preview.app
It just opens the Preview with NOTHING. While 'msbuild' itself outputs the following in Terminal:
$ msbuild
Microsoft (R) Build Engine version 16.0.40-preview+ge6c3a1f9e4 for
Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 12/26/2018 8:08:03 AM.
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" on node 1
(default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|x86".
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" (1) is
building "/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj"
(2) on node 1 (default targets).
ResolveAssemblyReferences:
A TargetFramework profile exclusion list will be generated.
....
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date
with respect to the input files.
CopyFilesToOutputDirectory:
SunCRC ->
/Users/amed/Projects/SunCRC/source/SunCRC/bin/Debug/SunCRC.exe
Done Building Project
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
targets).
Done Building Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln"
(default targets).
Build succeeded.
"/Users/amed/Projects/SunCRC/source/SunCRC.sln" (default target) (1)
->
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
target) (2) ->
(ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2130,5): warning MSB3256: No assemblies were read in from the redist lists. A TargetFramework profile exclusion list could not be generated. [/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.01
Is there any parameter should be passed to 'msbuild' to make the Preview open with the same output?
macos terminal msbuild mono pipe
add a comment |
When I open the 'Terminal' from my 'El Capitan' OS X, and issue the following command:
$man -t cd | open -f -a /Applications/Preview.app
It opens the Preview app with the documentation of 'cd'. But when I issue the following command:
$msbuild | open -f -a /Applications/Preview.app
It just opens the Preview with NOTHING. While 'msbuild' itself outputs the following in Terminal:
$ msbuild
Microsoft (R) Build Engine version 16.0.40-preview+ge6c3a1f9e4 for
Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 12/26/2018 8:08:03 AM.
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" on node 1
(default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|x86".
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" (1) is
building "/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj"
(2) on node 1 (default targets).
ResolveAssemblyReferences:
A TargetFramework profile exclusion list will be generated.
....
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date
with respect to the input files.
CopyFilesToOutputDirectory:
SunCRC ->
/Users/amed/Projects/SunCRC/source/SunCRC/bin/Debug/SunCRC.exe
Done Building Project
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
targets).
Done Building Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln"
(default targets).
Build succeeded.
"/Users/amed/Projects/SunCRC/source/SunCRC.sln" (default target) (1)
->
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
target) (2) ->
(ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2130,5): warning MSB3256: No assemblies were read in from the redist lists. A TargetFramework profile exclusion list could not be generated. [/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.01
Is there any parameter should be passed to 'msbuild' to make the Preview open with the same output?
macos terminal msbuild mono pipe
1
You can not "open" console-based std-out|err in preview, you could redirect the output to a text file and then open that in preview.
– SushiHangover
9 hours ago
But how to preserve the color of output when redirecting to text files?
– Java Dev
6 hours ago
To preserve the term/ANSI colors you could do something like this: superuser.com/questions/465718/…
– SushiHangover
1 hour ago
add a comment |
When I open the 'Terminal' from my 'El Capitan' OS X, and issue the following command:
$man -t cd | open -f -a /Applications/Preview.app
It opens the Preview app with the documentation of 'cd'. But when I issue the following command:
$msbuild | open -f -a /Applications/Preview.app
It just opens the Preview with NOTHING. While 'msbuild' itself outputs the following in Terminal:
$ msbuild
Microsoft (R) Build Engine version 16.0.40-preview+ge6c3a1f9e4 for
Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 12/26/2018 8:08:03 AM.
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" on node 1
(default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|x86".
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" (1) is
building "/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj"
(2) on node 1 (default targets).
ResolveAssemblyReferences:
A TargetFramework profile exclusion list will be generated.
....
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date
with respect to the input files.
CopyFilesToOutputDirectory:
SunCRC ->
/Users/amed/Projects/SunCRC/source/SunCRC/bin/Debug/SunCRC.exe
Done Building Project
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
targets).
Done Building Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln"
(default targets).
Build succeeded.
"/Users/amed/Projects/SunCRC/source/SunCRC.sln" (default target) (1)
->
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
target) (2) ->
(ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2130,5): warning MSB3256: No assemblies were read in from the redist lists. A TargetFramework profile exclusion list could not be generated. [/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.01
Is there any parameter should be passed to 'msbuild' to make the Preview open with the same output?
macos terminal msbuild mono pipe
When I open the 'Terminal' from my 'El Capitan' OS X, and issue the following command:
$man -t cd | open -f -a /Applications/Preview.app
It opens the Preview app with the documentation of 'cd'. But when I issue the following command:
$msbuild | open -f -a /Applications/Preview.app
It just opens the Preview with NOTHING. While 'msbuild' itself outputs the following in Terminal:
$ msbuild
Microsoft (R) Build Engine version 16.0.40-preview+ge6c3a1f9e4 for
Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 12/26/2018 8:08:03 AM.
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" on node 1
(default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|x86".
Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln" (1) is
building "/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj"
(2) on node 1 (default targets).
ResolveAssemblyReferences:
A TargetFramework profile exclusion list will be generated.
....
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date
with respect to the input files.
CopyFilesToOutputDirectory:
SunCRC ->
/Users/amed/Projects/SunCRC/source/SunCRC/bin/Debug/SunCRC.exe
Done Building Project
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
targets).
Done Building Project "/Users/amed/Projects/SunCRC/source/SunCRC.sln"
(default targets).
Build succeeded.
"/Users/amed/Projects/SunCRC/source/SunCRC.sln" (default target) (1)
->
"/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj" (default
target) (2) ->
(ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2130,5): warning MSB3256: No assemblies were read in from the redist lists. A TargetFramework profile exclusion list could not be generated. [/Users/amed/Projects/SunCRC/source/SunCRC/SunCRC.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.01
Is there any parameter should be passed to 'msbuild' to make the Preview open with the same output?
macos terminal msbuild mono pipe
macos terminal msbuild mono pipe
edited 9 hours ago
asked 9 hours ago
Java Dev
31
31
1
You can not "open" console-based std-out|err in preview, you could redirect the output to a text file and then open that in preview.
– SushiHangover
9 hours ago
But how to preserve the color of output when redirecting to text files?
– Java Dev
6 hours ago
To preserve the term/ANSI colors you could do something like this: superuser.com/questions/465718/…
– SushiHangover
1 hour ago
add a comment |
1
You can not "open" console-based std-out|err in preview, you could redirect the output to a text file and then open that in preview.
– SushiHangover
9 hours ago
But how to preserve the color of output when redirecting to text files?
– Java Dev
6 hours ago
To preserve the term/ANSI colors you could do something like this: superuser.com/questions/465718/…
– SushiHangover
1 hour ago
1
1
You can not "open" console-based std-out|err in preview, you could redirect the output to a text file and then open that in preview.
– SushiHangover
9 hours ago
You can not "open" console-based std-out|err in preview, you could redirect the output to a text file and then open that in preview.
– SushiHangover
9 hours ago
But how to preserve the color of output when redirecting to text files?
– Java Dev
6 hours ago
But how to preserve the color of output when redirecting to text files?
– Java Dev
6 hours ago
To preserve the term/ANSI colors you could do something like this: superuser.com/questions/465718/…
– SushiHangover
1 hour ago
To preserve the term/ANSI colors you could do something like this: superuser.com/questions/465718/…
– SushiHangover
1 hour ago
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53942499%2fwhy-msbuild-command-doesnt-redirect-its-output-to-preview-app-while-man-co%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53942499%2fwhy-msbuild-command-doesnt-redirect-its-output-to-preview-app-while-man-co%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You can not "open" console-based std-out|err in preview, you could redirect the output to a text file and then open that in preview.
– SushiHangover
9 hours ago
But how to preserve the color of output when redirecting to text files?
– Java Dev
6 hours ago
To preserve the term/ANSI colors you could do something like this: superuser.com/questions/465718/…
– SushiHangover
1 hour ago