简体   繁体   English

将.Net Core Console App部署到Raspberry PI和远程调试

[英]Deploy .Net Core Console App to Raspberry PI and Remote Debug

I've written a basic console app in C# using .Net Core 1.1 and Visual Studio 2017 Community. 我已经使用.Net Core 1.1和Visual Studio 2017 Community用C#编写了一个基本的控制台应用程序。 The app runs fine on my machine and am ready to deploy it to a Raspberry Pi 3 running Windows 10 IoT v.10.0.15063.0, which is running on the same network and visible in the IoT Dashboard. 该应用程序可以在我的机器上正常运行,并准备将其部署到运行Windows 10 IoT v.10.0.15063.0的Raspberry Pi 3,该Raspberry Pi 3在同一网络上运行并在IoT仪表板中可见。

All of the tutorials I've seen online indicate that I should be able to select a remote machine as the debug target from the drop-down on the start debugging button, as shown here: 我在网上看到的所有教程都表明,我应该能够从开始调试按钮的下拉菜单中选择一个远程计算机作为调试目标,如下所示:

落下

Unfortunately for me, all I get in this drop-down is the project name: 对于我来说不幸的是,我在该下拉列表中得到的只是项目名称:

我的下拉菜单

My project's debug properties are as follows: 我的项目的调试属性如下:

在此处输入图片说明

There are plenty of articles online describing how to do this for a UWP application, but I've found nothing for a .Net Core app. 在线上有很多文章描述如何针对UWP应用程序执行此操作,但是对于.Net Core应用程序我一无所获。

Is my only viable option to re-write my app as a UWP Background App (this raises a whole host of other questions), or is there a way I can deploy and debug my .Net core app? 我唯一可行的选择是将我的应用程序重新编写为UWP后台应用程序(这引发了很多其他问题),还是有办法部署和调试.Net核心应用程序?

When you installed your Visual Studio 2017 Community the remote tools option does not contain the installed package, now you can download the remote tools for visual studio 2017 for and the remote debugging is enabled on your machine. 当您安装Visual Studio 2017社区时, 远程工具选项不包含已安装的程序包,现在您可以下载 Visual Studio 2017的远程工具 ,并在计算机上启用了远程调试功能。 follow the below link and download that. 请点击以下链接并下载。

Remote Tools for Visual Studio 2017 Visual Studio 2017的远程工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Core应用程序远程部署到Raspberry Pi上的Windows IoT Core - .NET Core app remote deployment to Windows IoT Core on Raspberry Pi 在Raspberry Pi上的.Net Core应用程序中忽略了Console.ReadLine - Console.ReadLine ignored in .Net Core app on Raspberry Pi .Net Core Console应用程序 - 调试失败 - 终止与远程端点的连接 - .Net Core Console App - Debug Fails - The connection with the remote endpoint was terminated Raspberry PI 上 Ubuntu 上的 ASP.NET Core 应用程序 - ASP.NET Core app on Ubuntu on Raspberry PI 如何在 Raspberry PI 上运行 .net core 3.1 应用程序? - How to run .net core 3.1 app on Raspberry PI? 远程部署/调试 Visual Studio 2017 .NET Core - Remote deploy/debug Visual Studio 2017 .NET Core 无法将UWP应用部署到Raspberry Pi 3 - Cannot deploy UWP app to raspberry pi 3 如何在启动时作为 raspberry pi 的(守护进程)服务执行 .NET Core 控制台应用程序 - How to execute a .NET Core console application on startup as a (daemon) service for the raspberry pi 带有 .Net Core 的 Raspberry Pi 3 上的串行端口 - Serial port on Raspberry Pi 3 with .Net Core Raspberry Pi上的.Net Core 2.1 GPIO filesystemwatcher - .Net Core 2.1 GPIO filesystemwatcher on Raspberry Pi
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM