windows:visualstudio

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:visualstudio [2020/08/29 07:02] – [IPython の利用] ともやんwindows:visualstudio [2023/07/31 11:10] (現在) ともやん
行 1: 行 1:
-<html> +~~CLOSETOC~~ 
-  <style> +====== Visual Studio ====== 
-    #result pre, #mincode pre { +{{windows:x_japan_cosplay_8644730147_.jpg?470|Visual Cosplay 2013😅💦}}\\ 
-      overflow: hidden; +**Visual Cosplay 2013😅💦**\\ 
-      font-size: 10px; +[[https://commons.wikimedia.org/wiki/File:X_Japan_Cosplay_(8644730147).jpg|File:X Japan Cosplay (8644730147).jpg - Wikimedia Commons]] より\\ 
-    } +ビジュアル系イメージの誤りです😅💦\\ 
-    #result_long pre, #mincode_long pre  { + 
-      height: 250px; +{{INLINETOC wide 2-2}}
-      overflow: scroll; +
-      overflow-x: hidden; +
-      font-size: 10px; +
-    } +
-    #mintbl table { +
-      font-size: 12px; +
-    } +
-    #result a, #mincode a, #result_long a, #mincode_long a, #mintbl a { +
-      mergin: 0; +
-    } +
-    .dokuwiki .plugin_wrap table { +
-      width: auto; +
-    } +
-    #logo { +
-      background-color: white; +
-      padding: 10px; +
-      width: fit-content; +
-    } +
-    #logo p { +
-      margin: 0; +
-    } +
-  </style> +
-</html> +
-====== Visual Studio 2019 ====== +
-{{windows:visualstudio2019.png?470|Visual Studio 2019}}\\+
  
 ===== Visual Studio 2019 のダウンロード ===== ===== Visual Studio 2019 のダウンロード =====
行 38: 行 13:
  
 ===== 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}}\\
 \\ \\
 「ASP.NET と Web 開発」を選択する。\\ 「ASP.NET と Web 開発」を選択する。\\
-{{:windows:visualstudio2019_installer_002.png?470|Visual Studio 2019 Installer 002}}\\+{{windows:visualstudio2019_installer_002.png?470|Visual Studio 2019 Installer 002}}\\
 \\ \\
 「Python 開発」を選択する。\\ 「Python 開発」を選択する。\\
行 51: 行 26:
 Python 3 64-bit (3.7.3) Python 3 64-bit (3.7.3)
 </code> </code>
-{{:windows:visualstudio2019_installer_003.png?800|Visual Studio 2019 Installer 003}}\\+{{windows:visualstudio2019_installer_003.png?800|Visual Studio 2019 Installer 003}}\\
 \\ \\
 「.NET デスクトップ開発」を選択する。\\ 「.NET デスクトップ開発」を選択する。\\
-{{:windows:visualstudio2019_installer_004.png?800|Visual Studio 2019 Installer 004}}\\+{{windows:visualstudio2019_installer_004.png?800|Visual Studio 2019 Installer 004}}\\
 \\ \\
 「C++ によるデスクトップ開発」を選択する。\\ 「C++ によるデスクトップ開発」を選択する。\\
-{{:windows:visualstudio2019_installer_005.png?800|Visual Studio 2019 Installer 005}}\\+{{windows:visualstudio2019_installer_005.png?800|Visual Studio 2019 Installer 005}}\\
 \\ \\
 [インストール] をクリックする。\\ [インストール] をクリックする。\\
 \\ \\
-{{:windows:visualstudio2019_installer_006.png?800|Visual Studio 2019 Installer 006}}\\+{{windows:visualstudio2019_installer_006.png?800|Visual Studio 2019 Installer 006}}\\
 \\ \\
 コンピュータを再起動する。\\ コンピュータを再起動する。\\
-{{:windows:visualstudio2019_installer_007.png?400|Visual Studio 2019 Installer 007}}\\+{{windows:visualstudio2019_installer_007.png?400|Visual Studio 2019 Installer 007}}\\
  
 ===== Visual Studio Installer の自動化 ===== ===== Visual Studio Installer の自動化 =====
-オフラインインストール用のレイアウトを **%USERPROFILE%\Visual Studio 2019 Downloads** に作成する。\\+オフラインインストール用のレイアウトを <html><code>%USERPROFILE%\Visual Studio 2019 Downloads</code></html> に作成する。\\
 Visual C++、Python 開発環境を構築する例。\\ Visual C++、Python 開発環境を構築する例。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
