In .net framework i can use csc.exe to compile one cs file to a dll file.
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe /t:library /out:MyCScode.dll *.cs /debug /r:System.dll /r:System.Web.dll /r:System.Data.dll /r:System.Xml.dll
How can i do this in dotnetcore ?