diff --git a/PInvokeSerialPort.Sample/PInvokeSerialPort.Sample.csproj b/PInvokeSerialPort.Sample/PInvokeSerialPort.Sample.csproj index 3582d0a..9ccc942 100755 --- a/PInvokeSerialPort.Sample/PInvokeSerialPort.Sample.csproj +++ b/PInvokeSerialPort.Sample/PInvokeSerialPort.Sample.csproj @@ -1,69 +1,21 @@ - - + - Debug - x86 8.0.30703 - 2.0 {76FAB402-7515-4A9B-8605-4FEC0736C78A} Exe - Properties - PInvokeSerialPort.Sample - PInvokeSerialPort.Sample - v4.6.1 - - - 512 + net6 + PInvokeSerialPort.Sample + PInvokeSerialPort.Sample + Copyright © 2012 + bin\$(Configuration)\ - x86 - true full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - x86 pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - + - - - - - - - {AEC711A5-AA9B-4127-A82C-C4D8FDA9741A} - PInvokeSerialPort - - - - - - - \ No newline at end of file diff --git a/PInvokeSerialPort.Sample/Program.cs b/PInvokeSerialPort.Sample/Program.cs index 926e95c..7d6a008 100755 --- a/PInvokeSerialPort.Sample/Program.cs +++ b/PInvokeSerialPort.Sample/Program.cs @@ -1,19 +1,16 @@ using System; -using PInvokeSerialPort; +using Nefarius.Peripherals.SerialPort; namespace PInvokeSerialPort.Sample { - class Program + internal class Program { - static void Main(string[] args) + private static void Main(string[] args) { var serialPort = new SerialPort("com1", 14400); serialPort.DataReceived += x => Console.Write((char)x); serialPort.Open(); - while (true) - { - serialPort.Write(Console.ReadKey().KeyChar); - } + while (true) serialPort.Write(Console.ReadKey().KeyChar); } } -} +} \ No newline at end of file diff --git a/PInvokeSerialPort.Sample/Properties/AssemblyInfo.cs b/PInvokeSerialPort.Sample/Properties/AssemblyInfo.cs deleted file mode 100755 index 6d4480c..0000000 --- a/PInvokeSerialPort.Sample/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("PInvokeSerialPort.Sample")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PInvokeSerialPort.Sample")] -[assembly: AssemblyCopyright("Copyright © 2012")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("9628528d-5e4d-4071-aad1-b1f85f3d45d5")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")]