{"id":24690,"date":"2026-05-20T00:10:51","date_gmt":"2026-05-19T16:10:51","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=24690"},"modified":"2026-05-20T00:45:16","modified_gmt":"2026-05-19T16:45:16","slug":"%e5%9c%a8-visual-studio-2026-%e4%b8%ad%e6%bf%80%e6%b4%bb-vcpkg-%e5%ae%9e%e7%8e%b0%e8%87%aa%e5%8a%a8%e5%ae%89%e8%a3%85%e4%be%9d%e8%b5%96","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=24690","title":{"rendered":"\u5728 Visual Studio 2026 \u4e2d\u6fc0\u6d3b vcpkg \u5b9e\u73b0\u81ea\u52a8\u5b89\u88c5\u4f9d\u8d56"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\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-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=24690\/#%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87\" >\u524d\u671f\u51c6\u5907<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.iyatt.com\/?p=24690\/#vcpkg_%E6%B8%85%E5%8D%95\" >vcpkg \u6e05\u5355<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.iyatt.com\/?p=24690\/#%E4%BB%A3%E7%90%86\" >\u4ee3\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.iyatt.com\/?p=24690\/#%E6%B5%8B%E8%AF%95\" >\u6d4b\u8bd5<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87\"><\/span>\u524d\u671f\u51c6\u5907<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u786e\u4fdd\u5728 <strong>Visual Studio Installer<\/strong> \u4e2d\u5df2\u7ecf\u5b89\u88c5<strong>vcpkg \u5305\u7ba1\u7406\u5668<\/strong><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779201355548.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1291px; --smush-placeholder-aspect-ratio: 1291\/721;\" \/><\/p>\n<p>\u5f00\u59cb\u83dc\u5355\u641c\u7d22\u6253\u5f00<strong>Developer Command Prompt<\/strong><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779201434836.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 834px; --smush-placeholder-aspect-ratio: 834\/567;\" \/><\/p>\n<p>\u6267\u884c<\/p>\n<pre><code class=\"language-bash\">vcpkg integrate install<\/code><\/pre>\n<p>\u663e\u793a\uff1a<br \/>\n<strong>All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.<\/strong><br \/>\n\u8868\u793a vcpkg \u5df2\u7ecf\u878d\u5165 VS \u73af\u5883\u4e2d\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779201478419.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1121px; --smush-placeholder-aspect-ratio: 1121\/632;\" \/><\/p>\n<h1><span class=\"ez-toc-section\" id=\"vcpkg_%E6%B8%85%E5%8D%95\"><\/span>vcpkg \u6e05\u5355<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u6211\u8fd9\u91cc\u6709\u4e00\u4e2a C++ \u9879\u76ee\uff0c\u6253\u5f00\u5b83\u7684\u5c5e\u6027\u53ef\u4ee5\u770b\u5230\u6709 <strong>vcpkg<\/strong> \u9879\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779205251024.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 798px; --smush-placeholder-aspect-ratio: 798\/551;\" \/><\/p>\n<p>\ud83d\udcca Visual Studio vcpkg \u5c5e\u6027\u9875\u8bbe\u7f6e\u9879\u4e00\u89c8\u8868<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u5206\u7ec4<\/th>\n<th style=\"text-align: left;\">\u8bbe\u7f6e\u9879\u540d\u79f0 (Property)<\/th>\n<th style=\"text-align: left;\">\u5e38\u89c1\u63a8\u8350\u503c<\/th>\n<th style=\"text-align: left;\">\u6838\u5fc3\u529f\u80fd\u4e0e\u5e95\u5c42\u539f\u7406\u7b80\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>General<\/strong><br \/><em>(\u901a\u7528)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>Use Vcpkg<\/strong><br \/><em>(\u4f7f\u7528 Vcpkg)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u662f<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u603b\u5f00\u5173<\/strong>\uff1a\u63a7\u5236\u662f\u5426\u5c06 vcpkg \u7684\u5934\u6587\u4ef6\u548c\u5e93\u8def\u5f84\u81ea\u52a8\u6ce8\u5165\u5f53\u524d\u9879\u76ee\u3002\u82e5\u8bbe\u4e3a\u201c\u5426\u201d\uff0c\u6574\u4e2a\u7ec4\u4ef6\u5931\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Use Vcpkg Manifest<\/strong><br \/><em>(\u4f7f\u7528 Vcpkg \u6e05\u5355)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u662f<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u6a21\u5f0f\u5207\u6362<\/strong>\uff1a\u51b3\u5b9a\u662f\u5426\u6fc0\u6d3b\u6e05\u5355\u6a21\u5f0f\u3002\u8bbe\u4e3a\u201c\u662f\u201d\u65f6\uff0cVS \u4f1a\u5f3a\u5236\u8bfb\u53d6\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 <code>vcpkg.json<\/code> \u5e76\u4ea4\u51fa\u4f9d\u8d56\u63a7\u5236\u6743\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Install Vcpkg Dependencies<\/strong><br \/><em>(\u5b89\u88c5 Vcpkg \u4f9d\u8d56)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u662f<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u81ea\u52a8\u5316\u5f00\u5173<\/strong>\uff1a\u70b9\u51fb\u201c\u751f\u6210\u201d\u65f6\uff0cVS \u662f\u5426\u5728\u540e\u53f0\u81ea\u52a8\u8fd0\u884c <code>vcpkg install<\/code> \u53bb\u4e0b\u8f7d\u5e76\u7f16\u8bd1\u4f60\u7f3a\u5931\u7684\u7b2c\u4e09\u65b9\u5e93\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Use AutoLink<\/strong><br \/><em>(\u4f7f\u7528\u81ea\u52a8\u94fe\u63a5)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u662f<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u89e3\u653e\u53cc\u624b<\/strong>\uff1aMSVC \u7279\u6027\u3002\u5f00\u542f\u540e\u4f60\u53ea\u9700\u8981 <code>#include<\/code> \u5934\u6587\u4ef6\uff0c\u5e95\u5c42\u811a\u672c\u4f1a\u81ea\u52a8\u5e2e\u4f60\u5173\u8054\u5bf9\u5e94\u7684 <code>.lib<\/code> \u6587\u4ef6\uff0c<strong>\u65e0\u9700\u624b\u52a8\u5728\u94fe\u63a5\u5668\u4e2d\u914d\u7f6e\u5e93\u540d\u5b57<\/strong>\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>App-locally deploy DLLs<\/strong><br \/><em>(\u5e94\u7528\u7a0b\u5e8f\u672c\u5730\u90e8\u7f72 DLL)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u662f<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u52a8\u6001\u5e93\u590d\u5236<\/strong>\uff1a\u82e5\u4f9d\u8d56\u9879\u542b\u6709 <code>.dll<\/code> \u52a8\u6001\u5e93\uff0c\u7f16\u8bd1\u6210\u529f\u540e\u81ea\u52a8\u5c06\u5176\u590d\u5236\u5230\u4f60\u7684\u8f93\u51fa\u76ee\u5f55\uff08\u5982\u5305\u542b <code>.exe<\/code> \u6216 <code>.arx<\/code> \u7684\u6587\u4ef6\u5939\uff09\uff0c\u9632\u6b62\u8fd0\u884c\u65f6\u62a5\u9519\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Use built-in app-local&#8230;<\/strong><br \/><em>(\u4f7f\u7528\u5185\u7f6e\u672c\u5730\u90e8\u7f72)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u5426<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u673a\u5236\u5fae\u8c03<\/strong>\uff1a\u6307\u5b9a\u4f7f\u7528 vcpkg \u4e13\u5c5e\u7684\u9ad8\u6548 MSBuild \u811a\u672c\u53bb\u6267\u884c\u52a8\u6001\u5e93\u590d\u5236\uff08\u63a8\u8350\u8bbe\u4e3a\u201c\u5426\u201d\uff09\uff0c\u8fd8\u662f\u4f7f\u7528 VS \u9ed8\u8ba4\u7684\u901a\u7528\u90e8\u7f72\u673a\u5236\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Installed Directory<\/strong><br \/><em>(\u5df2\u5b89\u88c5\u76ee\u5f55)<\/em><\/td>\n<td style=\"text-align: left;\"><em>\u7559\u7a7a<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u5b58\u50a8\u91cd\u5b9a\u5411<\/strong>\uff1a\u81ea\u5b9a\u4e49\u672c\u5730\u7f16\u8bd1\u6210\u679c\u7684\u5b58\u653e\u8def\u5f84\u3002\u9ed8\u8ba4\u7559\u7a7a\u5373\u53ef\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u751f\u6210 <code>vcpkg_installed<\/code> \u6587\u4ef6\u5939\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Additional Options<\/strong><br \/><em>(\u9644\u52a0\u9009\u9879)<\/em><\/td>\n<td style=\"text-align: left;\"><em>\u7559\u7a7a<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u9ad8\u7ea7\u8c03\u6559<\/strong>\uff1a\u5411\u540e\u53f0\u7684 <code>vcpkg install<\/code> \u547d\u4ee4\u884c\u4f20\u9012\u989d\u5916\u7684\u81ea\u5b9a\u4e49\u5b9e\u9a8c\u6027\u53c2\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Target &amp;<br \/>Configuration<\/strong><br \/><em>(\u76ee\u6807\u4e0e\u914d\u7f6e)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>Use Static Libraries<\/strong><br \/><em>(\u4f7f\u7528\u9759\u6001\u5e93)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u662f<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u5f62\u6001\u51b3\u5b9a<\/strong>\uff1a\u63a7\u5236 vcpkg \u4e3a\u4f60\u7f16\u8bd1\/\u63d0\u4f9b\u54ea\u79cd\u5e93\u3002<strong>\u201c\u662f\u201d<\/strong>\u4ee3\u8868\u63d0\u4f9b <code>.lib<\/code> \u9759\u6001\u5e93\uff08\u4ee3\u7801\u76f4\u63a5\u541e\u8fdb\u4f60\u7684\u4e8c\u8fdb\u5236\u4e2d\uff09\uff1b<strong>\u201c\u5426\u201d<\/strong>\u4ee3\u8868\u63d0\u4f9b\u52a8\u6001\u5e93\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Use Dynamic CRT<\/strong><br \/><em>(\u4f7f\u7528\u52a8\u6001 C \u8fd0\u884c\u65f6\u5e93)<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u662f<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>CRT \u63e1\u624b<\/strong>\uff1a\u63a7\u5236\u7b2c\u4e09\u65b9\u5e93\u94fe\u63a5\u5fae\u8f6f C \u8fd0\u884c\u65f6\u7684\u6a21\u5f0f\u3002<strong>\u201c\u662f\u201d<\/strong>\u5bf9\u5e94\u7f16\u8bd1\u5668\u4e2d\u7684 <strong>MD\/MDd<\/strong> \u9009\u9879\uff08\u4f60\u7684\u73af\u5883\u5f53\u524d\u72b6\u6001\uff09\uff1b<strong>\u201c\u5426\u201d<\/strong>\u5bf9\u5e94 <strong>MT\/MTd<\/strong>\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Triplet<\/strong><br \/><em>(\u4e09\u5143\u7ec4\u7c7b\u578b)<\/em><\/td>\n<td style=\"text-align: left;\"><code>x64-windows-static-md<\/code><\/td>\n<td style=\"text-align: left;\"><strong>\u7269\u7406\u7075\u9b42<\/strong>\uff1a\u660e\u786e\u5b9a\u4e49\u4f60\u7684\u76ee\u6807\u5e73\u53f0\u67b6\u6784\u7279\u5f81\u3002\u7531\u4e0a\u8ff0\u7684\u201c\u67b6\u6784(x64) + \u9759\u6001\u5e93(static) + \u52a8\u6001\u8fd0\u884c\u65f6(md)\u201d\u7ec4\u5408\u7531 VS \u81ea\u52a8\u63a8\u5bfc\u586b\u5145\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Host Triplet<\/strong><br \/><em>(\u4e3b\u673a\u4e09\u5143\u7ec4\u7c7b\u578b)<\/em><\/td>\n<td style=\"text-align: left;\"><em>\u7559\u7a7a<\/em><\/td>\n<td style=\"text-align: left;\"><strong>\u4ea4\u53c9\u7f16\u8bd1\u914d\u7f6e<\/strong>\uff1a\u8fd0\u884c\u7f16\u8bd1\u4efb\u52a1\u7684\u5bbf\u4e3b\u673a\u67b6\u6784\u3002\u9ed8\u8ba4\u7559\u7a7a\u5373\u53ef\uff0c\u4f1a\u81ea\u52a8\u91c7\u7528\u4f60\u5f53\u524d Windows \u7cfb\u7edf\u7684 64 \u4f4d\u73af\u5883\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\"><strong>Vcpkg Configuration<\/strong><br \/><em>(Vcpkg \u914d\u7f6e)<\/em><\/td>\n<td style=\"text-align: left;\"><code>&lt;\u4e0d\u540c\u9009\u9879&gt;<\/code><\/td>\n<td style=\"text-align: left;\"><strong>\u73af\u5883\u6620\u5c04<\/strong>\uff1a\u81ea\u52a8\u5c06\u9879\u76ee\u7684 <code>Debug\/Release<\/code> \u6784\u5efa\u914d\u7f6e\u6620\u5c04\u5230 vcpkg \u5bf9\u5e94\u7684\u8c03\u8bd5\u7248\u548c\u53d1\u884c\u7248\u7b2c\u4e09\u65b9\u5e93\u4e0a\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5728\u9879\u76ee\u4e0b\u521b\u5efa <strong>vcpkg.json<\/strong> \u6587\u4ef6\u3002<br \/>\nname \u6307\u5b9a\u9879\u76ee\u540d\u79f0\uff0c\u4e0d\u5141\u8bb8\u5927\u5199\u5b57\u6bcd\uff0c\u5141\u8bb8\u5c0f\u5199\u3001\u6570\u5b57\u3001\u8fde\u5b57\u7b26\uff0c\u5f00\u5934\u548c\u7ed3\u5c3e\u4e0d\u5141\u8bb8\u662f\u8fde\u5b57\u7b26\u3002<br \/>\nversion-string \u6307\u5b9a\u9879\u76ee\u7248\u672c\u3002<br \/>\nbuiltin-baseline \u6307\u5b9a vcpkg \u63d0\u4ea4\u7684\u54c8\u5e0c\u503c\uff08\u76f8\u5f53\u4e8e\u7248\u672c\u53f7\uff09\uff0cvcpkg \u9879\u76ee\u5f00\u6e90\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/microsoft\/vcpkg\">https:\/\/github.com\/microsoft\/vcpkg<\/a> \uff0c\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u5f53\u524d\u6700\u65b0\u4e00\u6b21 Release \u53d1\u5e03\u65f6\u7684 Commit \u54c8\u5e0c\u503c\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779206006451.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1072px; --smush-placeholder-aspect-ratio: 1072\/505;\" \/><br \/>\n\u540e\u9762\u5c31\u662f\u6307\u5b9a\u8981\u901a\u8fc7 vcpkg \u5b89\u88c5\u7684\u4f9d\u8d56\u5305\u548c\u5f3a\u5236\u7248\u672c\uff0c\u53ef\u4ee5\u641c\u7d22\u5305\u540d\u548c\u770b\u5230\u5386\u53f2\u7248\u672c\uff1a<a href=\"https:\/\/vcpkg.io\/en\/packages\">https:\/\/vcpkg.io\/en\/packages<\/a><\/p>\n<pre><code class=\"language-bash\">{\n  &quot;name&quot;: &quot;iyatt-yx-cad-tools&quot;,\n  &quot;version-string&quot;: &quot;1.0.0&quot;,\n  &quot;builtin-baseline&quot;: &quot;56bb2411609227288b70117ead2c47585ba07713&quot;,\n  &quot;dependencies&quot;: [\n    &quot;gettext&quot;\n  ],\n  &quot;overrides&quot;: [\n    {\n      &quot;name&quot;: &quot;gettext&quot;,\n      &quot;version&quot;: &quot;0.22.5&quot;\n    }\n  ]\n}<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E4%BB%A3%E7%90%86\"><\/span>\u4ee3\u7406<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>vcpkg \u4e0b\u8f7d\u7684\u6765\u6e90\u7ad9\u904d\u5e03\u5168\u4e16\u754c\uff0c\u5f88\u591a\u5e93\u6765\u6e90\u4e8e\u56fd\u5916\uff0c\u5927\u9646\u4e0b\u8f7d\u53ef\u80fd\u975e\u5e38\u6162\uff0c\u4e00\u822c\u8981\u8bbe\u7f6e\u4ee3\u7406\u3002<br \/>\n\u6211\u8fd9\u91cc\u4f7f\u7528\u662f\u5bf9 VS \u8bbe\u7f6e\u4ee3\u7406\uff0c\u8fd9\u6837\u901a\u8fc7 VS \u8fd0\u884c\u7684 vcpkg \u4e5f\u80fd\u4f7f\u7528\u4ee3\u7406\u3002<br \/>\n\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u5199\u5165<br \/>\n<strong><a href=\"http:\/\/127.0.0.1:10808\">http:\/\/127.0.0.1:10808<\/a><\/strong> \u8fd9\u91cc\u66ff\u6362\u6210\u81ea\u5df1\u7684\u4ee3\u7406\uff0c\u8fd9\u91cc\u6211\u662f\u672c\u5730\u7684 v2rayN \u5f00\u7684\u4ee3\u7406\u3002<\/p>\n<p><strong>C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\Common7\\IDE\\devenv.exe<\/strong> \u662f VS \u7684\u542f\u52a8\u6587\u4ef6\u8def\u5f84\uff0c\u53ef\u4ee5\u901a\u8fc7\u5feb\u6377\u65b9\u5f0f\u7684\u5c5e\u6027\u83b7\u53d6<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779206809215.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 471px; --smush-placeholder-aspect-ratio: 471\/656;\" \/><\/p>\n<pre><code class=\"language-bash\">@echo off\nset HTTP_PROXY=http:\/\/127.0.0.1:10808\nset HTTPS_PROXY=http:\/\/127.0.0.1:10808\n\nstart &quot;&quot; &quot;C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\Common7\\IDE\\devenv.exe&quot;<\/code><\/pre>\n<p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u5c06\u6269\u5c55\u540d\u6539\u4e3a <strong>.bat<\/strong>\uff0c\u8fd9\u6837\u53cc\u51fb\u5c31\u4f1a\u81ea\u52a8\u8bbe\u7f6e\u4ee3\u7406\u5e76\u542f\u52a8 VS\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779208291293.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 125px; --smush-placeholder-aspect-ratio: 125\/150;\" \/><\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E6%B5%8B%E8%AF%95\"><\/span>\u6d4b\u8bd5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u5982\u679c\u4e0d\u662f\u901a\u8fc7 VS \u5185\u6dfb\u52a0\u7684 <strong>vcpkg.json<\/strong> \u6587\u4ef6\uff0cVS \u53ef\u80fd\u6ca1\u8bc6\u522b\u5230\uff0c\u53ef\u4ee5\u5728\u9879\u76ee\u540d\u4e0a\u53f3\u952e\u6dfb\u52a0\u73b0\u6709\u9879\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779206960323.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 734px; --smush-placeholder-aspect-ratio: 734\/661;\" \/><\/p>\n<p>\u5728\u9879\u76ee\u540d\u4e0a\u53f3\u952e\u751f\u6210\u6216\u91cd\u65b0\u751f\u6210\uff0c\u5728\u7f16\u8bd1\u7684\u540c\u65f6\u4f1a\u89e6\u53d1 vcpkg \u5b89\u88c5\u4f9d\u8d56\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779208152045.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 431px; --smush-placeholder-aspect-ratio: 431\/287;\" \/><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779209107086.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1916px; --smush-placeholder-aspect-ratio: 1916\/215;\" \/><\/p>\n<p>\u9996\u6b21\u5b89\u88c5\u65f6\u95f4\u4e45\u4e00\u70b9\uff0c\u5982\u679c\u7f16\u8bd1\u4e5f\u6ca1\u51fa\u9519\uff0c\u5c31\u663e\u793a\u751f\u6210\u6210\u529f\u4e86\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1779208182086.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1264px; --smush-placeholder-aspect-ratio: 1264\/290;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u671f\u51c6\u5907 \u786e\u4fdd\u5728 Visual Studio Installer \u4e2d\u5df2\u7ecf\u5b89\u88c5vcpkg \u5305\u7ba1\u7406\u5668 \u5f00\u59cb\u83dc\u5355\u641c\u7d22 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":null,"zakra_menu_item_active_color":null,"zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,589],"tags":[1014,2150,1999,2000,2151],"class_list":["post-24690","post","type-post","status-publish","format-standard","hentry","category-all","category-c-c","tag-c","tag-vcpkg","tag-visual-studio","tag-vs","tag-2151"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24690"}],"version-history":[{"count":11,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24690\/revisions"}],"predecessor-version":[{"id":24713,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24690\/revisions\/24713"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}