{"id":524,"date":"2016-07-08T14:52:16","date_gmt":"2016-07-08T14:52:16","guid":{"rendered":"ba2fd310dcaa8781a9a652a31baf3c68"},"modified":"2016-07-08T14:52:16","modified_gmt":"2016-07-08T14:52:16","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/524","title":{"rendered":".NET Core dotnet \u547d\u4ee4\u5927\u5168"},"content":{"rendered":"<p>\u547d\u4ee4\u76ee\u5f55\uff1a<\/p>\n<p><strong>dotnet-new<\/strong><\/p>\n<p><strong>dotnet-restore<\/strong><\/p>\n<p><strong>dotnet-run<\/strong><\/p>\n<p><strong>dotnet-build<\/strong><\/p>\n<p><strong>dotnet-test<\/strong><\/p>\n<p><strong>dotnet-pack<\/strong><\/p>\n<p><strong>dotnet-publish<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u73b0\u5728\u6765\u8be6\u7ec6\u8bb2\u89e3\u3002<\/p>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u521b\u5efa(dotnet new)<\/span><\/h2>\n<p><span style=\"font-family:'Microsoft YaHei';\">\u9996\u5148\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u9879\u76ee \uff0c\u8fd9\u91cc\u6211\u4eec\u521b\u5efa\u63a7\u5236\u53f0\u7a0b\u5e8f\u3002<\/span><\/p>\n<p><strong><span style=\"font-family:'Microsoft YaHei';\">dotnet new<\/span><\/strong><\/p>\n<p><span style=\"font-family:'Microsoft YaHei';\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/72691467960907.png\" id=\"ematt:414\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/72691467960907.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>dotnet \u66f4\u591a\u547d\u4ee4\u8bf7\u53c2\u8003\u5e2e\u52a9\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd8\u539f(dotnet restore \u53ca dotnet pack)<\/span><\/h2>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6211\u4eec\u5728\u521b\u5efa\u4e00\u4e2a class lib &nbsp;\u4e5f\u5c31\u662f\u7c7b\u5e93\u3002<\/span><\/p>\n<p><strong><span style=\"font-family:arial, helvetica, sans-serif;\">dotnet new -t lib<\/span><\/strong><\/p>\n<p><strong><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/b3241467960907.png\" id=\"ematt:415\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/b3241467960907.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/strong><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u521b\u5efa\u597d\u4ee5\u540e\uff0c\u7f16\u5199\u4e00\u4e9b\u81ea\u5df1\u7684\u4ee3\u7801\u7136\u540e\u8fdb\u884c\u6253\u5305\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/539f1467960908.png\" id=\"ematt:416\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/539f1467960908.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u6211\u7f16\u5199\u4e86\u4e24\u4e2a\u65b9\u6cd5\uff0c\u73b0\u5728\u6765\u6253\u5305\u3002<\/p>\n<p><strong><span style=\"font-family:arial, helvetica, sans-serif;\">dotnet restore<\/span><\/strong><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong>dotnet pack<\/strong><\/span><\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/8fcc1467960908.png\" id=\"ematt:417\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/8fcc1467960908.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">.NET Core \u600e\u6837\u6dfb\u52a0\u79bb\u7ebf\u5f15\u7528\u5305\u5462\uff1f\u73b0\u5728\u7b54\u6848\u5c31\u63ed\u6653\u4e86\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6253\u5305\u597d\u4ee5\u540e\uff0c\u6211\u4eec\u5c06applib \u6dfb\u52a0\u5230 app\u7684 <strong>project.json<\/strong>&nbsp;\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/c81a1467960909.png\" id=\"ematt:418\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/c81a1467960909.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6dfb\u52a0\u597d\u4ee5\u540e\u5207\u5230app \u76ee\u5f55\uff0c\u7136\u540e\u8fdb\u884c\u8fd8\u539f\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd8\u539f\u4f7f\u7528\u7684\u547d\u4ee4\u662f\uff1a<strong>dotnet restore -f E:\\dotnet\\applib\\bin\\Debug\\<\/strong><\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong>dotnet restore -f \u5305\u7684\u8def\u5f84<\/strong><\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/b62b1467960909.png\" id=\"ematt:419\"><img loading=\"lazy\" decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/b62b1467960909.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"116\" width=\"644\" \/><\/a><br \/>\n<\/strong><\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd9\u6837\u6211\u4eec\u5c31\u80fd\u76f4\u63a5\u5728\u9879\u76ee\u91cc\u8c03\u7528applib \u91cc\u9762\u7684\u65b9\u6cd5\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6211\u4eec\u5728\u4ee3\u7801\u91cc\u7f16\u5199\u5bf9\u5e94\u7684\u8c03\u7528\uff0c\u7136\u540e\u6267\u884c\u7a0b\u5e8f\u3002\u53ef\u4ee5\u770b\u5230\u6b63\u786e\u8f93\u51faclass lib \u7684\u7ed3\u679c\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/b8fa1467960909.png\" id=\"ematt:420\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/b8fa1467960909.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd0\u884c(dotnet build \u53ca dotnet run)<\/span><\/h2>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u4ee5app \u4e3a\u4f8b\uff1a<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong>dotnet build<\/strong>&nbsp;\u7f16\u8bd1\u4ee3\u7801<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/6a871467960910.png\" id=\"ematt:421\"><img loading=\"lazy\" decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/6a871467960910.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"223\" width=\"581\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>dotnet run<\/strong> \u6267\u884c\u7a0b\u5e8f<\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/4b7f1467960911.png\" id=\"ematt:422\"><img loading=\"lazy\" decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/4b7f1467960911.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"101\" width=\"572\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>dotnet xx.dll<\/strong> \u4e5f\u662f\u6267\u884c\u7a0b\u5e8f<\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/076c1467960911.png\" id=\"ematt:423\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/076c1467960911.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u6d4b\u8bd5(dotnet test)<\/span><\/h2>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd9\u91cc\u6211\u4eec\u8981\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\u53ca\u9879\u76ee\u4e86\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u65b0\u5efa\u6d4b\u8bd5\u9879\u76ee:&nbsp;<\/span><strong><span style=\"font-family:arial, helvetica, sans-serif;\">dotnet new -t xunittest&nbsp;<\/span><\/strong><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/a0b01467960912.png\" id=\"ematt:424\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/a0b01467960912.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u65b0\u5efa\u597d\u9879\u76ee\u6211\u4eec\u53ef\u4ee5\u5728\u91cc\u9762\u6dfb\u52a0\u6d4b\u8bd5\u65b9\u6cd5\uff0c\u8fd9\u91cc\u6211\u76f4\u63a5\u8fd0\u884c\u6d4b\u8bd5\u3002<\/p>\n<p><strong>dotnet restore<\/strong><\/p>\n<p><strong>dotnet test<\/strong><\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/a1871467960912.png\" id=\"ematt:425\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/a1871467960912.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><\/p>\n<h2>&nbsp;<\/h2>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u53d1\u5e03(dotnet publish)<\/span><\/h2>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u91cd\u70b9\u6765\u4e86\uff0c\u53d1\u5e03\u9879\u76ee\u4f7f\u5176\u53ef\u4ee5\u8de8\u5e73\u53f0\u8fd0\u884c\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong>dotnet publish<\/strong> \u9ed8\u8ba4\u53d1\u5e03<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/e9cc1467960913.png\" id=\"ematt:426\"><img loading=\"lazy\" decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/e9cc1467960913.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"114\" width=\"647\" \/><\/a><br \/>\n<\/span><\/p>\n<p>\u53d1\u5e03\u540e\u5b9a\u4f4d\u5230publish\u76ee\u5f55\u4f7f\u7528 <strong>dotnet xx.dll <\/strong>\u6267\u884c\u5e94\u7528\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e0b\u9762\u6765\u8de8\u5e73\u53f0\u53d1\u5e03\u3002<\/p>\n<p>\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u7684\u6587\u7ae0\uff1a<a href=\"http:\/\/www.cnblogs.com\/linezero\/p\/5475246.html\" target=\"_blank\">http:\/\/www.cnblogs.com\/linezero\/p\/5475246.html<\/a><\/p>\n<p><strong>\u5728 project.json \u52a0\u5165 runtimes \u8282\u70b9 \u6ce8\u91ca\u6389 \"type\": \"platform\"<\/strong>\u3002<\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/96851467960913.png\" id=\"ematt:427\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/96851467960913.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><\/p>\n<p>\u9996\u5148\u6211\u4eec\u8981<strong>dotnet restore<\/strong><\/p>\n<p>\u8fd9\u91cc\u6211\u8fd8\u539f\u7684\u65f6\u5019\u6709\u4e9b\u4e45\uff0c\u5927\u5bb6\u8010\u5fc3\u7b49\u5f85\u4e00\u4e0b\u3002<\/p>\n<p><strong>dotnet publish -r win10-x64<\/strong><\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/2a311467960914.png\" id=\"ematt:428\"><img loading=\"lazy\" decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/2a311467960914.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"231\" width=\"632\" \/><\/a><\/p>\n<p>\u8fd9\u91cc\u53d1\u5e03\u540e\uff0c\u53ef\u4ee5\u76f4\u63a5\u5b9a\u4f4d\u5230\u53d1\u5e03publish\u76ee\u5f55\uff0c\u6267\u884c <strong>app.exe<\/strong> \u5373\u53ef\u3002&nbsp;<\/p>\n<p><strong>dotnet publish -r ubuntu.14.04-x64<\/strong><\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/4ef71467960914.png\" id=\"ematt:429\"><img loading=\"lazy\" decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/4ef71467960914.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"233\" width=\"625\" \/><\/a><\/p>\n<p>\u5c06publish \u6587\u4ef6\u5939\u4e0a\u4f20\u81f3linux\u7cfb\u7edf \uff0c\u8bbe\u7f6eapp\u7684\u6743\u9650\u4e3a\u53ef\u6267\u884c\uff0c\u7136\u540e .\/app \u5c31\u53ef\u4ee5\u8fd0\u884c\u4e86\u3002<\/p>\n<p><strong>dotnet publish -r \u6307\u5b9aruntimes\u8282\u70b9\u91cc\u7cfb\u7edfID<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\n.<\/p>\n<p>\u8f6c\u81ea\uff1a http:\/\/www.cnblogs.com\/linezero\/p\/dotnet.html<\/p>\n<p>\u53c2\u8003\uff1a https:\/\/docs.microsoft.com\/en-us\/dotnet\/articles\/core\/tools\/index<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u547d\u4ee4\u76ee\u5f55\uff1a<\/p>\n<p><strong>dotnet-new<\/strong><\/p>\n<p><strong>dotnet-restore<\/strong><\/p>\n<p><strong>dotnet-run<\/strong><\/p>\n<p><strong>dotnet-build<\/strong><\/p>\n<p><strong>dotnet-test<\/strong><\/p>\n<p><strong>dotnet-pack<\/strong><\/p>\n<p><strong>dotnet-publish<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u73b0\u5728\u6765\u8be6\u7ec6\u8bb2\u89e3\u3002<\/p>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u521b\u5efa(dotnet new)<\/span><\/h2>\n<p><span style=\"font-family:'Microsoft YaHei';\">\u9996\u5148\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u9879\u76ee \uff0c\u8fd9\u91cc\u6211\u4eec\u521b\u5efa\u63a7\u5236\u53f0\u7a0b\u5e8f\u3002<\/span><\/p>\n<p><strong><span style=\"font-family:'Microsoft YaHei';\">dotnet new<\/span><\/strong><\/p>\n<p><span style=\"font-family:'Microsoft YaHei';\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/72691467960907.png\" id=\"ematt:414\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/72691467960907.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>dotnet \u66f4\u591a\u547d\u4ee4\u8bf7\u53c2\u8003\u5e2e\u52a9\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd8\u539f(dotnet restore \u53ca dotnet pack)<\/span><\/h2>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6211\u4eec\u5728\u521b\u5efa\u4e00\u4e2a class lib &nbsp;\u4e5f\u5c31\u662f\u7c7b\u5e93\u3002<\/span><\/p>\n<p><strong><span style=\"font-family:arial, helvetica, sans-serif;\">dotnet new -t lib<\/span><\/strong><\/p>\n<p><strong><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/b3241467960907.png\" id=\"ematt:415\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/b3241467960907.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/strong><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u521b\u5efa\u597d\u4ee5\u540e\uff0c\u7f16\u5199\u4e00\u4e9b\u81ea\u5df1\u7684\u4ee3\u7801\u7136\u540e\u8fdb\u884c\u6253\u5305\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/539f1467960908.png\" id=\"ematt:416\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/539f1467960908.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u6211\u7f16\u5199\u4e86\u4e24\u4e2a\u65b9\u6cd5\uff0c\u73b0\u5728\u6765\u6253\u5305\u3002<\/p>\n<p><strong><span style=\"font-family:arial, helvetica, sans-serif;\">dotnet restore<\/span><\/strong><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong>dotnet pack<\/strong><\/span><\/p>\n<p><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/8fcc1467960908.png\" id=\"ematt:417\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/8fcc1467960908.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">.NET Core \u600e\u6837\u6dfb\u52a0\u79bb\u7ebf\u5f15\u7528\u5305\u5462\uff1f\u73b0\u5728\u7b54\u6848\u5c31\u63ed\u6653\u4e86\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6253\u5305\u597d\u4ee5\u540e\uff0c\u6211\u4eec\u5c06applib \u6dfb\u52a0\u5230 app\u7684 <strong>project.json<\/strong>&nbsp;\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/c81a1467960909.png\" id=\"ematt:418\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/c81a1467960909.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6dfb\u52a0\u597d\u4ee5\u540e\u5207\u5230app \u76ee\u5f55\uff0c\u7136\u540e\u8fdb\u884c\u8fd8\u539f\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd8\u539f\u4f7f\u7528\u7684\u547d\u4ee4\u662f\uff1a<strong>dotnet restore -f E:\\dotnet\\applib\\bin\\Debug\\<\/strong><\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong>dotnet restore -f \u5305\u7684\u8def\u5f84<\/strong><\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><strong><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/b62b1467960909.png\" id=\"ematt:419\"><img loading=\"lazy\" decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/b62b1467960909.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"116\" width=\"644\" \/><\/a><br \/>\n<\/strong><\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd9\u6837\u6211\u4eec\u5c31\u80fd\u76f4\u63a5\u5728\u9879\u76ee\u91cc\u8c03\u7528applib \u91cc\u9762\u7684\u65b9\u6cd5\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\">\u6211\u4eec\u5728\u4ee3\u7801\u91cc\u7f16\u5199\u5bf9\u5e94\u7684\u8c03\u7528\uff0c\u7136\u540e\u6267\u884c\u7a0b\u5e8f\u3002\u53ef\u4ee5\u770b\u5230\u6b63\u786e\u8f93\u51faclass lib \u7684\u7ed3\u679c\u3002<\/span><\/p>\n<p><span style=\"font-family:arial, helvetica, sans-serif;\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201607\/b8fa1467960909.png\" id=\"ematt:420\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201607\/b8fa1467960909.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-family:arial, helvetica, sans-serif;\">\u8fd0\u884c(dotnet build \u53ca dotne...<\/span><\/h2>\n<p> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/524\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[279],"tags":[],"class_list":["post-524","post","type-post","status-publish","format-standard","hentry","category-dotnet"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=524"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/524\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}