3 ms·
Right on the dotnet core getting started page: https://www.microsoft.com/net/core#linuxredhat https://www.microsoft.com/net/core#linuxredhat dotnet build d
by michaeldwan 10y ago
Right on the dotnet core getting started page: https://www.microsoft.com/net/core#linuxredhat https://www.microsoft.com/net/core#linuxredhat
dotnet build
dotnet run
dotnet test
updated: formatting
- tree_of_item 10y agoThanks, I don't understand why people were recommending csc.exe and msbuild if this was a thing...
- ungzd 10y agoMicrosoft is deprecating project.json and recommending to move back to msbuild xml files: https://blogs.msdn.microsoft.com/dotnet/2016/05/23/changes-to-project-json/ https://blogs.msdn.microsoft.com/dotnet/2016/05/23/changes-t... Or maybe they deprecated this deprecation later? It's all very confusing.
- Locke1689 10y agoIt is quite confusing (sorry) but the format of the project files won't change the command line interaction -- you'll still do dotnet build dotnet run
- ungzd 10y agoInstalled .NET core 1.1.0 and it still looks for project.json (and not uses msbuild files). $ dotnet build Couldn't find 'project.json' in current directory $ xbuild XBuild Engine Version 14.0 Mono, Version 4.6.1.0 Copyright (C) 2005-2013 Various Mono authors Build started 17.11.2016 18:08:11. ... Build succeeded. Also it creates project.json when creating new project.
- enricosada 10y ago.net core 1.1 is the runtime (coreclr + bcl) the .net core sdk (tooling, the cli command line) is 1.0.0-preview2 and use `project.json` your xbuild is from mono installed on your system, not .net core if you download and use the .net core sdk `1.0.0-preview3` you will see the msbuild based csproj in preview3 (run `dotnet new`). msbuild based mean `dotnet build` is calling the msbuild library with `/t:Build` argument. To explicity run msbuild, you can do `dotnet msbuild`