Windows 物联网上的 Visual C++ 控制台应用程序 Raspberry Pi 2

Visual C++ console apps on Windows IoT with Raspberry Pi 2

我只是在 Visual Studio 2015 RC 和 Windows IoT 上对 Raspberry Pi 2 开发的应用程序进行一些初步测试。对于第一次测试,我编译了 C# Hello World,复制了它通过 FTP 到 PI 并从 powershell 启动它。这是开箱即用的。 然后我尝试使用 Win32 控制台应用程序(64 位)进行同样的操作,同样只打印 Hello World。我在 powershell 中得到的错误信息是:

Program 'HelloCpp.exe' failed to run: The operation completed successfully.
    + CategoryInfo          : ResourceUnavailable: (:) [],     ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

我想,这是意料之中的,因为我没有安装 VC++ 2015 (140) 运行 时间。我尝试像这样以静默模式从 powershell 安装它:

.\vc_redist.x64.exe /q /norestart

但它失败了

Program 'vc_redist.x64.exe' failed to run: The specified executable is not a valid application for this OS platform..
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

我的问题是: 是否有可能(或计划)运行 C++ 后台进程,例如我可以用 Visual C++ 开发的简单 TCP 服务器?

首先确保您已遵循本 page. Should the powers that be change that link again, you are looking for windowsondevices.com -> Get Started -> Set up PC. Once you have done that you should review the sample console app here 中的所有步骤。

希望对您有所帮助。

马克·拉德伯恩 [MSFT]