-
Hi all, I wan to ccontrol host application(one that compiles script) from the script. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you want to know how to compile a given scenario all you need to do is get the commandline. if you have the sdk installed, you can run these commands to create a new project and produce a log. dotnet new classlib
dotnet build /bl that will produce a wait a bit for the viewer to load your log search for "csc" to filter the results clicking on that will give you the commanline that the compiler used to build the library. this is the set of arguments that are passed to csc on my machine: C:\Program Files\dotnet\dotnet.exe exec "C:\Program Files\dotnet\sdk\5.0.100-rc.1.20420.14\Roslyn\bincore\csc.dll"
/noconfig
/unsafe-
/checked-
/nowarn:1701,1702,1701,1702
/fullpaths
/nostdlib+
/errorreport:prompt
/warn:4
/define:TRACE;DEBUG;NET;NET5_0;NETCOREAPP;NETCOREAPP3_1
/highentropyva+
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\Microsoft.CSharp.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\Microsoft.VisualBasic.Core.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\Microsoft.VisualBasic.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\Microsoft.Win32.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\mscorlib.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\netstandard.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.AppContext.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Buffers.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Collections.Concurrent.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Collections.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Collections.Immutable.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Collections.NonGeneric.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Collections.Specialized.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ComponentModel.Annotations.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ComponentModel.DataAnnotations.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ComponentModel.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ComponentModel.EventBasedAsync.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ComponentModel.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ComponentModel.TypeConverter.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Configuration.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Console.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Core.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Data.Common.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Data.DataSetExtensions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Data.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.Contracts.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.Debug.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.DiagnosticSource.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.FileVersionInfo.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.Process.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.StackTrace.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.TextWriterTraceListener.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.Tools.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.TraceSource.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Diagnostics.Tracing.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Drawing.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Drawing.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Dynamic.Runtime.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Formats.Asn1.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Globalization.Calendars.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Globalization.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Globalization.Extensions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.Compression.Brotli.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.Compression.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.Compression.FileSystem.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.Compression.ZipFile.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.FileSystem.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.FileSystem.DriveInfo.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.FileSystem.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.FileSystem.Watcher.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.IsolatedStorage.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.MemoryMappedFiles.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.Pipelines.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.Pipes.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.IO.UnmanagedMemoryStream.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Linq.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Linq.Expressions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Linq.Parallel.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Linq.Queryable.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Memory.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Connections.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Http.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Http.Json.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.HttpListener.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Mail.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.NameResolution.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.NetworkInformation.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Ping.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Requests.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Security.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.ServicePoint.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.Sockets.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.WebClient.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.WebHeaderCollection.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.WebProxy.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.WebSockets.Client.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Net.WebSockets.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Numerics.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Numerics.Vectors.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ObjectModel.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.DispatchProxy.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.Emit.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.Emit.ILGeneration.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.Emit.Lightweight.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.Extensions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.Metadata.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Reflection.TypeExtensions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Resources.Reader.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Resources.ResourceManager.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Resources.Writer.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.CompilerServices.Unsafe.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.CompilerServices.VisualC.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Extensions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Handles.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.InteropServices.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.InteropServices.RuntimeInformation.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Intrinsics.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Loader.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Numerics.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Serialization.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Serialization.Formatters.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Serialization.Json.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Serialization.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Runtime.Serialization.Xml.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.Claims.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.Cryptography.Algorithms.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.Cryptography.Csp.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.Cryptography.Encoding.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.Cryptography.Primitives.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.Cryptography.X509Certificates.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.Principal.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Security.SecureString.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ServiceModel.Web.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ServiceProcess.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Text.Encoding.CodePages.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Text.Encoding.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Text.Encoding.Extensions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Text.Encodings.Web.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Text.Json.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Text.RegularExpressions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Channels.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Overlapped.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Tasks.Dataflow.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Tasks.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Tasks.Extensions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Tasks.Parallel.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Thread.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.ThreadPool.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Threading.Timer.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Transactions.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Transactions.Local.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.ValueTuple.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Web.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Web.HttpUtility.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Windows.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.Linq.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.ReaderWriter.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.Serialization.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.XDocument.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.XmlDocument.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.XmlSerializer.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.XPath.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\System.Xml.XPath.XDocument.dll"
/reference:"C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\5.0.0-rc.1.20417.14\ref\net5.0\WindowsBase.dll"
/debug+
/debug:portable
/filealign:512
/optimize-
/out:obj\Debug\net5.0\tmp.dll
/refout:obj\Debug\net5.0\ref\tmp.dll
/target:library
/warnaserror-
/utf8output
/deterministic+
/langversion:9.0
/analyzerconfig:obj\Debug\net5.0\tmp.GeneratedMSBuildEditorConfig.editorconfig
/analyzer:"C:\Program Files\dotnet\sdk\5.0.100-rc.1.20420.14\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll"
/analyzer:"C:\Program Files\dotnet\sdk\5.0.100-rc.1.20420.14\Sdks\Microsoft.NET.Sdk\targets\..\analyzers\Microsoft.CodeAnalysis.NetAnalyzers.dll"
/warnaserror+:NU1605
Class1.cs
"obj\Debug\net5.0\.NETCoreApp,Version=v5.0.AssemblyAttributes.cs"
obj\Debug\net5.0\tmp.AssemblyInfo.cs All that you would then need to do is create a new |
Beta Was this translation helpful? Give feedback.
If you want to know how to compile a given scenario all you need to do is get the commandline.
if you have the sdk installed, you can run these commands to create a new project and produce a log.
that will produce a
msbuild.binlog
file that you can upload to https://live.msbuildlog.com/wait a bit for the viewer to load your log
search for "csc" to filter the results
clicking on that will give you the commanline that the compiler used to build the library.
this is the set of arguments that are passed to csc on my machine:
C:\Program Files\dotnet\dotnet.exe exec "C:\Program Files\dotnet\sdk\5.0.100-rc.1.20420.14\Roslyn\bincore\csc.dll" /noconfig /uns…