创建C ++ / WinRT UWP库Visual Studio 2019 [英] Create a C++/WinRT UWP library Visual Studio 2019
问题描述
我不清楚Visual Studio 2019模板的适当项目是什么来构建C ++ / WinRT UWP库。我写了一个简单的UWP应用程序,扫描蓝牙低功耗广告。我需要所有这些特殊的C ++ / WinRT基础设施
来访问蓝牙API。现在我想做的就是拿出蓝牙代码并从中创建一个库。
我该怎么做?使用基本C ++时非常简单。
当使用Visual Studio 2019并对C ++和库进行过滤时,我获得的支持UWP的静态或动态库的唯一选项是C ++ / CX 。 C ++ / winRT没有选项。
嗨Sisansarah,
欢迎到MSDN论坛。
C ++ / WinRT是一个扩展,它需要你下载。您可以从网站下载: 或来自VS(选择"扩展程序" - > ;"扩展和更新",点击"在线",搜索"C ++ / WinRT"),如下所示。
希望它对您有所帮助,任何误解,请随时告诉我
J
真诚
月跨度>
It is unclear to me what the appropriate project Visual Studio 2019 template is to make a C++/WinRT UWP library. I wrote a simple UWP app that scanned for Bluetooth Low Energy advertisements. I needed all this special C++/WinRT infrastructure to access the Bluetooth APIs. Now what I would like to do is take that Bluetooth code and make a library out of it.
How do I do that? It was so straightforward when using basic C++.
When using Visual Studio 2019 and filtering on C++ and library, the only options I get for a static or dynamic library that supports UWP is C++/CX. There are no options for C++/winRT.
Hi Sisansarah,
Welcome to the MSDN forum.
C++/WinRT is an extension, it needs you to download. You can download from website: https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264 or from VS (Choose "Extensions"-->"Extensions and Updates", click "Online", search "C++/WinRT" ) as below.
Hope it is helpful for you, it any misunderstanding, please feel free to let me know J
Sincerely
May
这篇关于创建C ++ / WinRT UWP库Visual Studio 2019的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!