Restructured Solution, command line app is now test host for the actual DLL.
This commit is contained in:
		
							
								
								
									
										6
									
								
								NAV Source Control Test Host/App.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								NAV Source Control Test Host/App.config
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8" ?>
 | 
			
		||||
<configuration>
 | 
			
		||||
    <startup> 
 | 
			
		||||
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
 | 
			
		||||
    </startup>
 | 
			
		||||
</configuration>
 | 
			
		||||
							
								
								
									
										43
									
								
								NAV Source Control Test Host/Config Files/log4net.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								NAV Source Control Test Host/Config Files/log4net.config
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,43 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8" ?>
 | 
			
		||||
<log4net>
 | 
			
		||||
  <appender name="Console" type="log4net.Appender.ColoredConsoleAppender">
 | 
			
		||||
    <layout type="log4net.Layout.PatternLayout">
 | 
			
		||||
      <conversionPattern value="%-5timestamp [%thread] %-5level %logger - %message%newline" />
 | 
			
		||||
    </layout>
 | 
			
		||||
    <mapping>
 | 
			
		||||
      <level value="ERROR" />
 | 
			
		||||
      <foreColor value="Red, HighIntensity" />
 | 
			
		||||
    </mapping>
 | 
			
		||||
    <mapping>
 | 
			
		||||
      <level value="WARN" />
 | 
			
		||||
      <foreColor value="Yellow, HighIntensity" />
 | 
			
		||||
    </mapping>
 | 
			
		||||
  </appender>
 | 
			
		||||
 | 
			
		||||
  <!-- Optional - for performance Reasons, enable via root logger instead of RollingFile if desired-->
 | 
			
		||||
  <appender name="BufferingForwardingAppender" type="log4net.Appender.BufferingForwardingAppender">
 | 
			
		||||
    <appender-ref ref="RollingFile" />
 | 
			
		||||
    <bufferSize value="64" />
 | 
			
		||||
    <evaluator type="log4net.Core.LevelEvaluator">
 | 
			
		||||
      <threshold value="ERROR"/>
 | 
			
		||||
    </evaluator>
 | 
			
		||||
  </appender>
 | 
			
		||||
 | 
			
		||||
  <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
 | 
			
		||||
    <file value="vcs.log" />
 | 
			
		||||
    <appendToFile value="true" />
 | 
			
		||||
    <maximumFileSize value="100KB" />
 | 
			
		||||
    <maxSizeRollBackups value="2" />
 | 
			
		||||
 | 
			
		||||
    <layout type="log4net.Layout.PatternLayout">
 | 
			
		||||
      <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
 | 
			
		||||
    </layout>
 | 
			
		||||
  </appender>
 | 
			
		||||
 | 
			
		||||
  <root>
 | 
			
		||||
    <level value="DEBUG" />
 | 
			
		||||
    <appender-ref ref="Console" />
 | 
			
		||||
    <!-- appender-ref ref="BufferingForwardingAppender" / -->
 | 
			
		||||
    <appender-ref ref="RollingFile" />
 | 
			
		||||
  </root>
 | 
			
		||||
</log4net>
 | 
			
		||||
@@ -0,0 +1,68 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
			
		||||
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
 | 
			
		||||
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
 | 
			
		||||
    <ProjectGuid>{E0BED7B8-729A-4AA4-83A3-2F0EC569728E}</ProjectGuid>
 | 
			
		||||
    <OutputType>Exe</OutputType>
 | 
			
		||||
    <AppDesignerFolder>Properties</AppDesignerFolder>
 | 
			
		||||
    <RootNamespace>NAVSCM</RootNamespace>
 | 
			
		||||
    <AssemblyName>NAV Source Control Test Host</AssemblyName>
 | 
			
		||||
    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
 | 
			
		||||
    <FileAlignment>512</FileAlignment>
 | 
			
		||||
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
 | 
			
		||||
    <PlatformTarget>AnyCPU</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|AnyCPU' ">
 | 
			
		||||
    <PlatformTarget>AnyCPU</PlatformTarget>
 | 
			
		||||
    <DebugType>pdbonly</DebugType>
 | 
			
		||||
    <Optimize>true</Optimize>
 | 
			
		||||
    <OutputPath>bin\Release\</OutputPath>
 | 
			
		||||
    <DefineConstants>TRACE</DefineConstants>
 | 
			
		||||
    <ErrorReport>prompt</ErrorReport>
 | 
			
		||||
    <WarningLevel>4</WarningLevel>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Reference Include="log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
 | 
			
		||||
      <HintPath>..\packages\log4net.2.0.5\lib\net45-full\log4net.dll</HintPath>
 | 
			
		||||
      <Private>True</Private>
 | 
			
		||||
    </Reference>
 | 
			
		||||
    <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.Net.Http" />
 | 
			
		||||
    <Reference Include="System.Xml" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Compile Include="Program.cs" />
 | 
			
		||||
    <Compile Include="Properties\AssemblyInfo.cs" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <None Include="App.config" />
 | 
			
		||||
    <None Include="Config Files\log4net.config">
 | 
			
		||||
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
 | 
			
		||||
    </None>
 | 
			
		||||
    <None Include="packages.config" />
 | 
			
		||||
  </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>
 | 
			
		||||
							
								
								
									
										26
									
								
								NAV Source Control Test Host/Program.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								NAV Source Control Test Host/Program.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using log4net;
 | 
			
		||||
 | 
			
		||||
