Permalink
Browse files

Part 2 and VS2010 conversion

  • Loading branch information...
unknown unknown
unknown authored and unknown committed Oct 29, 2011
1 parent 60bd820 commit 1d0adf6329b0e3dba7bd7eb07af3be97f06cb94f
Showing with 253 additions and 45 deletions.
  1. +7 −1 Part1 - Console/Part1 - Console.csproj
  2. BIN Part1 - Console/bin/Debug/Part1 - Console.exe
  3. BIN Part1 - Console/bin/Debug/Part1 - Console.pdb
  4. BIN Part1 - Console/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  5. +5 −0 Part1 - Console/obj/Debug/Part1 - Console.csproj.FileListAbsolute.txt
  6. BIN Part1 - Console/obj/Debug/Part1 - Console.exe
  7. BIN Part1 - Console/obj/Debug/Part1 - Console.pdb
  8. +8 −1 Part1 - GUI/Part1 - GUI.csproj
  9. +19 −27 Part1 - GUI/Properties/Resources.Designer.cs
  10. +10 −14 Part1 - GUI/Properties/Settings.Designer.cs
  11. BIN Part1 - GUI/bin/Debug/Part1 - GUI.exe
  12. BIN Part1 - GUI/bin/Debug/Part1 - GUI.pdb
  13. BIN Part1 - GUI/bin/Debug/Part1 - GUI.vshost.exe
  14. +11 −0 Part1 - GUI/bin/Debug/Part1 - GUI.vshost.exe.manifest
  15. BIN Part1 - GUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  16. BIN Part1 - GUI/obj/Debug/GenerateResource-ResGen.read.1.tlog
  17. BIN Part1 - GUI/obj/Debug/GenerateResource-ResGen.write.1.tlog
  18. +9 −0 Part1 - GUI/obj/Debug/Part1 - GUI.csproj.FileListAbsolute.txt
  19. BIN Part1 - GUI/obj/Debug/Part1 - GUI.exe
  20. BIN Part1 - GUI/obj/Debug/Part1 - GUI.pdb
  21. BIN Part1 - GUI/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
  22. +57 −0 Part2 - Console/Part2 - Console.csproj
  23. +45 −0 Part2 - Console/Program.cs
  24. +36 −0 Part2 - Console/Properties/AssemblyInfo.cs
  25. BIN Part2 - Console/bin/Debug/Part2 - Console.exe
  26. BIN Part2 - Console/bin/Debug/Part2 - Console.pdb
  27. BIN Part2 - Console/bin/Debug/Part2 - Console.vshost.exe
  28. +11 −0 Part2 - Console/bin/Debug/Part2 - Console.vshost.exe.manifest
  29. BIN Part2 - Console/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  30. +5 −0 Part2 - Console/obj/x86/Debug/Part2 - Console.csproj.FileListAbsolute.txt
  31. BIN Part2 - Console/obj/x86/Debug/Part2 - Console.exe
  32. BIN Part2 - Console/obj/x86/Debug/Part2 - Console.pdb
  33. BIN Part2 - Console/obj/x86/Debug/ResolveAssemblyReference.cache
  34. +30 −2 SerialComm in C Sharp.sln
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -9,6 +10,11 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Part1___Console</RootNamespace>
<AssemblyName>Part1 - Console</AssemblyName>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <UpgradeBackupLocation />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,5 @@
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - Console\bin\Debug\Part1 - Console.exe
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - Console\bin\Debug\Part1 - Console.pdb
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - Console\obj\Debug\ResolveAssemblyReference.cache
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - Console\obj\Debug\Part1 - Console.exe
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - Console\obj\Debug\Part1 - Console.pdb
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -9,6 +10,11 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Part1___GUI</RootNamespace>
<AssemblyName>Part1 - GUI</AssemblyName>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>2.0</OldToolsVersion>
+ <UpgradeBackupLocation />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -56,6 +62,7 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
+ <DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+ <security>
+ <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\obj\Debug\Part1 - GUI.exe
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\obj\Debug\Part1 - GUI.pdb
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\bin\Debug\Part1 - GUI.exe
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\bin\Debug\Part1 - GUI.pdb
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\obj\Debug\ResolveAssemblyReference.cache
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\obj\Debug\Part1___GUI.Form1.resources
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\obj\Debug\Part1___GUI.Properties.Resources.resources
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\obj\Debug\GenerateResource-ResGen.read.1.tlog
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part1 - GUI\obj\Debug\GenerateResource-ResGen.write.1.tlog
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{94DBF073-5516-4F44-BF6A-C30EFD0FBFEC}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Part2___Console</RootNamespace>
+ <AssemblyName>Part2 - Console</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.IO.Ports;
+
+namespace Part2___Console
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ string[] serialPorts = SerialPort.GetPortNames();
+
+ Console.WriteLine("SerialComm in C Sharp, Part2 - Console");
+ Console.WriteLine();
+ Console.WriteLine("Select serial port:");
+
+ if (serialPorts.Length == 0)
+ {
+ Console.WriteLine("-- no serial ports found!--");
+ Environment.Exit(1);
+ }
+
+ for (int i = 0; i < serialPorts.Length; i++)
+ Console.WriteLine(i + " - " + serialPorts[i]);
+
+ Console.WriteLine();
+ Console.Write("-> ");
+ int choice = int.Parse(Console.ReadLine());
+
+ SerialPort serialPort = new SerialPort(serialPorts[choice], 9600, Parity.None, 8, StopBits.One);
+ try
+ {
+ serialPort.Open();
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine("open() error: " + ex.Message);
+ Environment.Exit(1);
+ }
+ serialPort.Write("Hello World!");
+ serialPort.Close();
+ }
+ }
+}
@@ -0,0 +1,36 @@
+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("Part2 - Console")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("ING Direct NV")]
+[assembly: AssemblyProduct("Part2 - Console")]
+[assembly: AssemblyCopyright("Copyright © ING Direct NV 2011")]
+[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("2e14385d-fe01-4b9b-96c2-b851ae33624b")]
+
+// 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")]
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+ <security>
+ <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
@@ -0,0 +1,5 @@
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part2 - Console\bin\Debug\Part2 - Console.exe
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part2 - Console\bin\Debug\Part2 - Console.pdb
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part2 - Console\obj\x86\Debug\ResolveAssemblyReference.cache
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part2 - Console\obj\x86\Debug\Part2 - Console.exe
+C:\Users\dentellaluca\Elettronica\Miei progetti\SerialComm in C Sharp\Sw\Part2 - Console\obj\x86\Debug\Part2 - Console.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 1d0adf6

Please sign in to comment.