-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from zarunbal/Development
Release 1.9.0
- Loading branch information
Showing
189 changed files
with
4,204 additions
and
4,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
assembly-versioning-scheme: MajorMinorPatchTag | ||
mode: ContinuousDelivery | ||
branches: {} | ||
ignore: | ||
sha: [] | ||
merge-message-formats: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
install: | ||
- choco install gitversion.portable -pre -y | ||
|
||
before_build: | ||
- nuget restore | ||
- ps: gitversion /l console /output buildserver /updateAssemblyInfo | ||
|
||
build: | ||
project: scr\LogExpert.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.ComponentModel; | ||
|
||
using Nuke.Common.Tooling; | ||
|
||
[TypeConverter(typeof(TypeConverter<Configuration>))] | ||
public class Configuration : Enumeration | ||
{ | ||
public static Configuration Debug = new Configuration { Value = nameof(Debug) }; | ||
public static Configuration Release = new Configuration { Value = nameof(Release) }; | ||
|
||
public static implicit operator string(Configuration configuration) | ||
{ | ||
return configuration.Value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,51 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<RootNamespace></RootNamespace> | ||
<IsPackable>False</IsPackable> | ||
<NoWarn>CS0649;CS0169</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="chocolatey" Version="0.10.14" /> | ||
<PackageReference Include="GitVersion.CommandLine.DotNetCore" Version="5.0.1"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
|
||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<RootNamespace></RootNamespace> | ||
<IsPackable>False</IsPackable> | ||
<NoWarn>CS0649;CS0169</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="chocolatey" Version="1.1.0" /> | ||
<PackageReference Include="GitVersion.CommandLine" Version="5.9.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="GitVersion.Core" Version="5.9.0" /> | ||
<PackageReference Include="NuGet.CommandLine" Version="6.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="NuGet.CommandLine" Version="5.2.1"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Nuke.Common" Version="0.21.2" /> | ||
<PackageReference Include="Nuke.GitHub" Version="1.5.0" /> | ||
<PackageReference Include="NUnit.ConsoleRunner" Version="3.10.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<NukeMetadata Include="**\*.json" Exclude="bin\**;obj\**" /> | ||
<NukeExternalFiles Include="**\*.*.ext" Exclude="bin\**;obj\**" /> | ||
<None Remove="*.csproj.DotSettings;*.ref.*.txt" /> | ||
<None Include="..\appveyor-release.yml" Link="appveyor-release.yml" /> | ||
<None Include="..\Build-DebugPack.ps1" Link="Build-DebugPack.ps1" /> | ||
<None Include="..\Build-ReleasePack.ps1" Link="Build-ReleasePack.ps1" /> | ||
|
||
<!-- Common build related files --> | ||
<None Include="..\build.ps1" /> | ||
<None Include="..\build.sh" /> | ||
<None Include="..\.nuke" /> | ||
<None Include="..\global.json" Condition="Exists('..\global.json')" /> | ||
<None Include="..\nuget.config" Condition="Exists('..\nuget.config')" /> | ||
<None Include="..\azure-pipelines.yml" Condition="Exists('..\azure-pipelines.yml')" /> | ||
<None Include="..\Jenkinsfile" Condition="Exists('..\Jenkinsfile')" /> | ||
<None Include="..\appveyor.yml" Condition="Exists('..\appveyor.yml')" /> | ||
<None Include="..\.travis.yml" Condition="Exists('..\.travis.yml')" /> | ||
<None Include="..\GitVersion.yml" Condition="Exists('..\GitVersion.yml')" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
</PackageReference> | ||
<PackageReference Include="Nuke.Common" Version="5.0.0" /> | ||
<PackageReference Include="Nuke.GitHub" Version="1.5.0" /> | ||
<PackageReference Include="NUnit.ConsoleRunner" Version="3.15.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<NukeMetadata Include="**\*.json" Exclude="bin\**;obj\**" /> | ||
<NukeExternalFiles Include="**\*.*.ext" Exclude="bin\**;obj\**" /> | ||
<None Remove="*.csproj.DotSettings;*.ref.*.txt" /> | ||
<None Include="..\appveyor-release.yml" Link="appveyor-release.yml" /> | ||
<None Include="..\appveyor.gitversion.yml" Link="appveyor.gitversion.yml" /> | ||
<None Include="..\Build-DebugPack.ps1" Link="Build-DebugPack.ps1" /> | ||
<None Include="..\Build-ReleasePack.ps1" Link="Build-ReleasePack.ps1" /> | ||
|
||
<!-- Common build related files --> | ||
<None Include="..\build.ps1" /> | ||
<None Include="..\build.sh" /> | ||
<None Include="..\.nuke" /> | ||
<None Include="..\global.json" Condition="Exists('..\global.json')" /> | ||
<None Include="..\nuget.config" Condition="Exists('..\nuget.config')" /> | ||
<None Include="..\azure-pipelines.yml" Condition="Exists('..\azure-pipelines.yml')" /> | ||
<None Include="..\Jenkinsfile" Condition="Exists('..\Jenkinsfile')" /> | ||
<None Include="..\appveyor.yml" Condition="Exists('..\appveyor.yml')" /> | ||
<None Include="..\.travis.yml" Condition="Exists('..\.travis.yml')" /> | ||
<None Include="..\GitVersion.yml" Condition="Exists('..\GitVersion.yml')" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.IO; | ||
using LogExpert.Config; | ||
using Newtonsoft.Json; | ||
using NUnit.Framework; | ||
|
||
namespace LogExpert.Tests | ||
{ | ||
[TestFixture] | ||
public class JSONSaveTest | ||
{ | ||
[Test(Author = "Hirogen", Description = "Save Options as JSON and Check if the written file can be cast again into the settings object")] | ||
public void SaveOptionsAsJSON() | ||
{ | ||
ConfigManager.Settings.alwaysOnTop = true; | ||
ConfigManager.Save(SettingsFlags.All); | ||
string configDir = ConfigManager.ConfigDir; | ||
string settingsFile = configDir + "\\settings.json"; | ||
|
||
Settings settings = null; | ||
|
||
Assert.DoesNotThrow(CastSettings); | ||
Assert.NotNull(settings); | ||
Assert.True(settings.alwaysOnTop); | ||
|
||
ConfigManager.Settings.alwaysOnTop = false; | ||
ConfigManager.Save(SettingsFlags.All); | ||
|
||
settings = null; | ||
Assert.DoesNotThrow(CastSettings); | ||
Assert.NotNull(settings); | ||
Assert.False(settings.alwaysOnTop); | ||
|
||
|
||
void CastSettings() | ||
{ | ||
settings = JsonConvert.DeserializeObject<Settings>(File.ReadAllText(settingsFile)); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.