両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
windows:visualstudio [2021/06/18 01:08] – [Vcpkg コマンドの更新] ともやん | windows:visualstudio [2023/07/31 11:10] (現在) – ともやん |
---|
~~CLOSETOC~~ | ~~CLOSETOC~~ |
====== Visual Studio 2019 ====== | ====== Visual Studio ====== |
{{windows:x_japan_cosplay_8644730147_.jpg?470|Visual Cosplay 2013😅💦}}\\ | {{windows:x_japan_cosplay_8644730147_.jpg?470|Visual Cosplay 2013😅💦}}\\ |
**Visual Cosplay 2013😅💦**\\ | **Visual Cosplay 2013😅💦**\\ |
| |
===== Visual Studio Installer の実行 ===== | ===== Visual Studio Installer の実行 ===== |
ダウンロードした vs_community__1505233704.1563396169.exe を実行する。\\ | ダウンロードした vs_community%%__%%1505233704.1563396169.exe を実行する。\\ |
{{windows:visualstudio2019_installer_001.png?470|Visual Studio 2019 Installer 001}}\\ | {{windows:visualstudio2019_installer_001.png?470|Visual Studio 2019 Installer 001}}\\ |
\\ | \\ |
| |
**Vcpkg インスタンス (ディレクトリ構成)**\\ | **Vcpkg インスタンス (ディレクトリ構成)**\\ |
<WRAP prewrap 100% #mintbl> | <WRAP prewrap 100% mintbl> |
^ buildtrees | 各ライブラリの作成元となるソースのサブフォルダーが含まれている。 | | ^ buildtrees | 各ライブラリの作成元となるソースのサブフォルダーが含まれている。 | |
^ docs | ドキュメントと例。 | | ^ docs | ドキュメントと例。 | |
| |
==== 「Please install the English language pack.」が表示される ==== | ==== 「Please install the English language pack.」が表示される ==== |
<WRAP prewrap 100% #mincode> | <WRAP prewrap 100% mincode> |
<code> | <code> |
Warning: The following VS instances are excluded because the English language pack is unavailable. | Warning: The following VS instances are excluded because the English language pack is unavailable. |
本家: [[https://www.nuget.org/|NuGet Gallery | Home]]\\ | 本家: [[https://www.nuget.org/|NuGet Gallery | Home]]\\ |
ソースコード: [[https://github.com/NuGet/NuGet.Client|GitHub - NuGet/NuGet.Client: Client Tools for NuGet - including Visual Studio extensions, command line tools, and msbuild support. (Open issues on https://github.com/nuget/home/issues)]]\\ | ソースコード: [[https://github.com/NuGet/NuGet.Client|GitHub - NuGet/NuGet.Client: Client Tools for NuGet - including Visual Studio extensions, command line tools, and msbuild support. (Open issues on https://github.com/nuget/home/issues)]]\\ |
| |
| ==== インストール ==== |
| [[windows:scoop|Scoop]] によるインストール。\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <b class=GRN>$</b> <b class=HIY>scoop</b> search nuget |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| Results from local buckets... |
| |
| <b class=GRN>Name Version Source Binaries |
| ---- ------- ------ --------</b> |
| nuget-package-explorer 6.0.64 extras |
| nuget 6.6.1 main |
| |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <b class=GRN>$</b> <b class=HIY>scoop</b> install nuget |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| Installing 'nuget' (6.6.1) [64bit] from main bucket |
| NuGet.exe (7.0 MB) [==========================================================================================] 100% |
| Checking hash of <b class=CYN>NuGet.exe</b> ... <b class=GRN>ok.</b> |
| Linking ~\scoop\apps\nuget\current => ~\scoop\apps\nuget\6.6.1 |
| Creating shim for 'NuGet'. |
| <b class=GRN>'nuget' (6.6.1) was installed successfully!</b> |
| </pre></html></WRAP> |
| </WRAP> |
| |
==== ダウンロード ==== | ==== ダウンロード ==== |
==== C++ プロジェクトでリンカーの出力ファイルを変更すると MSBuild が 警告: MSB8012 を吐く ==== | ==== C++ プロジェクトでリンカーの出力ファイルを変更すると MSBuild が 警告: MSB8012 を吐く ==== |
プロジェクトのプロパティで **[構成プロパティ] - [リンカー] - [出力ファイル]** を **$(OutDir)$(TargetName)$(TargetExt)** 以外に変更してビルドすると **MSBuild** が警告する。\\ | プロジェクトのプロパティで **[構成プロパティ] - [リンカー] - [出力ファイル]** を **$(OutDir)$(TargetName)$(TargetExt)** 以外に変更してビルドすると **MSBuild** が警告する。\\ |
<WRAP prewrap 100% #mincode> | <WRAP prewrap 100% mincode> |
<code> | <code> |
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(1316,5): warning MSB8012: TargetPath(...\x64\Debug\pyeverything_cpp_wrapper.pyd) が Linker の OutputFile プロパティ値 (...\x64\Debug\pyeverything.pyd) と一致しません。このため、プロジェクトが正常にビルドされない可能性があります。この問題を解決するには、$(OutDir)、$(TargetName)、および $(TargetExt) の各プロパティ値が、%(Link.OutputFile) で指定されている値と一致することを確認してください。 | 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(1316,5): warning MSB8012: TargetPath(...\x64\Debug\pyeverything_cpp_wrapper.pyd) が Linker の OutputFile プロパティ値 (...\x64\Debug\pyeverything.pyd) と一致しません。このため、プロジェクトが正常にビルドされない可能性があります。この問題を解決するには、$(OutDir)、$(TargetName)、および $(TargetExt) の各プロパティ値が、%(Link.OutputFile) で指定されている値と一致することを確認してください。 |
====== Visual Studio と VC++ マクロ定義 ====== | ====== Visual Studio と VC++ マクロ定義 ====== |
^ 表記 ^ 製品名 ^ 他社アプリ\\ ライブラリの表記 ^ VC++ Version ^ _MSC_VER ^ _MSC_FULL_VER ^ | ^ 表記 ^ 製品名 ^ 他社アプリ\\ ライブラリの表記 ^ VC++ Version ^ _MSC_VER ^ _MSC_FULL_VER ^ |
| | 2019 Update 9 | Visual Studio 2019\\ Version 16.9.2 | VC16 | 14.28 | 1928 | 192829913 | |
| | 2019 Update 8 | Visual Studio 2019\\ Version 16.8.2 | VC16 | 14.28 | 1928 | 192829334 | |
| | 2019 Update 8 | Visual Studio 2019\\ Version 16.8.1 | VC16 | 14.28 | 1928 | 192829333 | |
| | 2019 Update 7 | Visual Studio 2019\\ Version 16.7 | VC16 | 14.27 | 1927 | 192729112 | |
| | 2019 Update 6 | Visual Studio 2019\\ Version 16.6.2 | VC16 | 14.26 | 1926 | 192628806 | |
| | 2019 Update 5 | Visual Studio 2019\\ Version 16.5.1 | VC16 | 14.25 | 1925 | 192528611 | |
| 2019 Update 4 | Visual Studio 2019\\ Version 16.3.2 | VC16 | 14.24 | 1924 | 192428314 | | | 2019 Update 4 | Visual Studio 2019\\ Version 16.3.2 | VC16 | 14.24 | 1924 | 192428314 | |
| 2019 Update 3 | Visual Studio 2019\\ Version 16.3.2 | VC16 | 14.23 | 1923 | 192328105 | | | 2019 Update 3 | Visual Studio 2019\\ Version 16.3.2 | VC16 | 14.23 | 1923 | 192328105 | |
| |
**参考文献**\\ | **参考文献**\\ |
[[https://qiita.com/yumetodo/items/8c112fca0a8e6b47072d|_MSC_VERと_MSC_FULL_VERをまとめる - Qiita]]\\ | [[qita>yumetodo/items/8c112fca0a8e6b47072d|_MSC_VERと_MSC_FULL_VERをまとめる - Qiita]]\\ |
[[https://docs.microsoft.com/ja-jp/cpp/porting/binary-compat-2015-2017?view=vs-2019|Visual Studio 2015 と Visual Studio 2019 の間の C++ バイナリ互換性 | Microsoft Docs]]\\ | [[https://docs.microsoft.com/ja-jp/cpp/porting/binary-compat-2015-2017?view=vs-2019|Visual Studio 2015 と Visual Studio 2019 の間の C++ バイナリ互換性 | Microsoft Docs]]\\ |
[[https://ja.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B|Microsoft Visual C++ - Wikipedia]]\\ | [[https://ja.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B|Microsoft Visual C++ - Wikipedia]]\\ |
[[https://docs.microsoft.com/ja-jp/visualstudio/releases/2019/release-notes|Visual Studio 2019 バージョン リリース ノート | Microsoft Docs]]\\ | [[https://docs.microsoft.com/ja-jp/visualstudio/releases/2019/release-notes|Visual Studio 2019 バージョン リリース ノート | Microsoft Docs]]\\ |
[[https://www.ruche-home.net/program/cpp/msvc|プログラミング/C++/VC++のC++規格対応状況 - ルーチェ's Homepage]]\\ | [[https://www.ruche-home.net/program/cpp/msvc|プログラミング/C++/VC++のC++規格対応状況 - ルーチェ's Homepage]]\\ |
[[https://qiita.com/yumetodo/items/8c112fca0a8e6b47072d|_MSC_VERと_MSC_FULL_VERをまとめる - Qiita]]\\ | |
| |
====== Visual Studio 2008 ====== | ====== Visual Studio 2008 ====== |