{"id":4501,"date":"2023-05-09T15:51:35","date_gmt":"2023-05-09T07:51:35","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/?p=4501"},"modified":"2023-05-09T15:51:35","modified_gmt":"2023-05-09T07:51:35","slug":"csproj%e6%96%87%e4%bb%b6%e6%89%93%e5%8c%85%e6%88%90exe%e7%9a%84%e5%ae%9e%e7%8e%b0%e5%8e%9f%e7%90%86%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/exekaifa\/4501.html","title":{"rendered":"csproj\u6587\u4ef6\u6253\u5305\u6210exe\u7684\u5b9e\u73b0\u539f\u7406\u4ecb\u7ecd"},"content":{"rendered":"<p>\u5728.NET\u5f00\u53d1\u4e2d\uff0ccsproj<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/15\/10\/26325407175.jpg\" \/><\/figure>\n<\/p>\n<p>\u6587\u4ef6\u662fVisual Studio\u9879\u76ee\u6587\u4ef6\u7684\u4e00\u79cd\u683c\u5f0f\uff0c\u7528\u4e8e\u63cf\u8ff0\u9879\u76ee\u7684\u7ed3\u6784\u3001\u4f9d\u8d56\u9879\u3001\u7f16\u8bd1\u9009\u9879\u3001\u8f93\u51fa\u6587\u4ef6\u7b49\u4fe1\u606f\u3002\u5f53\u6211\u4eec\u9700\u8981\u5c06\u4e00\u4e2a.NET\u9879\u76ee\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b9e\u73b0\uff1a<\/p>\n<p>1. \u6253\u5f00Visual Studio\uff0c\u9009\u62e9\u8981\u6253\u5305\u7684\u9879\u76ee\uff0c\u53f3\u952e\u70b9\u51fb\u9009\u62e9\u201c\u53d1\u5e03(Publish)\u201d\u3002<\/p>\n<p>2. \u5728\u201c\u53d1\u5e03(Publish)\u201d\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u201c\u6587\u4ef6<a href=\"https:\/\/exe.yimenapp.com\/tool-2701.html\">linuxtar\u5305\u521b\u5efa<\/a>\u5939(Folder)\u201d\u4f5c\u4e3a\u53d1\u5e03\u76ee\u6807\uff0c\u5e76\u8bbe\u7f6e\u53d1\u5e03\u8def\u5f84\u3002<\/p>\n<p>3. \u70b9\u51fb\u201c\u53d1\u5e03(Publish)\u201d\u6309\u94ae\uff0cVisual Studio\u4f1a\u81ea\u52a8\u7f16\u8bd1\u9879\u76ee\u5e76\u5c06\u8f93\u51fa\u6587\u4ef6\u590d\u5236\u5230\u6307\u5b9a\u7684\u53d1\u5e03\u8def\u5f84\u4e2d\u3002<\/p>\n<p>4. \u5728\u53d1\u5e03\u8def\u5f84\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u4e00\u4e2a\u540d\u4e3a\u201c.exe\u201d\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u6253\u5305\u540e\u7684\u7a0b\u5e8f\u3002<\/p>\n<p>\u90a3\u4e48\uff0ccsproj\u6587\u4ef6\u662f\u5982\u4f55\u88ab\u6253\u5305\u6210exe\u6587\u4ef6\u7684\u5462\uff1f\u5176\u5b9e\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u662f\u7531.NET\u6846\u67b6\u7684\u7f16\u8bd1\u5668\u548c\u94fe\u63a5\u5668\u5b8c\u6210\u7684\u3002\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\uff0c\u7f16\u8bd1\u5668\u4f1a\u5c06csproj\u6587\u4ef6\u4e2d\u7684\u4ee3\u7801\u548c\u8d44\u6e90\u6587\u4ef6\u7f16\u8bd1\u6210\u4e2d\u95f4\u8bed\u8a00\uff08IL\uff09\u4ee3\u7801\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u6269\u5c55\u540d\u4e3a\u201c.dll\u201d\u7684\u52a8\u6001\u94fe\u63a5\u5e93\u6587\u4ef6\u3002\u5728\u94fe\u63a5\u8fc7\u7a0b\u4e2d\uff0c\u94fe\u63a5\u5668\u4f1a\u5c06\u8fd9\u4e2a\u201c.dll\u201d\u6587\u4ef6\u548c.NET\u6846\u67b6\u7684\u8fd0\u884c\u65f6\u5e93\u94fe\u63a5\u5728\u4e00\u8d77\uff0c\u751f\u6210\u4e00\u4e2a\u5305\u542bIL\u4ee3\u7801\u548c.NET\u8fd0\u884c\u65f6\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff08<a href=\"https:\/\/exe.yimenapp.com\/tool-3008.html\">\u4f18\u82bd\u751f\u6210exe<\/a>exe\uff09\u3002<\/p>\n<p>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539csproj\u6587\u4ef6\u4e2d\u7684\u4e00\u4e9b\u7f16\u8bd1\u9009\u9879\u6765\u5f71\u54cd\u7a0b\u5e8f\u7684\u6253\u5305\u7ed3\u679c\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e\u7f16\u8bd1\u76ee\u6807\u4e3a\u201cAny CPU\u201d\u6216\u201cx86\u201d\u7b49\u4e0d\u540c\u7684CPU\u67b6\u6784\uff0c\u4ee5\u4fdd\u8bc1\u7a0b\u5e8f\u5728\u4e0d\u540c\u7684\u8ba1\u7b97\u673a\u4e0a\u90fd\u53ef\u4ee5\u8fd0\u884c\uff1b\u6211\u4eec\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u7a0b\u5e8f\u96c6\u540d\u79f0\u548c\u7248\u672c\u53f7\u7b49\u4fe1\u606f\uff0c\u4ee5\u4fbf\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8fdb\u884c\u8bc6\u522b\u548c\u7ba1\u7406\u3002<\/p>\n<p>\u603b\u4e4b\uff0c\u5c06csproj\u6587\u4ef6\u6253\u5305\u6210exe\u6587\u4ef6\u7684\u8fc7\u7a0b\u662f.NET\u5f00\u53d1\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u6b65\uff0c\u5b83\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u5c06\u81ea\u5df1\u7684\u4ee3\u7801\u548c\u5e94\u7528\u7a0b\u5e8f\u53d1\u5e03\u7ed9\u5176\u4ed6\u4eba\u4f7f\u7528\uff0c\u4e5f\u4e3a.NET\u7a0b\u5e8f\u7684\u90e8\u7f72\u548c\u7ba1\u7406\u63d0\u4f9b\u4e86\u66f4\u52a0\u4fbf\u6377\u548c\u7075\u6d3b\u7684\u65b9\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728.NET\u5f00\u53d1\u4e2d\uff0ccsproj\u6587\u4ef6\u662fVisual Studio\u9879\u76ee\u6587\u4ef6\u7684\u4e00\u79cd\u683c\u5f0f\uff0c\u7528\u4e8e\u63cf\u8ff0\u9879\u76ee\u7684\u7ed3\u6784\u3001\u4f9d\u8d56\u9879\u3001\u7f16\u8bd1\u9009\u9879\u3001\u8f93\u51fa\u6587\u4ef6\u7b49\u4fe1\u606f\u3002\u5f53\u6211\u4eec\u9700\u8981\u5c06\u4e00\u4e2a.NET\u9879\u76ee\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\u65f6\uff0c\u53ef\u4ee5<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[6022,802,6023,1113,1220],"class_list":["post-4501","post","type-post","status-publish","format-standard","hentry","category-exekaifa","tag-exe","tag-802","tag-6023","tag-1113","tag-1220"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/4501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=4501"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/4501\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=4501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=4501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=4501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}