Skip to content

Commit

Permalink
Fixed a bug in PlatformManager.cs:PrintPlatformBanner().
Browse files Browse the repository at this point in the history
Re-added metrics.net, razor, nancy, nancy.customerrors, nancy.hosting.self nuget packages.
  • Loading branch information
Hüseyin Uslu committed Sep 2, 2014
1 parent dd1b129 commit 220714a
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 8 deletions.
26 changes: 26 additions & 0 deletions src/CoiniumServ/App.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key="webPages:Enabled" value="false" />
</appSettings>
<system.web.webPages.razor>
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase">
<namespaces>
<add namespace="Nancy.ViewEngines.Razor" />
</namespaces>
</pages>
</system.web.webPages.razor>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
40 changes: 39 additions & 1 deletion src/CoiniumServ/CoiniumServ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,34 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\HashLib.2.0.1\lib\net40\HashLib.dll</HintPath>
</Reference>
<Reference Include="Metrics, Version=0.1.11.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\Metrics.NET.0.1.11\lib\net45\Metrics.dll</HintPath>
</Reference>
<Reference Include="MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\MySql.Data.6.8.3\lib\net45\MySql.Data.dll</HintPath>
</Reference>
<Reference Include="Nancy, Version=0.23.2.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\Nancy.0.23.2\lib\net40\Nancy.dll</HintPath>
</Reference>
<Reference Include="Nancy.CustomErrors, Version=1.0.6.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\Nancy.CustomErrors.1.0.6.0\lib\net40\Nancy.CustomErrors.dll</HintPath>
</Reference>
<Reference Include="Nancy.Hosting.Self, Version=0.23.2.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\Nancy.Hosting.Self.0.23.2\lib\net40\Nancy.Hosting.Self.dll</HintPath>
</Reference>
<Reference Include="Nancy.Metrics, Version=0.1.11.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\NancyFx.Metrics.0.1.11\lib\net45\Nancy.Metrics.dll</HintPath>
</Reference>
<Reference Include="Nancy.ViewEngines.Razor, Version=0.23.2.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\Nancy.Viewengines.Razor.0.23.2\lib\net40\Nancy.ViewEngines.Razor.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
Expand All @@ -100,6 +124,10 @@
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\packages\Microsoft.AspNet.Razor.3.2.2\lib\net45\System.Web.Razor.dll</HintPath>
</Reference>
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
Expand Down Expand Up @@ -810,7 +838,6 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config" />
<None Include="web.config" />
<None Include="web\default\api.cshtml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -1012,6 +1039,17 @@
if $(ConfigurationName) == Debug (
xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.23.2\BuildProviders\Nancy.ViewEngines.Razor.BuildProviders.dll" "$(ProjectDir)bin\"
xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.23.2\lib\net40\Nancy.ViewEngines.Razor.dll" "$(ProjectDir)bin\"
)</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>
if $(ConfigurationName) == Debug (
xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.23.2\BuildProviders\Nancy.ViewEngines.Razor.BuildProviders.dll" "$(ProjectDir)bin\"
xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.23.2\lib\net40\Nancy.ViewEngines.Razor.dll" "$(ProjectDir)bin\"
)
if $(ConfigurationName) == Debug (
xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.23.2\BuildProviders\Nancy.ViewEngines.Razor.BuildProviders.dll" "$(ProjectDir)bin\"
xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.0.23.2\lib\Net40\Nancy.ViewEngines.Razor.dll" "$(ProjectDir)bin\"
)</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
6 changes: 1 addition & 5 deletions src/CoiniumServ/Utils/Platform/PlatformManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@ public class PlatformManager
/// <value>The mono version.</value>
public static string MonoVersion { get; private set; }

private static readonly ILogger Logger;

static PlatformManager()
{
Logger = Log.ForContext<PlatformManager>();

IdentifyPlatform();
}

public static void PrintPlatformBanner()
{
Logger.Information("Running over {0:l}, framework: {1:l} (v{2:l}).",
Log.ForContext<PlatformManager>().Information("Running over {0:l}, framework: {1:l} (v{2:l}).",
Framework == Frameworks.DotNet ? ".Net" : string.Format("Mono {0}", MonoVersion),
IsDotNet45 ? "4.5" : "4", FrameworkVersion);
}
Expand Down
7 changes: 7 additions & 0 deletions src/CoiniumServ/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
<package id="FluentMigrator.Runner" version="1.3.0.0" targetFramework="net45" />
<package id="FluentMigrator.Tools" version="1.3.0.0" targetFramework="net45" />
<package id="HashLib" version="2.0.1" targetFramework="net45" />
<package id="Metrics.NET" version="0.1.11" targetFramework="net45" />
<package id="Microsoft.AspNet.Razor" version="3.2.2" targetFramework="net45" />
<package id="MySql.Data" version="6.8.3" targetFramework="net45" />
<package id="Nancy" version="0.23.2" targetFramework="net45" />
<package id="Nancy.CustomErrors" version="1.0.6.0" targetFramework="net45" />
<package id="Nancy.Hosting.Self" version="0.23.2" targetFramework="net45" />
<package id="Nancy.Viewengines.Razor" version="0.23.2" targetFramework="net45" />
<package id="NancyFx.Metrics" version="0.1.11" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net45" />
<package id="Serilog" version="1.4.7" targetFramework="net45" />
</packages>
2 changes: 0 additions & 2 deletions src/CoiniumServ/web.config

This file was deleted.

0 comments on commit 220714a

Please sign in to comment.