{"id":2720,"date":"2020-02-11T12:09:32","date_gmt":"2020-02-11T09:09:32","guid":{"rendered":"http:\/\/surgery.moscow\/smos\/?p=2720"},"modified":"2020-02-11T18:27:11","modified_gmt":"2020-02-11T15:27:11","slug":"dotnet-build","status":"publish","type":"post","link":"https:\/\/surgery.moscow\/smos\/2020\/02\/11\/dotnet-build\/","title":{"rendered":"dotnet build"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code><strong>dotnet build<\/strong><\/code>&nbsp;\u2014 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0432\u0441\u0435 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet build [&lt;PROJECT>|&lt;SOLUTION>] [-c|--configuration] [-f|--framework] [--force]    [--interactive] [--no-dependencies] [--no-incremental] [--no-restore] [--nologo] [-o|--output] [-r|--runtime] [-v|--verbosity] [--version-suffix]\n\ndotnet build [-h|--help]\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"examples\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439:\n.NET Core CLI<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet build\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Release:\n.NET Core CLI<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet build --configuration Release\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Ubuntu&nbsp;18.04):\n.NET Core CLI<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet build --runtime ubuntu.18.04-x64\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u0431\u043e\u0440\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \n\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0430\u043a\u0435\u0442\u0430 NuGet \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \n\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f (\u043f\u0430\u043a\u0435\u0442 SDK \u0434\u043b\u044f .NET Core 2.0 \u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0437\u0434\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439).\n.NET Core CLI<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet build --source c:\\packages\\mypackages\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u0431\u043e\u0440\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u044e&nbsp;1.2.3.4 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <code>-p<\/code> <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/dotnet\/core\/tools\/dotnet-build#msbuild\">MSBuild<\/a>.\n.NET Core CLI<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet build -p:Version=1.2.3.4\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo dotnet build  -o \/var\/www\/path_to_folder &#8212;no-dependencies &#8212;runtime linux-x64 <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo dotnet build  -o \/var\/www\/path_to_folder  &#8212;no-dependencies &#8212;runtime ubuntu.18.04-x64 -p:Version=2.2<\/strong>.8<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo dotnet build  -o \/var\/www\/path_to_folder  &#8212;no-dependencies &#8212;runtime linux-x64 -p:Version=2.2.8<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo dotnet build  -o \/var\/www\/path_to_folder &#8212;runtime ubuntu.18.04-x64 -p:Version=2.2.8<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.microsoft.com\/ru-ru\/dotnet\/core\/tools\/dotnet-build\">\u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <\/a> https:\/\/docs.microsoft.com\/ru-ru\/dotnet\/core\/tools\/dotnet-build<\/p>\n","protected":false},"excerpt":{"rendered":"<p>dotnet build&nbsp;\u2014 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0432\u0441\u0435 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439: .NET Core CLI \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,22],"tags":[],"class_list":["post-2720","post","type-post","status-publish","format-standard","hentry","category-internet","category-technology"],"_links":{"self":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/2720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/comments?post=2720"}],"version-history":[{"count":2,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/2720\/revisions"}],"predecessor-version":[{"id":2727,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/2720\/revisions\/2727"}],"wp:attachment":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/media?parent=2720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/categories?post=2720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/tags?post=2720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}