{"id":11109,"date":"2020-05-29T19:04:25","date_gmt":"2020-05-29T19:04:25","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=11109"},"modified":"2020-05-29T19:25:11","modified_gmt":"2020-05-29T19:25:11","slug":"msvc","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=11109","title":{"rendered":"MSVC"},"content":{"rendered":"<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/framework\/tools\/developer-command-prompt-for-vs\">Developer Command Prompt for Visual Studio<\/a><br \/>\n<a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/build\/building-on-the-command-line?view=vs-2019\">Use the Microsoft C++ toolset from the command line<\/a><br \/>\n<a href=\"htps:\/\/docs.microsoft.com\/en-us\/cpp\/build\/setting-the-path-and-environment-variables-for-command-line-builds?view=vs-2019\">Set the Path and Environment Variables for Command-Line Builds<\/a><br \/>\n<a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/build\/walkthrough-compiling-a-native-cpp-program-on-the-command-line?view=vs-2019\">Walkthrough: Compiling a Native C++ Program on the Command Line<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nC:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Visual Studio 2019\\Visual Studio Tools\\VC\r\n\r\nDeveloper Command Prompt for VS 2019\r\nx64 Native Tools Command Prompt for VS 2019\r\n<\/pre>\n<table>\n<tr>\n<td><a href=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019-300x108.png\" alt=\"\" width=\"300\" height=\"108\" class=\"alignleft size-medium wp-image-11113\" srcset=\"https:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019-300x108.png 300w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019.png 346w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019_cmd.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019_cmd-300x148.png\" alt=\"\" width=\"300\" height=\"148\" class=\"alignleft size-medium wp-image-11114\" srcset=\"https:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019_cmd-300x148.png 300w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/dev_command_vs_2019_cmd.png 591w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/x64_native_vs_2019.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/x64_native_vs_2019-300x111.png\" alt=\"\" width=\"300\" height=\"111\" class=\"alignleft size-medium wp-image-11112\" srcset=\"https:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/x64_native_vs_2019-300x111.png 300w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2020\/05\/x64_native_vs_2019.png 343w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/td>\n<\/tr>\n<\/table>\n<pre class=\"brush: plain; title: C\/C++ Optimizing Compiler; notranslate\" title=\"C\/C++ Optimizing Compiler\">\r\nC:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools&gt;cl\r\nMicrosoft (R) C\/C++ Optimizing Compiler Version 19.25.28614 for x64\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\nusage: cl &#x5B; option... ] filename... &#x5B; \/link linkoption... ]\r\n<\/pre>\n<pre class=\"brush: plain; title: Build Engine; notranslate\" title=\"Build Engine\">\r\nC:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools&gt;msbuild\r\nMicrosoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Framework\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nMSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.\r\n<\/pre>\n<h3>a<\/h3>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/7133796\/what-are-sln-and-vcproj-files-and-what-do-they-contain\">What are .sln and .vcproj files, and what do they contain?<\/a><br \/>\n<a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/build\/reference\/project-and-solution-files?view=vs-2019\">Project and Solution Files<\/a><\/p>\n<h3>YouTube<\/h3>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=Utvd1nd31kA\">Introduction to Visual Studio Solution, Projects, and Code Files<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=oFyj-qGMqAA\">Introduction to MSBuild<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=wWmlQSDkaL8\">Cpp development with Visual Studio Code on Windows<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Developer Command Prompt for Visual Studio Use the Microsoft C++ toolset from the command line Set the Path and Environment Variables for Command-Line Builds Walkthrough: Compiling a Native C++ Program on the Command Line C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Visual Studio 2019\\Visual Studio Tools\\VC Developer Command Prompt for VS 2019 x64 Native Tools Command Prompt for VS 2019 C:\\Program [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11109","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/11109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11109"}],"version-history":[{"count":11,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/11109\/revisions"}],"predecessor-version":[{"id":11123,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/11109\/revisions\/11123"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}