为什么'msbuild'命令没有将其输出重定向到Preview应用,而'man'命令却呢?

时间:2018-12-27 09:12:29

标签: macos terminal msbuild mono pipe

当我从“ El Capitan” OS X打开“终端”时,发出以下命令:

 $man -t cd | open -f -a /Applications/Preview.app

它将打开“ cd”文档的“预览”应用程序。但是当我发出以下命令时:

 $msbuild | open -f -a /Applications/Preview.app

它只是使用NOTHING打开预览。虽然“ msbuild”本身在终端中输出以下内容:

$ 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

是否应将任何参数传递给“ msbuild”以使预览打开并具有相同的输出?

0 个答案:

没有答案