行 358: 行 333:
 Updating files: 100% (5302/5302), done. Updating files: 100% (5302/5302), done.
 </code> </code>
 +</WRAP>
 +
 +**Vcpkg インスタンス (ディレクトリ構成)**\\
 +<WRAP prewrap 100% mintbl>
 +^ buildtrees  | 各ライブラリの作成元となるソースのサブフォルダーが含まれている。  |
 +^ docs  | ドキュメントと例。  |
 +^ downloads  | ダウンロードしたツールまたはソースのキャッシュ コピー。\\ vcpkg は、インストール コマンドの実行時に最初にここを検索する。  |
 +^ installed  | インストールされている各ライブラリのヘッダーとバイナリが含まれている。\\ Visual Studio と統合する場合、基本的にこのフォルダーがその検索パスに追加される。  |
 +^ packages  | インストール間のステージング用の内部フォルダー。  |
 +^ ports  | カタログ内の各ライブラリ、そのバージョン、およびダウンロード場所を記述するファイル。\\ 必要に応じて、独自のポートを追加できる。  |
 +^ scripts  | vcpkg で使用されるスクリプト (CMake、PowerShell)。  |
 +^ toolsrc  | vcpkg および関連するコンポーネントの C++ ソース コード。  |
 +^ triplets  | サポートされているターゲット プラットフォーム (x86-windows や x64-uwp など) の設定が含まれる。  |
 </WRAP> </WRAP>
  
行 498: 行 486:
 $ git pull $ git pull
 $ ./bootstrap-vcpkg.bat $ ./bootstrap-vcpkg.bat
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9/vcpkg.exe -> C:\Users\tomoyan\vcpkg\vcpkg.exe
 +Done.
 +
 +Telemetry
 +---------
 +vcpkg collects usage data in order to help us improve your experience.
 +The data collected by Microsoft is anonymous.
 +You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
 +passing --disable-metrics to vcpkg on the command line,
 +or by setting the VCPKG_DISABLE_METRICS environment variable.
 +
 +Read more about vcpkg telemetry at docs/about/privacy.md
 +</code>
 +</WRAP>
 +<WRAP prewrap 100%>
 +<code powershell>
 $ ./vcpkg version $ ./vcpkg version
 </code> </code>
行 503: 行 511:
 <WRAP prewrap 100% #result> <WRAP prewrap 100% #result>
 <code powershell> <code powershell>
-Vcpkg package management program version 2020.06.15-nohash+Vcpkg package management program version 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9
  
 See LICENSE.txt for license information. See LICENSE.txt for license information.
行 2760: 行 2768:
  
 ==== その他のインストールできるもの ==== ==== その他のインストールできるもの ====
 +ライブラリ名<library>:トリプレット<triplets> (x86-windows, x64-windows, x64-linux, x64-osx) を指定できる。\\
 +
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code> <code>
行 2971: 行 2981:
  
 ==== 「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.
行 2992: 行 3002:
  
 ==== 参考文献 ==== ==== 参考文献 ====
-[[https://docs.microsoft.com/ja-jp/cpp/build/vcpkg?view=vs-2019|vcpkg-- Windows、Linux、および MacOS 用の C++ パッケージ マネージャー | Microsoft Docs]]\\+[[https://docs.microsoft.com/ja-jp/cpp/build/vcpkg|vcpkg-- Windows、Linux、および MacOS 用の C++ パッケージ マネージャー | Microsoft Docs]]\\
  
 ===== Python Tools for Visual Studio ===== ===== Python Tools for Visual Studio =====
行 3077: 行 3087:
 本家: [[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>
  
 ==== ダウンロード ==== ==== ダウンロード ====
行 3178: 行 3216:
 </code> </code>
 </WRAP> </WRAP>
 +
 +===== トラブルシューティング =====
 +
 +==== C++ プロジェクトでリンカーの出力ファイルを変更すると MSBuild が 警告: MSB8012 を吐く ====
 +プロジェクトのプロパティで **[構成プロパティ] - [リンカー] - [出力ファイル]** を **$(OutDir)$(TargetName)$(TargetExt)** 以外に変更してビルドすると **MSBuild** が警告する。\\
 +<WRAP prewrap 100% mincode>
 +<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(1318,5): warning MSB8012: TargetName(pyeverything_cpp_wrapper) が Linker の OutputFile プロパティ値 (pyeverything) と一致しません。このため、プロジェクトが正常にビルドされない可能性があります。この問題を解決するには、$(OutDir)、$(TargetName)、および $(TargetExt) の各プロパティ値が、%(Link.OutputFile) で指定されている値と一致することを確認してください。
 +</code>
 +</WRAP>
 +
 +これを回避するには、プロジェクトのプロパティで **[構成プロパティ] - [全般] - [ターゲット名]** を **$(ProjectName)** から出力したいファイル名 (ここでは **pyeverything** ) に変更すると警告されなくなる。\\
  
 ====== 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 |
行 3213: 行 3270:
  
 **参考文献**\\ **参考文献**\\
-[[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]]\\
行 3219: 行 3276:
 [[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 ======
  • windows/visualstudio.1598652149.txt.gz
  • 最終更新: 2020/08/29 07:02
  • by ともやん