Template:PT3 CSHARP WIN VS: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
 
Line 18: Line 18:
<div class="phd-slide">
<div class="phd-slide">
<h2>Requirements</h2>
<h2>Requirements</h2>
<p>First, make sure you have the following installed:</p>
<p>● <span>[https://www.phidgets.com/docs/OS_-_Windows Phidgets Drivers for Windows]</span></p>
<p>● Microsoft Visual Studio</p>
<br />


<h2>Nuget</h2>
<h2>Nuget</h2>
Line 31: Line 23:
<p>
<p>
The Phidget22.NET library is now available on nuget.org <span>[https://www.nuget.org/packages/Phidget22.NET/ here]</span>. Nuget is the recommended way to
The Phidget22.NET library is now available on nuget.org <span>[https://www.nuget.org/packages/Phidget22.NET/ here]</span>. Nuget is the recommended way to
install and use the .NET library in Visual Studio. The nuget package bundles the C library on Windows, so there are no other prerequisites that need to be
install and use the .NET library in Visual Studio. The nuget package adds targets for .NET Core and .NET Standard, so it should be usable from almost any .NET
installed. The nuget package adds targets for .NET Core and .NET Standard, so it should be usable from almost any .NET environment which also supports the C
environment which also supports the C library. See the <b>New Project</b> section on the next slide for step-by-step instructions for adding the nuget package.
library.
</p>
</p>
</div>
</div>
Line 56: Line 47:
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-to-deck-button phd-text-link" data-to-deck="PT3_CSHARP_WIN_VS_2">
<div class="phd-to-deck-button phd-text-link" data-to-deck="PT3_CSHARP_WIN_VS_2">
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_CSHARP_WIN_VS/-x200/50/newproj.jpg"></div>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_CSHARP_WIN_VS/-x200/50/newproj2.png"></div>
<h2>New Project</h2>
<h2>New Project</h2>
</div>
</div>

Latest revision as of 19:30, 3 January 2025

Windows with Visual Studio

Welcome to using Phidgets with C#! By using C#, you will have access to the complete Phidget22 API, including events.

Visual Studio is an IDE provided by Microsoft that can be used to develop code in a wide variety of programming languages, including C#.

Requirements

Nuget

The Phidget22.NET library is now available on nuget.org here. Nuget is the recommended way to install and use the .NET library in Visual Studio. The nuget package adds targets for .NET Core and .NET Standard, so it should be usable from almost any .NET environment which also supports the C library. See the New Project section on the next slide for step-by-step instructions for adding the nuget package.

Using Phidgets in Your Programs

There are two ways you can use Phidgets in Visual Studio. You can either start from a sample project provided by our code sample generator, or you can start a new project from scratch.

Select your preferred method below for instructions:

«
»