Maybe I'm missing something obvious here but I'm trying to open a SerialPort and when I execute the port.Open() command VisualStudio is asking me where the NetduinoHardwareProvider.cs file is. I have the SDK installed and I've only run into this (so far) when trying to use a SerialPort. Any thoughts? Below is the code & error text
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; using System.IO.Ports; namespace nd_serialTest { public class Program { static InputPort btn = new InputPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.Disabled); static OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); public static void Main() { SerialPort c1 = new SerialPort("COM1", 9600); Debug.Print("ready"); if (!c1.IsOpen) { c1.Open(); byte[] msg = System.Text.UTF8Encoding.UTF8.GetBytes("TEST"); c1.Write(msg, 0, msg.Length); c1.Close(); } } } }error text:
Locating source for 'C:\Documents\Secret Labs\Projects\Production\SecretLabs.NETMF.Hardware.Netduino\NetduinoHardwareProvider.cs'. Checksum: MD5 {36 3 f0 c2 91 e3 ea ee 5 bc 34 44 70 d8 e1 22}
The file 'C:\Documents\Secret Labs\Projects\Production\SecretLabs.NETMF.Hardware.Netduino\NetduinoHardwareProvider.cs' does not exist.
Looking in script documents for 'C:\Documents\Secret Labs\Projects\Production\SecretLabs.NETMF.Hardware.Netduino\NetduinoHardwareProvider.cs'...
Looking in the projects for 'C:\Documents\Secret Labs\Projects\Production\SecretLabs.NETMF.Hardware.Netduino\NetduinoHardwareProvider.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\vc7\atlmfc'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\vc7\crt'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: C:\Documents\Secret Labs\Projects\Production\SecretLabs.NETMF.Hardware.Netduino\NetduinoHardwareProvider.cs.
The debugger could not locate the source file 'C:\Documents\Secret Labs\Projects\Production\SecretLabs.NETMF.Hardware.Netduino\NetduinoHardwareProvider.cs'.