我似乎无法将我非常简单的netduino程序写入调试控制台; VS抛出错误
“Console”这个名称在当前上下文中不存在
什么可能导致它不存在的任何想法?
using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
namespace LumenReader
{
public class Program
{
public static void Main()
{
AnalogInput photoResistor = new AnalogInput(Pins.GPIO_PIN_A0);
int photoVolt;
while (true)
{
photoVolt = photoResistor.Read();
Console.WriteLine(photoVolt);
}
}
}
}
编辑
Debug.Print
确实有效