Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have Microsoft Visual Studio 2010 Professional installed on Windows/10 and have been coding in C# for a couple of years.
I have just installed Dot Net Core 3.1 SDK.
I want to write C# code to run on a Raspberry Pi running Raspbian Buster (Linux) and use the GPIO pins.
What do I need to do in Visual Studio 2010 Professional to make it 'see' the Dot Net Core libraries?
For example, I want to be able to write:
using System.Device.Gpio;


Chris

What I have tried:

I have tried 'Add Reference' but I cannot find anything that looks like dot net core in the list of .Net components.
Posted
Updated 30-Jul-20 4:12am

not sure about VS 2010, but this may help Getting started with IoT Core and C# on the Raspberry Pi | Blogs | Plextek[^] (See step 7)

There is a slightly different option if VS 2010 doesn't support that 'Remote' approach, that is outlined here Setting up Raspian and .NET Core 2.0 on a Raspberry Pi | Microsoft Docs[^] (or, I guess, get yourself the community edition of VS2019)

This Easy Set Up of .NET Core on Raspberry Pi and Remote Debugging with VS Code[^] Using Visual Studio Code is also a good option (there's 2 parts)

See also : App Development on Windows IoT using VS 2019[^] (it has a Rasp Pi section)
 
Share this answer
 
v3
Garth,
Thanks for all those links, they are various ways around my problem and I will certainly follow them up.

However, I do not need remote debugging and I am quite happy to deploy the compiled code manually to the pi. So I just want to have a last go to persuade Visual Studio 2010 to
locate the DotNetCore 3.1 SDK modules I have already installed.

I know the folder is in
C:\Program Files\dotnet\sdk\3.1.302
but I don't know which dlls I need to point to, with Visual Studio's "Add Reference" facility.

If there was some way to inspect these dlls to see what classes/methods they contain, I possibly would then have a chance.

Chris
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900