Fan174
Posts: 130
Joined: Tue Mar 20, 2018 6:10 am

how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 7:34 am

I have installed windows 10 iot core on raspberry Pi 3. I want to run c# code on windows 10 iot core. I am confused I don't know how to run C# code on windows 10 iot core using raspberry Pi 3. I think visual studio 2017 will not run on raspberry Pi.

Please someone help me how to run C# code on raspberry Pi 3 using windows 10 ?

markkuk
Posts: 52
Joined: Thu Mar 22, 2018 1:02 pm

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 8:44 am

You write the application using Visual Studio running on a Windows 10 PC, then deploy it to the RPi over network. See: https://docs.microsoft.com/en-us/window ... deployment

Fan174
Posts: 130
Joined: Tue Mar 20, 2018 6:10 am

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 8:57 am

markkuk wrote:
Sat Apr 28, 2018 8:44 am
You write the application using Visual Studio running on a Windows 10 PC, then deploy it to the RPi over network. See: https://docs.microsoft.com/en-us/window ... deployment
I have connected led with current limit resistor with pi. I want to turn on/off one led from any PC via web.

Is it possible with vs2017.? I think I have to write code on window PC then deploy on PI, Is it what I need ?

User avatar
DougieLawson
Posts: 33847
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 9:05 am

Go here: https://developer.microsoft.com/en-us/w ... getstarted follow the tutorial pieces for Raspberry Pi on there. You use VS2017 on Windows 10 (on your laptop) to deploy programs in python or C# or C/C++ on your Raspberry Pi running the cut-down Win10 IoT Core (which is NOT in any way like Win10 on a PC).


NOTE: Win10 IoT is still not supported on RPi3B+ hardware.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Fan174
Posts: 130
Joined: Tue Mar 20, 2018 6:10 am

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 11:51 am

DougieLawson wrote:
Sat Apr 28, 2018 9:05 am
Go here: https://developer.microsoft.com/en-us/w ... getstarted follow the tutorial pieces for Raspberry Pi on there. You use VS2017 on Windows 10 (on your laptop) to deploy programs in python or C# or C/C++ on your Raspberry Pi running the cut-down Win10 IoT Core (which is NOT in any way like Win10 on a PC).
I already saw that tutorials but still I am not clear Do i need to write program on windows PC then I have to deploy on raspberry Pi

DougieLawson wrote:
Sat Apr 28, 2018 9:05 am
NOTE: Win10 IoT is still not supported on RPi3B+ hardware.
but I have installed windows 10 iot core successfully I am using raspberry pi model b v1.2

ghans
Posts: 7793
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 1:05 pm

You need to write C# code on an extra computer to deploy it onto the Pi.
You can NOT write C# programs on a Pi running Windows 10 IoT Core itself.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Fan174
Posts: 130
Joined: Tue Mar 20, 2018 6:10 am

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 1:45 pm

ghans wrote:
Sat Apr 28, 2018 1:05 pm
You need to write C# code on an extra computer to deploy it onto the Pi.
You can NOT write C# programs on a Pi running Windows 10 IoT Core itself.

ghans
That's what I wanted to confirm, I think I got it but not sure. lets suppose I have one PI installed on windows 10 iot core and I have four windows PC. If I am using one of of them to write #c code then my question is that can I use remaining window PC to control device. I want to control the device from any(four windows) PC's

B.Goode
Posts: 6458
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 2:12 pm

I think I got it but not sure. lets suppose...

I've got a crazy suggestion...

Why not try it for yourself? It won't cost you anything apart from a little of your time, you will know you can rely on the outcome, and win or lose you will gain a lot of practical experience.

User avatar
DougieLawson
Posts: 33847
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 2:34 pm

B.Goode wrote:
Sat Apr 28, 2018 2:12 pm
I think I got it but not sure. lets suppose...

I've got a crazy suggestion...

Why not try it for yourself? It won't cost you anything apart from a little of your time, you will know you can rely on the outcome, and win or lose you will gain a lot of practical experience.
That's a more succinct way of saying what I was trying to get across. Get the baby steps done with the Microsoft tutorial. Once that works you'll know your way round VS2017 and the deployment to your Raspberry and you own first project will be a billion times easier. I think that's why they have tutorial, example programs that do banal things like winking an LED.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Heater
Posts: 9841
Joined: Tue Jul 17, 2012 3:02 pm

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 3:49 pm

Fan174,
...lets suppose I have one PI installed on windows 10 iot core and I have four windows PC. If I am using one of of them to write #c code then my question is that can I use remaining window PC to control device. I want to control the device from any(four windows) PC's
OK. We have two distinct problems here:

1) How do you develop a program on a Win 10 PC to run on Windows IoT on a Pi?

2) How to communicate with that program, when it's completed, from other PCs?

I guess the tutorials and such linked to above get you started with 1).

For 2) we need more information: How do you want to communicate to the Pi from those other PC? A web interface? Other?

I cannot advise. I would not use Win IoT or C# for such a task.

User avatar
bensimmo
Posts: 3222
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Sat Apr 28, 2018 4:27 pm

Third Problem.
English is not the first language?
What languages do you speak, someone may be able to speak it.

Does a Video help ?
https://www.youtube.com/watch?v=JPRUbGIyODY

Fan174
Posts: 130
Joined: Tue Mar 20, 2018 6:10 am

Re: how to run C# code on raspberry Pi 3 using windows 10 iot core

Mon Apr 30, 2018 6:56 am

I got the idea thank you very much for your every help

Return to “Windows 10 for IoT”

Who is online

Users browsing this forum: No registered users and 2 guests