Skip to content

Commit

Permalink
serialziation issue fixed. fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
abhith committed Dec 22, 2018
1 parent 169923a commit add5c88
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 65 deletions.
8 changes: 8 additions & 0 deletions src/Code.Library.Docs/Code.Library.Docs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
<UserSecretsId>ebc77ad9-f058-478c-9e78-1b5ba77bd814</UserSecretsId>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions src/Code.Library.Tests/Code.Library.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>

<ItemGroup>
<Compile Remove="Helpers\StringHelperTests.cs" />
<Compile Remove="Helpers\ValidationHelperTests.cs" />
Expand Down
8 changes: 4 additions & 4 deletions src/Code.Library/Code.Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<Version>2.0.0-beta.3</Version>
<Version>2.0.0-beta.4</Version>
<Authors>abhith</Authors>
<Description>Some useful C# helper classes and methods.</Description>
<PackageProjectUrl>https://github.com/Abhith/Code.Library</PackageProjectUrl>
<PackageProjectUrl>https://code-library.abhith.net</PackageProjectUrl>
<RepositoryUrl>https://github.com/Abhith/Code.Library</RepositoryUrl>
<PackageReleaseNotes></PackageReleaseNotes>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
<CodeAnalysisRuleSet>Code.Library.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet></CodeAnalysisRuleSet>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">
<CodeAnalysisRuleSet>Code.Library.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet></CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
Expand Down
37 changes: 0 additions & 37 deletions src/Code.Library/Helpers/ControlsHelper.cs

This file was deleted.

21 changes: 0 additions & 21 deletions src/Code.Library/Helpers/ExceptionHelper.cs

This file was deleted.

6 changes: 3 additions & 3 deletions src/Code.Library/Models/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public T Value
get
{
if (!IsSuccess)
throw new InvalidOperationException("There is no value for failure.");
return default(T);

return _value;
}
Expand Down Expand Up @@ -238,7 +238,7 @@ public TValue Value
get
{
if (!IsSuccess)
throw new InvalidOperationException("There is no value for failure.");
return default(TValue);

return _value;
}
Expand Down Expand Up @@ -334,7 +334,7 @@ public TError Error
get
{
if (IsSuccess)
throw new InvalidOperationException("There is no error message for success.");
return default(TError);

return _error;
}
Expand Down

0 comments on commit add5c88

Please sign in to comment.