diff --git a/dotnet/ReportGenerator-CS/Properties/AssemblyInfo.cs b/dotnet/ReportGenerator-CS/Properties/AssemblyInfo.cs deleted file mode 100755 index f00d720..0000000 --- a/dotnet/ReportGenerator-CS/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Reflection; -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("Factory")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("Factory")] -[assembly: AssemblyCopyright("Copyright © Microsoft 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("2cc2454a-91ba-46ef-b6e5-df8778a52ab8")] - -// 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")] \ No newline at end of file diff --git a/dotnet/ReportGenerator-CS/ReportGenerator-CS.csproj b/dotnet/ReportGenerator-CS/ReportGenerator-CS.csproj deleted file mode 100755 index 95ef011..0000000 --- a/dotnet/ReportGenerator-CS/ReportGenerator-CS.csproj +++ /dev/null @@ -1,58 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {A544A661-A053-404A-BE68-190687ACDEF7} - Library - Properties - ReportGeneratorCS - ReportGeneratorCS - v3.5 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - False - ..\lib\nunit.framework.dll - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dotnet/ReportGenerator-CS/Tests/ReportTest.cs b/dotnet/ReportGenerator-CS/ReportTest.cs similarity index 100% rename from dotnet/ReportGenerator-CS/Tests/ReportTest.cs rename to dotnet/ReportGenerator-CS/ReportTest.cs diff --git a/dotnet/ReportGenerator-CS/Tests/RobotTest.cs b/dotnet/ReportGenerator-CS/RobotTest.cs similarity index 100% rename from dotnet/ReportGenerator-CS/Tests/RobotTest.cs rename to dotnet/ReportGenerator-CS/RobotTest.cs diff --git a/dotnet/ReportGenerator-VB/My Project/Application.Designer.vb b/dotnet/ReportGenerator-VB/My Project/Application.Designer.vb deleted file mode 100755 index 0f45def..0000000 --- a/dotnet/ReportGenerator-VB/My Project/Application.Designer.vb +++ /dev/null @@ -1,13 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:2.0.50727.5446 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - diff --git a/dotnet/ReportGenerator-VB/My Project/Application.myapp b/dotnet/ReportGenerator-VB/My Project/Application.myapp deleted file mode 100755 index 0167050..0000000 --- a/dotnet/ReportGenerator-VB/My Project/Application.myapp +++ /dev/null @@ -1,10 +0,0 @@ - - - false - false - 0 - true - 0 - 1 - true - diff --git a/dotnet/ReportGenerator-VB/My Project/AssemblyInfo.vb b/dotnet/ReportGenerator-VB/My Project/AssemblyInfo.vb deleted file mode 100755 index a29600e..0000000 --- a/dotnet/ReportGenerator-VB/My Project/AssemblyInfo.vb +++ /dev/null @@ -1,35 +0,0 @@ -Imports System -Imports System.Reflection -Imports 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. - -' Review the values of the assembly attributes - - - - - - - - - - -'The following GUID is for the ID of the typelib if this project is exposed to COM - - -' 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: -' - - - diff --git a/dotnet/ReportGenerator-VB/My Project/Resources.Designer.vb b/dotnet/ReportGenerator-VB/My Project/Resources.Designer.vb deleted file mode 100755 index fbd54a9..0000000 --- a/dotnet/ReportGenerator-VB/My Project/Resources.Designer.vb +++ /dev/null @@ -1,63 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:2.0.50727.5446 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - -Imports System - -Namespace My.Resources - - 'This class was auto-generated by the StronglyTypedResourceBuilder - 'class via a tool like ResGen or Visual Studio. - 'To add or remove a member, edit your .ResX file then rerun ResGen - 'with the /str option, or rebuild your VS project. - ''' - ''' A strongly-typed resource class, for looking up localized strings, etc. - ''' - _ - Friend Module Resources - - Private resourceMan As Global.System.Resources.ResourceManager - - Private resourceCulture As Global.System.Globalization.CultureInfo - - ''' - ''' Returns the cached ResourceManager instance used by this class. - ''' - _ - Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager - Get - If Object.ReferenceEquals(resourceMan, Nothing) Then - Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ReportGeneratorVB.Resources", GetType(Resources).Assembly) - resourceMan = temp - End If - Return resourceMan - End Get - End Property - - ''' - ''' Overrides the current thread's CurrentUICulture property for all - ''' resource lookups using this strongly typed resource class. - ''' - _ - Friend Property Culture() As Global.System.Globalization.CultureInfo - Get - Return resourceCulture - End Get - Set - resourceCulture = value - End Set - End Property - End Module -End Namespace diff --git a/dotnet/ReportGenerator-VB/My Project/Resources.resx b/dotnet/ReportGenerator-VB/My Project/Resources.resx deleted file mode 100755 index ffecec8..0000000 --- a/dotnet/ReportGenerator-VB/My Project/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/dotnet/ReportGenerator-VB/My Project/Settings.Designer.vb b/dotnet/ReportGenerator-VB/My Project/Settings.Designer.vb deleted file mode 100755 index 58e9431..0000000 --- a/dotnet/ReportGenerator-VB/My Project/Settings.Designer.vb +++ /dev/null @@ -1,73 +0,0 @@ -'------------------------------------------------------------------------------ -' -' This code was generated by a tool. -' Runtime Version:2.0.50727.5446 -' -' Changes to this file may cause incorrect behavior and will be lost if -' the code is regenerated. -' -'------------------------------------------------------------------------------ - -Option Strict On -Option Explicit On - - -Namespace My - - _ - Partial Friend NotInheritable Class MySettings - Inherits Global.System.Configuration.ApplicationSettingsBase - - Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings),MySettings) - -#Region "My.Settings Auto-Save Functionality" -#If _MyType = "WindowsForms" Then - Private Shared addedHandler As Boolean - - Private Shared addedHandlerLockObject As New Object - - _ - Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) - If My.Application.SaveMySettingsOnExit Then - My.Settings.Save() - End If - End Sub -#End If -#End Region - - Public Shared ReadOnly Property [Default]() As MySettings - Get - -#If _MyType = "WindowsForms" Then - If Not addedHandler Then - SyncLock addedHandlerLockObject - If Not addedHandler Then - AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings - addedHandler = True - End If - End SyncLock - End If -#End If - Return defaultInstance - End Get - End Property - End Class -End Namespace - -Namespace My - - _ - Friend Module MySettingsProperty - - _ - Friend ReadOnly Property Settings() As Global.ReportGeneratorVB.My.MySettings - Get - Return Global.ReportGeneratorVB.My.MySettings.Default - End Get - End Property - End Module -End Namespace diff --git a/dotnet/ReportGenerator-VB/My Project/Settings.settings b/dotnet/ReportGenerator-VB/My Project/Settings.settings deleted file mode 100755 index 377f56d..0000000 --- a/dotnet/ReportGenerator-VB/My Project/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/dotnet/ReportGenerator-VB/ReportGenerator-VB.vbproj b/dotnet/ReportGenerator-VB/ReportGenerator-VB.vbproj deleted file mode 100755 index 5c0d3da..0000000 --- a/dotnet/ReportGenerator-VB/ReportGenerator-VB.vbproj +++ /dev/null @@ -1,115 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {82BA2937-87D4-4667-9751-B8F071F6736E} - Library - ReportGeneratorVB - ReportGeneratorVB - 512 - Windows - v3.5 - On - Binary - Off - On - - - true - full - true - true - bin\Debug\ - ReportGeneratorVB.xml - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - - - pdbonly - false - true - true - bin\Release\ - ReportGeneratorVB.xml - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - - - - False - ..\lib\nunit.framework.dll - - - - - - 3.5 - - - 3.5 - - - 3.5 - - - - - - - - - - - - - - - - - True - Application.myapp - - - True - True - Resources.resx - - - True - Settings.settings - True - - - - - - - - - VbMyResourcesResXFileCodeGenerator - Resources.Designer.vb - My.Resources - Designer - - - - - MyApplicationCodeGenerator - Application.Designer.vb - - - SettingsSingleFileGenerator - My - Settings.Designer.vb - - - - - \ No newline at end of file diff --git a/dotnet/ReportGenerator-VB/Tests/ReportTest.vb b/dotnet/ReportGenerator-VB/ReportTest.vb similarity index 100% rename from dotnet/ReportGenerator-VB/Tests/ReportTest.vb rename to dotnet/ReportGenerator-VB/ReportTest.vb diff --git a/dotnet/ReportGenerator-VB/Tests/RobotTest.vb b/dotnet/ReportGenerator-VB/RobotTest.vb similarity index 100% rename from dotnet/ReportGenerator-VB/Tests/RobotTest.vb rename to dotnet/ReportGenerator-VB/RobotTest.vb diff --git a/dotnet/Reporting-VS2008.sln b/dotnet/Reporting-VS2008.sln deleted file mode 100755 index 84bfb1f..0000000 --- a/dotnet/Reporting-VS2008.sln +++ /dev/null @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual Studio 2008 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReportGenerator-CS", "ReportGenerator-CS\ReportGenerator-CS.csproj", "{A544A661-A053-404A-BE68-190687ACDEF7}" -EndProject -Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ReportGenerator-VB", "ReportGenerator-VB\ReportGenerator-VB.vbproj", "{82BA2937-87D4-4667-9751-B8F071F6736E}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A544A661-A053-404A-BE68-190687ACDEF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A544A661-A053-404A-BE68-190687ACDEF7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A544A661-A053-404A-BE68-190687ACDEF7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A544A661-A053-404A-BE68-190687ACDEF7}.Release|Any CPU.Build.0 = Release|Any CPU - {82BA2937-87D4-4667-9751-B8F071F6736E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {82BA2937-87D4-4667-9751-B8F071F6736E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {82BA2937-87D4-4667-9751-B8F071F6736E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {82BA2937-87D4-4667-9751-B8F071F6736E}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/dotnet/running-code-readme.txt b/dotnet/running-code-readme.txt new file mode 100644 index 0000000..de5f587 --- /dev/null +++ b/dotnet/running-code-readme.txt @@ -0,0 +1,41 @@ +Windows - Creating Visual Studio +================================ +C# and VB.net Steps below for C# change paths and project types for VB + 1. Open Visual Studio, Create new Project + File -> new -> Project and choose a SolutionName, Location and ProjectName + + 2. Add files to project for directory ~/xp123/dotnet/ReportGenerator-CS/* + Project -> Add Existing Item + Machine.cs, Robot.cs, Report.cs, + RobotTest.cs, ReportTest.cs + + 3. Add reference nunit.framework.dll + Project -> Add Reference + ~/xp123/lib/nunit.framework.dll + + 4. Compile source code + Build -> Build Solution + + 5. Run unit tests in test runner of your choice (Resharper, nunit-gui, nunit-console) + + 6. Refactor code and repeat steps 4 and 5 + +Mono +==== +C# Only + 1. Open shell move Working Directory to + ~/xp123/dotnet/ReportGenerator-CS + + 2. Create bin directotory + mkdir bin + + 3. Copy nunit.framework.dll into bin directory + cp ../lib/nunit.framework.dll bin/. + + 4. Compile source code into bin + gmcs -t:library -r:../lib/nunit.framework.dll -recurse:*.cs -out:bin/ReportGenerator.dll + + 5. Run unit tests + nunit-console bin/ReportGenerator.dll + + 6. Refactor code and repeat steps 4 and 5