如何使用Visual Studio模拟器在Windows中运行NativeScript应用程序?

bor*_*net 4 nativescript

如何使用Visual Studio模拟器在Windows中运行NativeScript应用程序?试图获得这个项目:

https://github.com/avatsaev/nativescript-master-detail-angular2

在Windows 10 64位视觉工作室模拟器中运行,但总是在运行时启动android模拟器:

这是我的adb设备:

List of devices attached
169.254.138.177:5555    device
Run Code Online (Sandbox Code Playgroud)

tns livesync android --emulator --watch

也试过了

tns livesync 169.254.138.177:5555 --emulator --watch

没运气!

问候

肖恩

bor*_*net 5

找到了答案

 tns run android --device 169.254.138.177:5555
Run Code Online (Sandbox Code Playgroud)

你从以下设备获得设备:

adb devices
Run Code Online (Sandbox Code Playgroud)

请享用!

  • 您好@ born2net,您还可以使用`tns device`列出可用的仿真器和设备 (2认同)