Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Andy

Member Since 18 Sep 2010
Offline Last Active Sep 19 2011 06:19 PM
-----

Topics I've Started

missing files?

20 September 2010 - 03:38 PM

Morning everyone,
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'.

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.