{"id":671,"date":"2018-01-06T11:02:16","date_gmt":"2018-01-06T03:02:16","guid":{"rendered":"https:\/\/www.datarelab.com\/blog\/?p=671"},"modified":"2018-01-06T11:02:16","modified_gmt":"2018-01-06T03:02:16","slug":"visual-studio-2015-windows-xp-v140_xp-%e7%bc%96%e8%af%91%e5%b7%a5%e5%85%b7-ucrtbased-dll%e7%bc%ba%e5%a4%b1","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/My_Log\/671.html","title":{"rendered":"Visual Studio 2015 - Windows XP (v140_xp) \u7f16\u8bd1\u5de5\u5177 ucrtbased.dll\u7f3a\u5931"},"content":{"rendered":"<p>\u5148\u5199\u7ed3\u8bba\uff0c\u6700\u597d\u4e0d\u8981\u4f7f\u7528VS2015-WinXP\u7f16\u8bd1\u5de5\u5177\u6765\u7f16\u8bd1VC++\u7a0b\u5e8f\uff0c\u56e0\u4e3a\u4f60\u6700\u7ec8\u4f1a\u53d1\u73b0\uff0c\u7f16\u8bd1\u51fa\u6765\u7684\u7a0b\u5e8f\u5982\u679c\u662f\u52a8\u6001\u94fe\u63a5\u5230\u8fd0\u884c\u5e93\u7684\u8bdd\uff0c\u5373\u4fbf\u4f60\u5df2\u7ecf\u62f7\u8d1d\u4e86\u6240\u6709\u9700\u8981\u7684\u8fd0\u884c\u5e93dll\uff0c\u5f53\u5728xp\u7cfb\u7edf\u4e0a\u8fd0\u884c\u65f6\uff0c\u8fd8\u662f\u4f1a\u63d0\u793a\u7f3a\u5c11ucrtbased.dll(Debug\u7248)\u6216\u8005ucrtbase.dll(Release\u7248)\u3002<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\u6709\u4e24\u4e2a:<\/p>\n<p><span style=\"color: #ff0000;\">1.\u9759\u6001\u94fe\u63a5\u5230\u8fd0\u884c\u65f6\u5e93 \u00a0(MT \u6216\u8005 MTd) \u00a0 \u00a0\u5982\u679c\u4f7f\u7528\u4e86MFC\uff0c\u8fd8\u8981\u9759\u6001\u94fe\u63a5\u5230MFC<\/span><\/p>\n<p><span style=\"color: #ff0000;\">2.\u5b89\u88c5VS2013 \u00a0\u76f4\u63a5\u7528VS2013-WinXP\u6765\u7f16\u8bd1\uff0c\u7f16\u8bd1\u51fa\u7684\u7a0b\u5e8f\u53ea\u8981\u9644\u5e26\u4e0a\u8fd0\u884c\u5e93dll\u5373\u53ef\u76f4\u63a5\u5728XP\u4e0a\u8fd0\u884c<\/span><\/p>\n<p>\u4e0b\u9762\u8bb0\u5f55\u4e00\u4e0b\u81ea\u5df1\u4f7f\u7528Visual Studio 2015 - Windows XP (v140_xp) \u78b0\u5230\u7684\u5751\uff1a<\/p>\n<p>\u5f00\u59cb\u65f6\uff0c\u4f7f\u7528\u7684VS2015 SP1\uff0cplatform toolset\u9009\u62e9\u7684Visual Studio 2015 - Windows XP (v140_xp) \uff0c\u7f16\u8bd1\u51fa\u6765debug\u7248\u7684\u7a0b\u5e8f\uff0c\u662f\u52a8\u6001\u8fde\u63a5\u5230MFC\u548cCRT\u7684\uff0c\u6211\u628a\u6240\u6709\u9700\u8981\u7684vc runtime dlls\u90fd\u62f7\u8d1d\u5230\u4e86xp\u865a\u62df\u673a\u91cc\u9762\uff0c\u4f46\u662f\u53d1\u73b0\u7a0b\u5e8f\u65e0\u6cd5\u8fd0\u884c\uff0c\u5f39\u51fa\u65e0\u6cd5\u627e\u5230ucrtbased.dll\uff0c\u4e8e\u662fgoogle\u5f00\u59cb\u627e\u89e3\u51b3\u529e\u6cd5\uff0c\u5fae\u8f6f\u7684\u5b98\u65b9\u8bf4\u6cd5\u662f VS2015\u4fee\u6539\u4e86CRT runtime\uff0c\u589e\u52a0\u4e86ucrtbase.dll\u8fd9\u4e48\u4e2a\u7ec4\u4ef6\uff0c\u8fd9\u4e2a\u7ec4\u4ef6\u5fc5\u987b\u5f97\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5\u4e00\u4e2a\u8865\u4e01\u624d\u80fd\u6709\uff0c\u76f4\u63a5\u628a\u6587\u4ef6\u62f7\u8d1d\u8fc7\u53bb\u662f\u4e0d\u884c\u7684\u3002\u4f46\u662fXP\u6ca1\u6709\u8fd9\u4e2a\u8865\u4e01\uff0c\u6700\u4f4e\u662fWIN7\u3002<\/p>\n<p>\u7136\u540e\u4eceVS2015SP2\u5f00\u59cb\uff0c\u5fae\u8f6f\u4fee\u590d\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0cXP\u4e5f\u53ef\u4ee5\u5b89\u88c5ucrtbase.dll\u8fd9\u4e2a\u7ec4\u4ef6\u4e86\uff0c\u65b9\u6cd5\u5c31\u662f\u5fc5\u987b\u5b89\u88c5VS2015\u7684vcredist_x86.exe\uff0c\u8fd9\u4e2a\u6587\u4ef6\u7684\u8def\u5f84\u5728D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist\\1033\u4e0b\u9762\uff0c\u4e8e\u662f\u6211\u5f00\u59cb\u66f4\u65b0\u6211\u7684VS2015\uff0c\u4e0b\u8f7d\u4e86SP3\u7684\u66f4\u65b0\u5305(<a href=\"http:\/\/download.microsoft.com\/download\/c\/2\/6\/c26892d8-6a5d-4871-9d46-629f4d430146\/vs2015.3.vsu.iso\" target=\"_blank\" rel=\"noopener\">\u4e0b\u8f7d\u94fe\u63a5<\/a>)\uff0c\u66f4\u65b0\u5b8c\u6bd5\u82b1\u4e86\u5c06\u8fd14\u4e2a\u5c0f\u65f6\u3002<\/p>\n<p>\u7136\u540e\u6211\u7528VS2015SP3\u91cd\u65b0\u7f16\u8bd1\u4e86release\u7248\u7684\u7a0b\u5e8f\uff0c\u5e76\u4e14\u5728\u6211xp\u7684\u865a\u62df\u673a\u91cc\u9762\u5b89\u88c5\u4e86SP3\u7248\u672c\u7684vcredist_x86.exe\uff0c\u7a0b\u5e8f\u53ef\u4ee5\u8fd0\u884c\u4e86\u3002<\/p>\n<p>\u4f46\u662f\u8fd8\u662f\u6709\u5982\u4e0b\u95ee\u9898\uff1a<\/p>\n<p><span style=\"color: #ff0000;\">1.\u7f16\u8bd1\u51fa\u6765\u7684debug\u7248\u7684\u7a0b\u5e8f\u4ecd\u7136\u65e0\u6cd5\u5728xp\u4e0a\u8fd0\u884c\uff0c\u56e0\u4e3a\u7f3a\u5c11ucrtbased.dll\uff0c\u6211\u4e5f\u6ca1\u6709\u627e\u5230debug\u7248\u7684vcredist_x86.exe<\/span><\/p>\n<p><span style=\"color: #ff0000;\">2.\u6211\u7684\u7a0b\u5e8f\u6ca1\u6709\u5b89\u88c5\u5305\uff0c\u6211\u4e0d\u60f3\u7528\u6237\u5728\u4f7f\u7528\u7684\u65f6\u5019\u8fd8\u5fc5\u987b\u5f97\u5b89\u88c5\u4e00\u4e2avcredist_x86.exe\uff0c\u90a3\u8ddf\u4f7f\u7528C#\u7a0b\u5e8f\u4e4b\u524d\u5fc5\u987b\u5b89\u88c5\u4e00\u4e2a.net framework\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/span><\/p>\n<p>\u6700\u540e\u6211\u51b3\u5b9a\u4f7f\u7528VS2013-Windows XP \u6765\u7f16\u8bd1\u6211\u7684\u7a0b\u5e8f\uff0c\u56e0\u4e3a\u6211\u7535\u8111\u4e0a\u4e4b\u524d\u88c5\u6709VS2013\uff0c\u540e\u6765\u88c5\u7684VS2015\uff0c\u6240\u4ee5\u5de5\u7a0b-\u5c5e\u6027\u91cc\u9762\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9VS2013\u7684platform toolset\u3002\u8fd9\u6837\u7684\u8bdd\u5c31\u53ef\u4ee5\u4f7f\u7528VS2015\u7684IDE\u6765\u5199\u4ee3\u7801\uff0c\u4f7f\u7528VS2013\u7684\u7f16\u8bd1\u5668\u6765\u7f16\u8bd1\u751f\u6210\u7a0b\u5e8f\u3002<\/p>\n<p>\u800c\u4e14\u6211\u53ef\u4ee5\u786e\u5b9a\u7684\u8bf4\uff0cVS2013-Windows XP\u7f16\u8bd1\u51fa\u6765\u7684\u65e0\u8bba\u662fdebug\u7248\u8fd8\u662frelease\u7248\uff0c32\u4f4d\u6216\u800564\u4f4d\uff0c\u53ea\u9700\u5c06\u5bf9\u5e94\u7684VC Runtime dll\u62f7\u8d1d\u5230\u7a0b\u5e8f\u76ee\u5f55\u4e0b\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u5728XP\u4e0a\u8fd0\u884c\uff0c\u65b9\u4fbf\u8c03\u8bd5\u548c\u4f7f\u7528\u3002<\/p>\n<p>\u81f3\u4e8e\u8bf4\u5982\u4f55\u4e3aVS2015\u5b89\u88c5VS2013\u7684\u5e73\u53f0\u5de5\u5177\u96c6(platform toolset)\uff0c\u8001\u8001\u5b9e\u5b9e\u518d\u88c5\u4e00\u4e2aVS2013\u5427\uff0c\u88c5\u5b8c\u4e4b\u540e\uff0cVS2015\u91cc\u9762\u4f1a\u81ea\u52a8\u8bc6\u522b\u51fa\u6765\u7684\u3002\u7b80\u5355\u7684\u529e\u6cd5\u6211\u7528google\u4e5f\u6ca1\u6709\u627e\u5230\uff0c\u5982\u679c\u8c01\u627e\u5230\u4e86\uff0c\u8bc4\u8bba\u91cc\u9762\u7559\u8a00\u4e0b\uff0c\u591a\u8c22~\u3002\u6bd5\u7adf\u518d\u88c5\u4e00\u4e2aVS2013\u662f\u8981\u82b1\u5f88\u591a\u65f6\u95f4\u548c\u7cbe\u529b\u7684~~<\/p>\n<p>&nbsp;<\/p>\n<p>\u8f6c\u8f7d\uff1ahttp:\/\/blog.csdn.net\/atceedsun\/article\/details\/53583824<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u5199\u7ed3\u8bba\uff0c\u6700\u597d\u4e0d\u8981\u4f7f\u7528VS2015-WinXP\u7f16\u8bd1\u5de5\u5177\u6765\u7f16\u8bd1VC++\u7a0b\u5e8f\uff0c\u56e0\u4e3a\u4f60\u6700\u7ec8\u4f1a\u53d1\u73b0\uff0c\u7f16\u8bd1\u51fa\u6765\u7684\u7a0b\u5e8f\u5982\u679c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-671","post","type-post","status-publish","format-standard","hentry","category-My_Log"],"views":3801,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}