Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## files generated by popular Visual Studio add-ons.

# User-specific files
.vs/
*.suo
*.user
*.sln.docstates
Expand Down Expand Up @@ -96,7 +97,8 @@ publish/

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/
packages/
.nuget/

# Windows Azure Build Output
csx
Expand Down
4 changes: 0 additions & 4 deletions .nuget/packages.config

This file was deleted.

34 changes: 16 additions & 18 deletions CodeGuard.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
# Visual Studio 15
VisualStudioVersion = 15.0.27428.2037
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Seterlund.CodeGuard", "CodeGuard\Seterlund.CodeGuard.csproj", "{534D625B-C310-4A98-8E05-1806E7AE389F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Seterlund.CodeGuard.UnitTests", "UnitTests\Seterlund.CodeGuard.UnitTests.csproj", "{B7F516F7-E137-4922-B119-C87FFCDA8BBB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{96AC009B-2319-4A8C-B041-5294C8C1FA0F}"
ProjectSection(SolutionItems) = preProject
CodeGuard.vsmdi = CodeGuard.vsmdi
Expand All @@ -17,29 +13,31 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{FF11F4C5-F6B5-4602-8BAB-3D3E003A8926}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Seterlund.CodeGuard", "CodeGuard\Seterlund.CodeGuard.csproj", "{574D0826-8269-4B3F-A323-F0C455B5D4A6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Seterlund.CodeGuard.UnitTests", "UnitTests\Seterlund.CodeGuard.UnitTests.csproj", "{48F97F31-E9E9-4D52-AB96-1CC70C0827BD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{534D625B-C310-4A98-8E05-1806E7AE389F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{534D625B-C310-4A98-8E05-1806E7AE389F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{534D625B-C310-4A98-8E05-1806E7AE389F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{534D625B-C310-4A98-8E05-1806E7AE389F}.Release|Any CPU.Build.0 = Release|Any CPU
{B7F516F7-E137-4922-B119-C87FFCDA8BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B7F516F7-E137-4922-B119-C87FFCDA8BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7F516F7-E137-4922-B119-C87FFCDA8BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B7F516F7-E137-4922-B119-C87FFCDA8BBB}.Release|Any CPU.Build.0 = Release|Any CPU
{574D0826-8269-4B3F-A323-F0C455B5D4A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{574D0826-8269-4B3F-A323-F0C455B5D4A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{574D0826-8269-4B3F-A323-F0C455B5D4A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{574D0826-8269-4B3F-A323-F0C455B5D4A6}.Release|Any CPU.Build.0 = Release|Any CPU
{48F97F31-E9E9-4D52-AB96-1CC70C0827BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{48F97F31-E9E9-4D52-AB96-1CC70C0827BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{48F97F31-E9E9-4D52-AB96-1CC70C0827BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{48F97F31-E9E9-4D52-AB96-1CC70C0827BD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {61B83B09-35B8-411B-BDB2-2B481E10C655}
EndGlobalSection
GlobalSection(CodealikeProperties) = postSolution
SolutionGuid = 9f50192f-59e9-4b4e-b3eb-19272024fdac
EndGlobalSection
Expand Down
36 changes: 0 additions & 36 deletions CodeGuard/Properties/AssemblyInfo.cs

This file was deleted.

202 changes: 29 additions & 173 deletions CodeGuard/Seterlund.CodeGuard.csproj
Original file line number Diff line number Diff line change
@@ -1,177 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{534D625B-C310-4A98-8E05-1806E7AE389F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Seterlund.CodeGuard</RootNamespace>
<AssemblyName>Seterlund.CodeGuard</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<CodeContractsAssemblyMode>0</CodeContractsAssemblyMode>
<TargetFramework>netstandard2.0</TargetFramework>
<Company>Per Ivar Seterlund</Company>
<FileVersion>2.4.0.0</FileVersion>
<AssemblyVersion>2.4.0.0</AssemblyVersion>
<Product>CodeGuard</Product>
<PackageId>MetaFight.CodeGuard</PackageId>
<Authors>Per Ivar Seterlund</Authors>
<AssemblyName>CodeGuard</AssemblyName>
<Description>Guard and Validator library.
Example: Guard.That(arg1).IsNotNull().GreaterThan(100);
Throws an exception if conditions are not met.
Supports the ability to get a list of the failed conditions.</Description>
<Copyright>Copyright Per Ivar Seterlund © 2011-2018</Copyright>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.4.0</Version>
<PackageLicenseUrl>https://raw.githubusercontent.com/MetaFight/Guard/master/License.txt</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/MetaFight/Guard</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/MetaFight/Guard/master/Images/shield2.png</PackageIconUrl>
<PackageTags>Argument Guard Validation</PackageTags>
<PackageReleaseNotes>The original project seemed dead, so I've forked it and converted it to netstandard project.
</PackageReleaseNotes>
<RepositoryUrl></RepositoryUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<CodeContractsEnableRuntimeChecking>False</CodeContractsEnableRuntimeChecking>
<CodeContractsRuntimeOnlyPublicSurface>False</CodeContractsRuntimeOnlyPublicSurface>
<CodeContractsRuntimeThrowOnFailure>True</CodeContractsRuntimeThrowOnFailure>
<CodeContractsRuntimeCallSiteRequires>False</CodeContractsRuntimeCallSiteRequires>
<CodeContractsRuntimeSkipQuantifiers>False</CodeContractsRuntimeSkipQuantifiers>
<CodeContractsRunCodeAnalysis>True</CodeContractsRunCodeAnalysis>
<CodeContractsNonNullObligations>True</CodeContractsNonNullObligations>
<CodeContractsBoundsObligations>True</CodeContractsBoundsObligations>
<CodeContractsArithmeticObligations>True</CodeContractsArithmeticObligations>
<CodeContractsEnumObligations>True</CodeContractsEnumObligations>
<CodeContractsRedundantAssumptions>False</CodeContractsRedundantAssumptions>
<CodeContractsAssertsToContractsCheckBox>False</CodeContractsAssertsToContractsCheckBox>
<CodeContractsRedundantTests>True</CodeContractsRedundantTests>
<CodeContractsMissingPublicRequiresAsWarnings>True</CodeContractsMissingPublicRequiresAsWarnings>
<CodeContractsMissingPublicEnsuresAsWarnings>True</CodeContractsMissingPublicEnsuresAsWarnings>
<CodeContractsInferRequires>True</CodeContractsInferRequires>
<CodeContractsInferEnsures>True</CodeContractsInferEnsures>
<CodeContractsInferEnsuresAutoProperties>True</CodeContractsInferEnsuresAutoProperties>
<CodeContractsInferObjectInvariants>True</CodeContractsInferObjectInvariants>
<CodeContractsSuggestAssumptions>False</CodeContractsSuggestAssumptions>
<CodeContractsSuggestAssumptionsForCallees>False</CodeContractsSuggestAssumptionsForCallees>
<CodeContractsSuggestRequires>False</CodeContractsSuggestRequires>
<CodeContractsNecessaryEnsures>True</CodeContractsNecessaryEnsures>
<CodeContractsSuggestObjectInvariants>False</CodeContractsSuggestObjectInvariants>
<CodeContractsSuggestReadonly>False</CodeContractsSuggestReadonly>
<CodeContractsRunInBackground>True</CodeContractsRunInBackground>
<CodeContractsShowSquigglies>True</CodeContractsShowSquigglies>
<CodeContractsUseBaseLine>False</CodeContractsUseBaseLine>
<CodeContractsEmitXMLDocs>False</CodeContractsEmitXMLDocs>
<CodeContractsCustomRewriterAssembly />
<CodeContractsCustomRewriterClass />
<CodeContractsLibPaths />
<CodeContractsExtraRewriteOptions />
<CodeContractsExtraAnalysisOptions />
<CodeContractsSQLServerOption />
<CodeContractsBaseLineFile />
<CodeContractsCacheAnalysisResults>True</CodeContractsCacheAnalysisResults>
<CodeContractsSkipAnalysisIfCannotConnectToCache>False</CodeContractsSkipAnalysisIfCannotConnectToCache>
<CodeContractsFailBuildOnWarnings>False</CodeContractsFailBuildOnWarnings>
<CodeContractsBeingOptimisticOnExternal>True</CodeContractsBeingOptimisticOnExternal>
<CodeContractsRuntimeCheckingLevel>Full</CodeContractsRuntimeCheckingLevel>
<CodeContractsReferenceAssembly>Build</CodeContractsReferenceAssembly>
<CodeContractsAnalysisWarningLevel>0</CodeContractsAnalysisWarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<CodeContractsEnableRuntimeChecking>False</CodeContractsEnableRuntimeChecking>
<CodeContractsRuntimeOnlyPublicSurface>False</CodeContractsRuntimeOnlyPublicSurface>
<CodeContractsRuntimeThrowOnFailure>True</CodeContractsRuntimeThrowOnFailure>
<CodeContractsRuntimeCallSiteRequires>False</CodeContractsRuntimeCallSiteRequires>
<CodeContractsRuntimeSkipQuantifiers>False</CodeContractsRuntimeSkipQuantifiers>
<CodeContractsRunCodeAnalysis>False</CodeContractsRunCodeAnalysis>
<CodeContractsNonNullObligations>True</CodeContractsNonNullObligations>
<CodeContractsBoundsObligations>True</CodeContractsBoundsObligations>
<CodeContractsArithmeticObligations>True</CodeContractsArithmeticObligations>
<CodeContractsEnumObligations>True</CodeContractsEnumObligations>
<CodeContractsRedundantAssumptions>False</CodeContractsRedundantAssumptions>
<CodeContractsAssertsToContractsCheckBox>False</CodeContractsAssertsToContractsCheckBox>
<CodeContractsRedundantTests>True</CodeContractsRedundantTests>
<CodeContractsMissingPublicRequiresAsWarnings>True</CodeContractsMissingPublicRequiresAsWarnings>
<CodeContractsMissingPublicEnsuresAsWarnings>True</CodeContractsMissingPublicEnsuresAsWarnings>
<CodeContractsInferRequires>True</CodeContractsInferRequires>
<CodeContractsInferEnsures>True</CodeContractsInferEnsures>
<CodeContractsInferEnsuresAutoProperties>True</CodeContractsInferEnsuresAutoProperties>
<CodeContractsInferObjectInvariants>True</CodeContractsInferObjectInvariants>
<CodeContractsSuggestAssumptions>False</CodeContractsSuggestAssumptions>
<CodeContractsSuggestAssumptionsForCallees>False</CodeContractsSuggestAssumptionsForCallees>
<CodeContractsSuggestRequires>False</CodeContractsSuggestRequires>
<CodeContractsNecessaryEnsures>True</CodeContractsNecessaryEnsures>
<CodeContractsSuggestObjectInvariants>False</CodeContractsSuggestObjectInvariants>
<CodeContractsSuggestReadonly>True</CodeContractsSuggestReadonly>
<CodeContractsRunInBackground>True</CodeContractsRunInBackground>
<CodeContractsShowSquigglies>True</CodeContractsShowSquigglies>
<CodeContractsUseBaseLine>False</CodeContractsUseBaseLine>
<CodeContractsEmitXMLDocs>False</CodeContractsEmitXMLDocs>
<CodeContractsCustomRewriterAssembly />
<CodeContractsCustomRewriterClass />
<CodeContractsLibPaths />
<CodeContractsExtraRewriteOptions />
<CodeContractsExtraAnalysisOptions />
<CodeContractsSQLServerOption />
<CodeContractsBaseLineFile />
<CodeContractsCacheAnalysisResults>True</CodeContractsCacheAnalysisResults>
<CodeContractsSkipAnalysisIfCannotConnectToCache>False</CodeContractsSkipAnalysisIfCannotConnectToCache>
<CodeContractsFailBuildOnWarnings>False</CodeContractsFailBuildOnWarnings>
<CodeContractsBeingOptimisticOnExternal>True</CodeContractsBeingOptimisticOnExternal>
<CodeContractsRuntimeCheckingLevel>Full</CodeContractsRuntimeCheckingLevel>
<CodeContractsReferenceAssembly>Build</CodeContractsReferenceAssembly>
<CodeContractsAnalysisWarningLevel>0</CodeContractsAnalysisWarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>

<ItemGroup>
<Compile Include="Validators\CollectionValidatorExtensions.cs" />
<Compile Include="Validators\ArrayValidatorExtensions.cs" />
<Compile Include="Validators\EnumValidatorExtensions.cs" />
<Compile Include="ErrorInfo.cs" />
<Compile Include="Exceptions\ArgumentOutOfRangeExceptionFactory.cs" />
<Compile Include="Internals\ArgName.cs" />
<Compile Include="Internals\ArgNameExpression.cs" />
<Compile Include="Internals\ArgNameFunc.cs" />
<Compile Include="Internals\ArgBaseExpression.cs" />
<Compile Include="Internals\ErrorMessageFactory.cs" />
<Compile Include="Internals\Portability.cs" />
<Compile Include="Internals\StringExtensions.cs" />
<Compile Include="Internals\EnumExtensions.cs" />
<Compile Include="Internals\MemberInfoReader.cs" />
<Compile Include="Validators\NullableValidatorExtensions.cs" />
<Compile Include="Internals\ArgBase.cs" />
<Compile Include="Internals\AccumulateErrorsArg.cs" />
<Compile Include="Internals\ThrowOnFirstErrorArg.cs" />
<Compile Include="Validators\EnumerableValidatorExtensions.cs" />
<Compile Include="Validators\GuidValidatorExtensions.cs" />
<Compile Include="IArg.cs" />
<Compile Include="Internals\ErrorHandlerBase.cs" />
<Compile Include="Internals\SaveMessageHandler.cs" />
<Compile Include="Internals\IMessageHandler.cs" />
<Compile Include="Internals\ThrowMessageHandler.cs" />
<Compile Include="Validate.cs" />
<Compile Include="Validators\ObjectValidatorExtensions.cs" />
<Compile Include="Validators\IntegerValidatorExtensions.cs" />
<Compile Include="Internals\MathUtil.cs" />
<Compile Include="Validators\BooleanValidatorExtensions.cs" />
<Compile Include="Validators\ClassValidatorExtensions.cs" />
<Compile Include="Guard.cs" />
<Compile Include="Validators\ComparableValidatorExtensions.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Validators\StringValidatorExtensions.cs" />
<Folder Include="Properties\" />
</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>

</Project>
6 changes: 0 additions & 6 deletions CodeGuard/Seterlund.CodeGuard.csproj.user

This file was deleted.

1 change: 0 additions & 1 deletion NuGet/.gitignore

This file was deleted.

Binary file removed NuGet/Seterlund.CodeGuard.1.0.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.1.1.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.2.0.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.2.1.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.2.2.1.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.2.2.2.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.2.2.3.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.2.2.4.nupkg
Binary file not shown.
Binary file removed NuGet/Seterlund.CodeGuard.2.2.nupkg
Binary file not shown.
23 changes: 0 additions & 23 deletions NuGet/Seterlund.CodeGuard.nuspec

This file was deleted.

1 change: 0 additions & 1 deletion NuGet_Src/.gitignore

This file was deleted.

Loading