{"id":191,"date":"2022-01-10T19:48:00","date_gmt":"2022-01-10T11:48:00","guid":{"rendered":"http:\/\/47.107.115.238\/?p=191"},"modified":"2024-09-15T16:22:28","modified_gmt":"2024-09-15T08:22:28","slug":"c%e7%a8%8b%e5%ba%8f%e6%89%93%e5%8c%85","status":"publish","type":"post","link":"https:\/\/lxylp.com\/?p=191","title":{"rendered":"C#\u7a0b\u5e8f\u6253\u5305"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_69_1 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/lxylp.com\/?p=191\/#%E4%BD%BF%E7%94%A8Visual_Studio_Installer_2015%E6%89%93%E5%8C%85\" title=\"\u4f7f\u7528Visual Studio Installer 2015\u6253\u5305\">\u4f7f\u7528Visual Studio Installer 2015\u6253\u5305<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/lxylp.com\/?p=191\/#1%E5%88%9B%E5%BB%BA%E6%89%93%E5%8C%85%E9%A1%B9%E7%9B%AE\" title=\"1.\u521b\u5efa\u6253\u5305\u9879\u76ee\">1.\u521b\u5efa\u6253\u5305\u9879\u76ee<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/lxylp.com\/?p=191\/#2%E9%85%8D%E7%BD%AE%E7%A8%8B%E5%BA%8F%E4%BF%A1%E6%81%AF\" title=\"2.\u914d\u7f6e\u7a0b\u5e8f\u4fe1\u606f\">2.\u914d\u7f6e\u7a0b\u5e8f\u4fe1\u606f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/lxylp.com\/?p=191\/#3%E7%A8%8B%E5%BA%8F%E5%B0%81%E8%A3%85\" title=\"3.\u7a0b\u5e8f\u5c01\u88c5\">3.\u7a0b\u5e8f\u5c01\u88c5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/lxylp.com\/?p=191\/#4%E8%81%94%E5%8A%A8%E7%94%A8%E6%88%B7%E6%A1%8C%E9%9D%A2%E4%B8%8E%E5%BC%80%E5%A7%8B%E8%8F%9C%E5%8D%95\" title=\"4.\u8054\u52a8\u7528\u6237\u684c\u9762\u4e0e\u5f00\u59cb\u83dc\u5355\">4.\u8054\u52a8\u7528\u6237\u684c\u9762\u4e0e\u5f00\u59cb\u83dc\u5355<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/lxylp.com\/?p=191\/#5%E6%9C%80%E5%90%8E%E7%9A%84%E9%85%8D%E7%BD%AE\" title=\"5.\u6700\u540e\u7684\u914d\u7f6e\">5.\u6700\u540e\u7684\u914d\u7f6e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/lxylp.com\/?p=191\/#%E9%A1%B9%E7%9B%AE%E4%BF%A1%E6%81%AF\" title=\"\u9879\u76ee\u4fe1\u606f\">\u9879\u76ee\u4fe1\u606f<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/lxylp.com\/?p=191\/#%E9%9A%90%E8%97%8F%E5%AE%9A%E4%B9%89%E7%9A%84button%E7%A9%BA%E9%97%B4\" title=\"\u9690\u85cf\u5b9a\u4e49\u7684button\u7a7a\u95f4\">\u9690\u85cf\u5b9a\u4e49\u7684button\u7a7a\u95f4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/lxylp.com\/?p=191\/#MessageBoxShow%E6%9C%89%E5%A4%9A%E8%A1%8C%E6%96%87%E6%9C%AC\" title=\"MessageBox.Show()\u6709\u591a\u884c\u6587\u672c\">MessageBox.Show()\u6709\u591a\u884c\u6587\u672c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/lxylp.com\/?p=191\/#C%E7%BC%96%E7%A8%8B%E4%B8%AD%E5%A6%82%E4%BD%95%E6%B7%BB%E5%8A%A0%E8%B5%84%E6%BA%90\" title=\"C#\u7f16\u7a0b\u4e2d\u5982\u4f55\u6dfb\u52a0\u8d44\u6e90\">C#\u7f16\u7a0b\u4e2d\u5982\u4f55\u6dfb\u52a0\u8d44\u6e90<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/lxylp.com\/?p=191\/#%E5%A4%9A%E8%A1%8C%E4%B8%8E%E5%8F%96%E6%B6%88%E5%A4%9A%E8%A1%8C%E6%B3%A8%E9%87%8A%E5%BF%AB%E6%8D%B7%E9%94%AE\" title=\"\u591a\u884c\u4e0e\u53d6\u6d88\u591a\u884c\u6ce8\u91ca\u5feb\u6377\u952e\">\u591a\u884c\u4e0e\u53d6\u6d88\u591a\u884c\u6ce8\u91ca\u5feb\u6377\u952e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/lxylp.com\/?p=191\/#%E7%AA%97%E4%BD%93%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E4%B9%8B%E6%96%B0%E5%BB%BA%E7%AA%97%E4%BD%93%E5%92%8C%E6%B7%BB%E5%8A%A0%E7%AA%97%E4%BD%93%E4%BA%8B%E4%BB%B6\" title=\"\u7a97\u4f53\u5e94\u7528\u7a0b\u5e8f\u4e4b\u65b0\u5efa\u7a97\u4f53\u548c\u6dfb\u52a0\u7a97\u4f53\u4e8b\u4ef6\">\u7a97\u4f53\u5e94\u7528\u7a0b\u5e8f\u4e4b\u65b0\u5efa\u7a97\u4f53\u548c\u6dfb\u52a0\u7a97\u4f53\u4e8b\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/lxylp.com\/?p=191\/#C%E6%98%BE%E7%A4%BA%E8%A1%8C%E5%8F%B7\" title=\"C#\u663e\u793a\u884c\u53f7\">C#\u663e\u793a\u884c\u53f7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/lxylp.com\/?p=191\/#%E4%BB%8E%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE%E4%B8%AD%E5%A4%8D%E5%88%B6%E5%88%B0%E5%8F%A6%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE\" title=\"\u4ece\u4e00\u4e2a\u9879\u76ee\u4e2d\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u9879\u76ee\">\u4ece\u4e00\u4e2a\u9879\u76ee\u4e2d\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u9879\u76ee<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/lxylp.com\/?p=191\/#File_targeting_%E2%80%98AMD64_is_not_compatible_with_the_projects_target_platform_%E2%80%98x86\" title=\"File targeting \u2018AMD64\u2019 is not compatible with the project\u2019s target platform \u2018x86\u2019\">File targeting \u2018AMD64\u2019 is not compatible with the project\u2019s target platform \u2018x86\u2019<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/lxylp.com\/?p=191\/#%E4%B8%8D%E6%98%BE%E7%A4%BA%E8%BE%93%E5%87%BA%E7%AA%97%E5%8F%A3\" title=\"\u4e0d\u663e\u793a\u8f93\u51fa\u7a97\u53e3\">\u4e0d\u663e\u793a\u8f93\u51fa\u7a97\u53e3<\/a><\/li><\/ul><\/nav><\/div>\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8Visual_Studio_Installer_2015%E6%89%93%E5%8C%85\"><\/span>\u4f7f\u7528Visual Studio Installer 2015\u6253\u5305<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=visualstudioclient.MicrosoftVisualStudio2015InstallerProjects\">Microsoft Visual Studio 2015 Installer Projects extension<\/a><\/p>\n\n\n\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u76f4\u63a5\u8fd0\u884c\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1%E5%88%9B%E5%BB%BA%E6%89%93%E5%8C%85%E9%A1%B9%E7%9B%AE\"><\/span><strong>1.\u521b\u5efa\u6253\u5305\u9879\u76ee<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u53f3\u952e\u2014\u2014&gt;\u65b0\u5efa\u9879\u76ee\u2014\u2014&gt;\u9009\u62e9\u5176\u4ed6\u9879\u76ee\u7c7b\u578b\u2014\u2014&gt;\u9009\u62e9Visual Studio Installer \u2013 Setup Project<\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp1.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u7b2c\u4e00\u4e2a\u6587\u4ef6\u5939\u5305\u542b\u6253\u5305\u7a0b\u5e8f\u7684\u6240\u6709\u6587\u4ef6(dll,ico\u7b49\uff09\u5185\u5bb9\uff0c\u76f8\u5f53\u4e8e\u666e\u901a\u9879\u76ee\u4e2d\u7684Debug\u6587\u4ef6\u5939\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u4e2a\u6587\u4ef6\u5939\u5305\u542b\u5c06\u8981\u5b89\u88c5\u8005\u684c\u9762\u663e\u793a\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e09\u4e2a\u6587\u4ef6\u5939\u663e\u793a\u5728\u5b89\u88c5\u8005\u7535\u8111\u7684\u5f00\u59cb\u83dc\u5355\u4e2d\uff0c\u4e00\u822c\u5305\u542b\u5220\u9664\u5378\u8f7d\u7a0b\u5e8f\u7684\u6587\u4ef6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2%E9%85%8D%E7%BD%AE%E7%A8%8B%E5%BA%8F%E4%BF%A1%E6%81%AF\"><\/span><strong>2.\u914d\u7f6e\u7a0b\u5e8f\u4fe1\u606f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u9009\u4e2d\u65b0\u5efa\u7684Setup2\u7a0b\u5e8f\uff0c\u6309F4\u6253\u5f00\u5c5e\u6027\u7a97\u53e3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp2.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u4e00\u822c\u60c5\u51b5\uff0c\u4fee\u6539Author\u3001Description\u3001Mnufcture\u3001ProductName\u3001Title\u5c5e\u6027\u5373\u53ef\uff0c\u5206\u522b\u4ee3\u8868\u4f5c\u8005\u3001\u7a0b\u5e8f\u5b89\u88c5\u65f6\u7684\u63cf\u8ff0\u3001\u516c\u53f8\u540d\u3001\u4ea7\u54c1\u540d\u3001\u5b89\u88c5\u5f15\u5bfc\u7684\u6807\u9898\u3002Mnufcture\u548cAuthor\u5c06\u4f1a\u663e\u793a\u63a7\u5236\u9762\u677f\u67e5\u770b\u7a0b\u5e8f\u65f6\u770b\u5230\u3002<\/p>\n\n\n\n<p><strong>\u6ce8\u610f<\/strong>ProductCode\u5c5e\u6027\uff0c\u5176\u503c\u5173\u7cfb\u5230\u5378\u8f7d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3%E7%A8%8B%E5%BA%8F%E5%B0%81%E8%A3%85\"><\/span><strong>3.\u7a0b\u5e8f\u5c01\u88c5<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u53f3\u952eSetup2\u9879\u76ee\uff0c\u9009\u62e9View\u2014\u2014&gt;\u6587\u4ef6\u7cfb\u7edf<\/p>\n\n\n\n<p>\u9009\u62e9\u7b2c\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u53f3\u952eAdd\u2014\u2014&gt;\u9879\u76ee\u8f93\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp3.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u9009\u62e9\u4f60\u8981\u6253\u5305\u7684\u4e3b\u7a0b\u5e8f\u9879\u76ee\uff0c\u9009\u62e9\u4e3a\u4e3b\u8f93\u51fa\uff0c\u70b9\u51fb\u786e\u5b9a\u3002<\/p>\n\n\n\n<p><strong>\u6ce8\u610f\u8fd9\u91cc\u6dfb\u52a0\u540e\u7684\u6587\u4ef6\u5e76\u4e0d\u5168\uff0c\u53ef\u6253\u5f00\u9879\u76ee\u7684Debug\u6587\u4ef6\uff0c\u5bf9\u6bd4\u4e00\u4e0b<\/strong>\uff0c\u5c06\u7f3a\u5c11\u7684\u5176\u4ed6\u6587\u4ef6\u6216\u6587\u4ef6\u5939\uff0c\u56fe\u7247\u7b49\u6dfb\u52a0\u8fdb\u6765\u3002\u5f53\u7a0b\u5e8f\u67b6\u6784\u5206\u5c42\u6bd4\u8f83\u591a\u65f6\uff0c\u6bd4\u5982\u754c\u9762\u6a21\u5757\u548c\u6253\u5305\u7a0b\u5e8f\u4e0d\u4e00\u4e2a\u9879\u76ee\uff0c\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u5185\u5bb9\u6587\u4ef6\u7684\u65b9\u5f0f\u6dfb\u52a0\u8fdb\u6765\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4%E8%81%94%E5%8A%A8%E7%94%A8%E6%88%B7%E6%A1%8C%E9%9D%A2%E4%B8%8E%E5%BC%80%E5%A7%8B%E8%8F%9C%E5%8D%95\"><\/span><strong>4.\u8054\u52a8\u7528\u6237\u684c\u9762\u4e0e\u5f00\u59cb\u83dc\u5355<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u627e\u5230\u4e3b\u8f93\u51fa Output(Active)\uff0c\u53f3\u952e\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp4.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u627e\u5230\u521a\u521b\u5efa\u7684\u5feb\u6377\u6587\u4ef6\uff0c\u53f3\u952e\u91cd\u547d\u540d\u4e3a\u7a0b\u5e8f\u540d\u79f0\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5b83\u5c06\u663e\u793a\u5230\u4f60\u684c\u9762\u4e0a\u3002<\/p>\n\n\n\n<p>\u526a\u5207\u6b64\u6587\u4ef6\u5230\u6587\u4ef6\u7cfb\u7edf\u7b2c\u4e8c\u4e2a\u6587\u4ef6\u5939\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp5.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u9009\u62e9\u5feb\u6377\u65b9\u5f0f\uff0c\u6253\u5f00\u5c5e\u6027\u7a97\u53e3\uff0c\u53ef\u6dfb\u52a0\u63cf\u8ff0\u7b49\uff0c\u4fee\u6539Icon\uff0c\u9009\u62e9\u4e00\u4e2aico\u56fe\u6807\uff0c\u8fd9\u4e2a\u56fe\u6807\u53ef\u4ee5\u76f4\u63a5\u6765\u81ea\u6587\u4ef6\u7cfb\u7edf\u7b2c\u4e00\u4e2a\u6587\u4ef6\u5939\u4e0b\u3002<\/p>\n\n\n\n<p>\u9009\u62e9\u6587\u4ef6\u7cfb\u7edf\u7b2c\u4e09\u4e2a\u6587\u4ef6\u5939\uff0c\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u540d\u5b57\u4e3a\u4f60\u7684\u7a0b\u5e8f\u540d\u5c31\u884c\u3002 \u5e76\u91cd\u590d\u521b\u5efa\u4e00\u4e2a\u4e3b\u8f93\u51fa\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u7c98\u8d34\u5230\u6587\u4ef6\u5939\u4e0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp6.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u7136\u540e\uff0c\u6bd4\u8f83\u91cd\u8981\u7684\u4e00\u6b65\u6765\u4e86\uff0c\u6dfb\u52a0\u5220\u9664\u6587\u4ef6\u3002\u63d0\u4f9b\u7cfb\u7edf\u5378\u8f7d\u7a0b\u5e8f\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u627e\u5230C\uff1aWindows\\System32\\Msiexec.exe\u8fd9\u4e2a\u6587\u4ef6\uff0c\u628a\u4ed6\u590d\u5236\u5230\u7b2c\u4e00\u4e2a\u6587\u4ef6\u5939\uff08\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff09\u4e0b\uff0c\u5e76\u4fee\u6539\u540d\u5b57\u4e3a\u5378\u8f7d\u7a0b\u5e8f.exe\uff0c<\/p>\n\n\n\n<p>\u521b\u5efa\u5b83\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u6253\u5f00\u5feb\u6377\u65b9\u5f0f\u7684\u5c5e\u6027\u7a97\u53e3\uff0c\u586b\u52a0Arguments\u503c<\/p>\n\n\n\n<p>\u4e00\u5b9a\u8981\u6309\u7167\u8fd9\u4e2a\u683c\u5f0f\u6765 ,\u5148\u586b\u5165 \/x\uff0c\u7136\u540e\u52a0\u4e00\u4e2a\u7a7a\u683c\uff0c\u590d\u5236\u4e0a\u6587\u4e2d\u8981\u4f60\u7559\u610f\u7684Setup\u9879\u76ee\u7684\u5c5e\u6027ProductCode\u53c2\u6570\u503c\uff0c\u586b\u5165\u7a7a\u683c\u540e\u9762\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp7.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u526a\u5207\u6b64\u5feb\u6377\u65b9\u5f0f\u7c98\u8d34\u5230\u6587\u4ef6\u7cfb\u7edf\u7684\u7b2c\u4e09\u4e2a\u6587\u4ef6\u5939\uff08\u7528\u6237\u5f00\u59cb\u83dc\u5355\u6587\u4ef6\u5939\uff09\uff0c\u653e\u5165\u4f60\u521b\u5efa\u7684\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n\n\n\n<p>\u6b64\u540e\u5728\u521b\u5efa\u4e00\u4efd\u5378\u8f7d\u7a0b\u5e8f\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u540c\u6837\u6dfb\u52a0Arguments\u503c\uff0c\u9009\u62e9\u771f\u6b63\u7684\u5378\u8f7d\u7a0b\u5e8f\u6587\u4ef6\uff0c\u6253\u5f00\u5c5e\u6027\u7a97\u53e3\uff0c\u4fee\u6539Hidden\u503c\u4e3aTrue\uff0c\u8ba9\u5176\u9690\u85cf\u3002\u8fd9\u6837\u7528\u6237\u5728\u6253\u5f00\u7a0b\u5e8f\u6587\u4ef6\u5939\u65f6\uff0c\u624d\u80fd\u771f\u6b63\u5378\u8f7d\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5%E6%9C%80%E5%90%8E%E7%9A%84%E9%85%8D%E7%BD%AE\"><\/span><strong>5.\u6700\u540e\u7684\u914d\u7f6e<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5176\u5b9e\u8fd8\u53ef\u4ee5\u4fee\u6539\u5f88\u591a\u4e1c\u897f\uff0c\u6bd4\u5982\u81ea\u5b9a\u4e49\u7528\u6237\u5f15\u5bfc\u754c\u9762\u4e86\uff0c\u53ea\u662f\u611f\u89c9\u6ca1\u592a\u6709\u5fc5\u8981\uff0c\u6211\u4e00\u822c\u4e0d\u4f1a\u53bb\u7279\u522b\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p>\u9009\u62e9Setup\u9879\u76ee\u53f3\u952e\u2014\u2014&gt;View\u4e0b\u7684\u5185\u5bb9\uff0c\u90fd\u53ef\u4ee5\u8bd5\u7740\u6539\u4e00\u6539\uff0c\u5c31\u4e0d\u4e00\u4e00\u4ecb\u7ecd\u4e86\u3002<\/p>\n\n\n\n<p>\u6700\u540e\uff0c\u53f3\u952eSetup\u9879\u76ee\uff0c\u9009\u62e9\u5c5e\u6027\uff0c\u70b9\u51fbPrerequisites\u2026\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u7a0b\u5e8f\u5fc5\u5907\u6761\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp8.png\" alt=\"img\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp9.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u786e\u5b9a\u5b8c\u6210\u540e\uff0c\u6574\u4e2a\u6253\u5305\u7a0b\u5e8f\u7684\u914d\u7f6e\u5c31\u5b8c\u6210\u4e86\uff0c\u53f3\u952eSetup\u9879\u76ee\uff0c\u9009\u62e9\u91cd\u65b0\u751f\u6210\u3002<\/p>\n\n\n\n<p>\u7b49\u5f85\u751f\u6210\u6210\u529f\u540e\uff0c\u6253\u5f00\u6587\u4ef6\u6240\u5728\u8def\u5f84\uff0c\u627e\u5230Debug\uff0c\u751f\u6210\u4e24\u4e2a\u6587\u4ef6\uff0c\u4e00\u4e2amsi\u540e\u7f00\uff0c\u4e00\u4e2aexe\u540e\u7f00\uff0c\u4e24\u8005\u7684\u533a\u522b\u5c31\u662fmsi\u6587\u4ef6\u5b89\u88c5\u540e\u81ea\u52a8\u5b89\u88c5\u7a0b\u5e8f\u5fc5\u5907\u7684.net\u6846\u67b6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%A1%B9%E7%9B%AE%E4%BF%A1%E6%81%AF\"><\/span>\u9879\u76ee\u4fe1\u606f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u70b9\u51fb \u3010\u9879\u76ee\u540d\u79f0\u3011-&gt;\u70b9\u51fb\u3010\u5c5e\u6027\u3011<\/p>\n\n\n\n<p>\u91cd\u8981\u5c5e\u6027<br>1.Author\u548cManufacturer\uff0c\u5206\u522b\u662f\u4f5c\u8005\u548c\u5236\u9020\u5546\u7684\u610f\u601d\uff0c\u4e00\u822c\u90fd\u5199\u516c\u53f8\u540d\u3002<br>2.ProductName\uff0c\u8f6f\u4ef6\u540d\u3002\u9ed8\u8ba4\u662f\u9879\u76ee\u540d\uff0c\u5f71\u54cd\u5230\u5b89\u88c5\u754c\u9762\u548c\u5b89\u88c5\u76ee\u5f55\u3002\u52a1\u5fc5\u6539\u6389\u3002<br>3.Version\uff0c\u7248\u672c\u53f7\uff0c\u5f71\u54cd\u5b89\u88c5\u6d41\u7a0b\uff0c\u540e\u9762\u4f1a\u8bf4\u3002<br>3.TargetPlatform\uff0c\u610f\u601d\u5f88\u660e\u663e\u3002\u8868\u73b0\u5c42\u9762\u4e0a\u5c31\u662f\uff0c\u51b3\u5b9a\u4f60\u7684\u5b89\u88c5\u76ee\u5f55\u662f\u5728Program Files\u8fd8\u662fProgram Files (x86)\uff0c\u6839\u636e\u9879\u76ee\u51b3\u5b9a\u3002<br>4.RemovePreviousVersion\uff0c\u662f\u5426\u79fb\u9664\u4e4b\u524d\u7684\u7248\u672c\u3002\u52a1\u5fc5\u6539\u4e3aTrue\uff0c\u4e0d\u7136\u4f60\u66f4\u65b0\u51e0\u6b21\u8f6f\u4ef6\u5c31\u4f1a\u53d1\u73b0\uff0c\u7535\u8111\u91cc\u591a\u4e2a\u7248\u672c\u90fd\u5728\u5b89\u88c5\u7740\u3002<\/p>\n\n\n\n<p>2.\u4e0d\u91cd\u8981\u7684\u5c5e\u6027\uff1a<br>1.InstallAllUsers\uff0c\u7528\u6237\u6743\u9650\u9ed8\u8ba4\u503c\u3002\u8fd9\u4e2a\u5728\u5b89\u88c5\u754c\u9762\u8fd8\u53ef\u4ee5\u91cd\u65b0\u8bbe\u7f6e\u3002<br>2.ManufacturerUrl\uff0c\u516c\u53f8\u5b98\u7f51\u3002<br>3.SupportUrl\u3001SupportPhone\uff0c\u6280\u672f\u652f\u6301\u7684\u7f51\u5740\u548c\u7535\u8bdd\u3002<br>4.Description\uff0c\u8f6f\u4ef6\u63cf\u8ff0\u3002<br>5.Title\uff0c\u65e0\u7528\u3002\u4e00\u5f00\u59cb\u6211\u4ee5\u4e3a\u5b83\u662f\u5b89\u88c5\u754c\u9762\u7684\u6807\u9898\uff0c\u4f46\u5176\u5b9e\u5e76\u4e0d\u662f\uff0c\u8fd9\u4e2a\u503c\u9ed8\u8ba4\u548c\u9879\u76ee\u540d\u4e00\u81f4\uff0c\u4f46\u4f60\u4fee\u6539\u4e4b\u540e\uff0c\u5728\u54ea\u91cc\u4e5f\u90fd\u770b\u4e0d\u5230\u3002\u6240\u4ee5\u65e0\u7528\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp10.png\" alt=\"img\"\/><\/figure>\n\n\n\n<p>\u603b\u7ed3\u4e00\u4e0b\uff1a<br>1.\u9996\u5148\u7ec4\u4ef6\u5f0f\u5f00\u53d1\u9700\u8981\u6253\u5305\u6240\u6709Bin\u4e0b\u9762\u7684\u6587\u4ef6<br>2.\u7535\u8111\u8981\u5b89\u88c5\u5fae\u8f6f\u7684VC++ rutime 2015,\u4ee5\u53canet framwork 4.0<br>3.\u5982\u679c\u8fd8\u4e0d\u80fd\u8fd0\u884c\uff0c\u5c31\u7528depend.exe\u67e5\u770b\u4f9d\u8d56<\/p>\n\n\n\n<p>\u53c2\u8003\u6587\u732e\uff1a<a href=\"https:\/\/www.cnblogs.com\/adingfirstlove\/\">\u6d41\u6d6a\u963f\u4e01<\/a>\uff0c\u7279\u522b\u611f\u8c22\u9a6c\u9ece\u8389\u8001\u5e08\u7684\u8010\u5fc3\u6307\u5bfc\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%9A%90%E8%97%8F%E5%AE%9A%E4%B9%89%E7%9A%84button%E7%A9%BA%E9%97%B4\"><\/span>\u9690\u85cf\u5b9a\u4e49\u7684button\u7a7a\u95f4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp11.png\" alt=\"img\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MessageBoxShow%E6%9C%89%E5%A4%9A%E8%A1%8C%E6%96%87%E6%9C%AC\"><\/span>MessageBox.Show()\u6709\u591a\u884c\u6587\u672c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6587\u672c\u6846\u4e2d\u7528\\r\\n\u6362\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp12.png\" alt=\"img\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"C%E7%BC%96%E7%A8%8B%E4%B8%AD%E5%A6%82%E4%BD%95%E6%B7%BB%E5%8A%A0%E8%B5%84%E6%BA%90\"><\/span>C#\u7f16\u7a0b\u4e2d\u5982\u4f55\u6dfb\u52a0\u8d44\u6e90<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u627e\u5230\u9879\u76ee\u4e0b\u7684Properties<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp13.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6253\u5f00\u5982\u4e0b\u754c\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp14.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6309\u7167\u5982\u4e0a\u6b65\u9aa4\u5c31\u53ef\u4ee5\u6279\u91cf\u52a0\u8f7d\u8d44\u6e90\u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u6587\u732e\uff1a<a href=\"https:\/\/blog.csdn.net\/dandanwen\">\u5f64\u599e<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%9A%E8%A1%8C%E4%B8%8E%E5%8F%96%E6%B6%88%E5%A4%9A%E8%A1%8C%E6%B3%A8%E9%87%8A%E5%BF%AB%E6%8D%B7%E9%94%AE\"><\/span>\u591a\u884c\u4e0e\u53d6\u6d88\u591a\u884c\u6ce8\u91ca\u5feb\u6377\u952e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6ce8\u91ca\uff1a \u5148CTRL+K\uff0c\u7136\u540eCTRL+C<\/p>\n\n\n\n<p>\u53d6\u6d88\u6ce8\u91ca\uff1a \u5148CTRL+K\uff0c\u7136\u540eCTRL+U<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AA%97%E4%BD%93%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E4%B9%8B%E6%96%B0%E5%BB%BA%E7%AA%97%E4%BD%93%E5%92%8C%E6%B7%BB%E5%8A%A0%E7%AA%97%E4%BD%93%E4%BA%8B%E4%BB%B6\"><\/span>\u7a97\u4f53\u5e94\u7528\u7a0b\u5e8f\u4e4b\u65b0\u5efa\u7a97\u4f53\u548c\u6dfb\u52a0\u7a97\u4f53\u4e8b\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>1.\u65b0\u5efa\u7a97\u4f53\u5e76\u6253\u5f00\u7a97\u4f53<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp15.png\" alt=\"\"\/><\/figure>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>\u5728\u9879\u76ee\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u5efa\u9879\uff0c\u9009\u62e9Windows\u7a97\u4f53\uff0c<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp16.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u53c2\u8003\u6587\u732e\uff1a<a href=\"https:\/\/blog.csdn.net\/weixin_46096032\">Thray.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"C%E6%98%BE%E7%A4%BA%E8%A1%8C%E5%8F%B7\"><\/span>C#\u663e\u793a\u884c\u53f7<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp17.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BB%8E%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE%E4%B8%AD%E5%A4%8D%E5%88%B6%E5%88%B0%E5%8F%A6%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE\"><\/span>\u4ece\u4e00\u4e2a\u9879\u76ee\u4e2d\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u9879\u76ee<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e00\u4e2a\u7a97\u4f53\u6709\u4e09\u4e2a\u6587\u4ef6\uff0c\u5168\u90e8\u62f7\u8d1d\u5230\u65b0\u7684\u9879\u76ee\u4e2d<\/p>\n\n\n\n<p>\u5728\u65b0\u7684\u9879\u76ee\u4e2d\u70b9\u51fb\u663e\u793a\u6240\u6709\u6587\u4ef6\uff0c\u7136\u540e\u53f3\u51fb\u5bfc\u5165\u7684\u6587\u4ef6\uff0c\u70b9\u51fb\u5305\u62ec\u5728\u9879\u76ee\u4e2d\uff0c\u4f1a\u81ea\u52a8\u4fee\u6539\u989c\u8272\uff08\u6b64\u65f6\u8fd8\u6ca1\u6709\u88ab\u8bc6\u522b\u4e3a\u7a97\u4f53\uff09<\/p>\n\n\n\n<p>\u91cd\u542f\u8fd9\u4e2a\u9879\u76ee\uff0c\u4e09\u4e2a\u6587\u4ef6\u5df2\u7ecf\u88ab\u8bc6\u522b\u51fa\u6765\u4e86<\/p>\n\n\n\n<p>\u53c2\u8003\u6587\u732e\uff1a<a href=\"https:\/\/blog.csdn.net\/acetaohai123123\">gary_tao<\/a> <a href=\"https:\/\/blog.csdn.net\/qq_41421381\">\u505a\u4e2a\u6709\u7528\u7684\u4eba<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"File_targeting_%E2%80%98AMD64_is_not_compatible_with_the_projects_target_platform_%E2%80%98x86\"><\/span>File targeting \u2018AMD64\u2019 is not compatible with the project\u2019s target platform \u2018x86\u2019<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6309\u952eF4\uff0c\u5728\u5f39\u51fa\u7684\u5de5\u7a0b\u5c5e\u6027\u680f\u4e2d\u5c06TargetPlatform\u9009\u9879\u7531x86\u6539\u4e3ax64\u5373\u53ef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/cpp18.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u53c2\u8003\u6587\u732e\uff1a<a href=\"https:\/\/blog.csdn.net\/weixin_33860553\/article\/details\/86261345\">weixin_33860553<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%8D%E6%98%BE%E7%A4%BA%E8%BE%93%E5%87%BA%E7%AA%97%E5%8F%A3\"><\/span>\u4e0d\u663e\u793a\u8f93\u51fa\u7a97\u53e3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5de5\u5177-\u9009\u9879-\u9879\u76ee\u4e0e\u89e3\u51b3\u65b9\u6848-\u5e38\u89c4-\u53d6\u6d88\u201c\u5728\u751f\u6210\u5f00\u59cb\u65f6\u663e\u793a\u8f93\u51fa\u7a97\u53e3\u201d\u7684\u52fe\u9009<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528Visual Studio &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13],"class_list":["post-191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-13"],"_links":{"self":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":1,"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions\/192"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/media\/392"}],"wp:attachment":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}