namespace NAVSCM.TestHost
 | 
			
		||||
{
 | 
			
		||||
    class Program
 | 
			
		||||
    {
 | 
			
		||||
        private static readonly ILog log = LogManager.GetLogger(typeof(Program));
 | 
			
		||||
 | 
			
		||||
        static void Main(string[] args)
 | 
			
		||||
        {
 | 
			
		||||
            log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo("Config Files\\log4net.config"));
 | 
			
		||||
 | 
			
		||||
            log.Info("Starting up...");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            log.Info("Shutting down...");
 | 
			
		||||
 | 
			
		||||
            Console.ReadLine();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										36
									
								
								NAV Source Control Test Host/Properties/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								NAV Source Control Test Host/Properties/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
			
		||||
using System.Reflection;
 | 
			
		||||
using System.Runtime.CompilerServices;
 | 
			
		||||
using System.Runtime.InteropServices;
 | 
			
		||||
 | 
			
		||||
// Allgemeine Informationen über eine Assembly werden über die folgenden 
 | 
			
		||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
 | 
			
		||||
// die einer Assembly zugeordnet sind.
 | 
			
		||||
[assembly: AssemblyTitle("NAV Source Control")]
 | 
			
		||||
[assembly: AssemblyDescription("")]
 | 
			
		||||
[assembly: AssemblyConfiguration("")]
 | 
			
		||||
[assembly: AssemblyCompany("")]
 | 
			
		||||
[assembly: AssemblyProduct("NAV Source Control")]
 | 
			
		||||
[assembly: AssemblyCopyright("Copyright ©  2016")]
 | 
			
		||||
[assembly: AssemblyTrademark("")]
 | 
			
		||||
[assembly: AssemblyCulture("")]
 | 
			
		||||
 | 
			
		||||
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar 
 | 
			
		||||
// für COM-Komponenten.  Wenn Sie auf einen Typ in dieser Assembly von 
 | 
			
		||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
 | 
			
		||||
[assembly: ComVisible(false)]
 | 
			
		||||
 | 
			
		||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
 | 
			
		||||
[assembly: Guid("e0bed7b8-729a-4aa4-83a3-2f0ec569728e")]
 | 
			
		||||
 | 
			
		||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
 | 
			
		||||
//
 | 
			
		||||
//      Hauptversion
 | 
			
		||||
//      Nebenversion 
 | 
			
		||||
//      Buildnummer
 | 
			
		||||
//      Revision
 | 
			
		||||
//
 | 
			
		||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern 
 | 
			
		||||
// übernehmen, indem Sie "*" eingeben:
 | 
			
		||||
// [assembly: AssemblyVersion("1.0.*")]
 | 
			
		||||
[assembly: AssemblyVersion("1.0.0.0")]
 | 
			
		||||
[assembly: AssemblyFileVersion("1.0.0.0")]
 | 
			
		||||
							
								
								
									
										4
									
								
								NAV Source Control Test Host/packages.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								NAV Source Control Test Host/packages.config
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<packages>
 | 
			
		||||
  <package id="log4net" version="2.0.5" targetFramework="net452" />
 | 
			
		||||
</packages>
 | 
			
		||||
		Reference in New Issue
	
	Block a user