Template:PT3 CSHARP LNX DOTNET: Difference between revisions
From Phidgets Support
(Created page with "<div class="phd-slide-deck" data-deck="PT3_CSHARP_LNX_DOTNET"> <div class="phd-slide-deck-header"><h3>Language - C#</h3></div> <div class="phd-slides"> <div class="phd-slide"> <h2>Linux with dotnet CLI</h2> <div class="phd-panels"> <div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle"> <div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_CSHARP_LNX_DOTNET/200x-/50/dotnet.jpg"></div> </div> <div class="phd-panel phd-flex-c...") |
No edit summary |
||
Line 19: | Line 19: | ||
<h2>Requirements</h2> | <h2>Requirements</h2> | ||
<p>First, make sure you have the | <p> | ||
First, make sure you have the Phidgets Drivers for Linux installed (see <span>[https://www.phidgets.com/docs/OS_-_Linux this page]</span> for installation | |||
instructions). | |||
</p> | |||
<br /> | <br /> | ||
Line 48: | Line 49: | ||
<div class="phd-command-line"><code>dotnet new console -o helloworld</code></div> | <div class="phd-command-line"><code>dotnet new console -o helloworld</code></div> | ||
<p>This will create a new C# console application in a folder named | <p>This will create a new C# console application in a folder named <b>helloworld</b> in your current directory. Next, enter the folder and type:</p> | ||
<div class="phd-command-line"><code>dotnet run</code></div> | <div class="phd-command-line"><code>dotnet run</code></div> | ||
<p>If everything installed properly, the application should build and you'll see 'Hello, World!' printed in the terminal.</p> | <p>If everything installed properly, the application should build and you'll see <b>'Hello, World!'</b> printed in the terminal.</p> | ||
</div> | </div> | ||
Line 59: | Line 60: | ||
<p> | <p> | ||
Next we'll use this base project to run some Phidgets sample code. Go to the product page for your Phidget and go to the | Next we'll use this base project to run some Phidgets sample code. Go to the product page for your Phidget and go to the <b>Code Samples</b> tab. Select C# from | ||
language drop-down and use the check boxes to modify the example if you'd like. | the language drop-down and use the check boxes to modify the example if you'd like. | ||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_CSHARP_LNX_DOTNET/example.jpg"></div> | <div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_CSHARP_LNX_DOTNET/-x240/50/example.jpg"></div> | ||
<p>Click the copy button in the corner of the code sample and paste it into the Program.cs for your HelloWorld program, overwriting the existing code.</p> | <p>Click the copy button in the corner of the code sample and paste it into the Program.cs for your HelloWorld program, overwriting the existing code.</p> |