@@ -770,37 +770,10 @@ public static void
770
770
var project = new ProjectFile ( false , projectPath ) ;
771
771
project . Write ( ) ;
772
772
773
- string portableRID = System . String . Empty ;
774
- var architecture = System . Runtime . InteropServices . RuntimeInformation . OSArchitecture . ToString ( ) . ToLower ( ) ;
775
- if ( System . Runtime . InteropServices . RuntimeInformation . IsOSPlatform ( System . Runtime . InteropServices . OSPlatform . Windows ) )
776
- {
777
- portableRID = "win-" + architecture ;
778
- }
779
- else if ( System . Runtime . InteropServices . RuntimeInformation . IsOSPlatform ( System . Runtime . InteropServices . OSPlatform . Linux ) )
780
- {
781
- portableRID = "linux-" + architecture ;
782
- }
783
- else if ( System . Runtime . InteropServices . RuntimeInformation . IsOSPlatform ( System . Runtime . InteropServices . OSPlatform . OSX ) )
784
- {
785
- portableRID = "osx-" + architecture ;
786
- }
787
- else
788
- {
789
- throw new Exception (
790
- "Running on an unsupported OS: {0}" ,
791
- System . Runtime . InteropServices . RuntimeInformation . OSDescription
792
- ) ;
793
- }
794
-
795
773
try
796
774
{
797
775
var args = new System . Text . StringBuilder ( ) ;
798
- // publish is currently required in order to copy dependencies beside the assembly
799
- // don't use --force, because package may have already been restored
800
- // specifying a runtime ensures that all non-managed dependencies for NuGet packages with
801
- // platform specific runtimes are copied beside the assembly, and can be found by the assembly resolver
802
- args . AppendFormat ( "publish {0} " , projectPath ) ;
803
- args . Append ( System . String . Format ( "--runtime {0} " , portableRID ) ) ;
776
+ args . AppendFormat ( "build {0} " , projectPath ) ;
804
777
if ( Graph . Instance . CompileWithDebugSymbols )
805
778
{
806
779
args . Append ( "-c Debug " ) ;
@@ -810,6 +783,7 @@ public static void
810
783
args . Append ( "-c Release " ) ;
811
784
}
812
785
args . AppendFormat ( "-o {0} " , System . IO . Path . GetDirectoryName ( outputAssemblyPath ) ) ;
786
+ args . Append ( "-v quiet " ) ;
813
787
var dotNetResult = OSUtilities . RunExecutable (
814
788
"dotnet" ,
815
789
args . ToString ( )
0 commit comments