Added support for code contracts (requires VS support!)
Implemented Contracts into existing classes (yet incomplete especially with Interface implementations in NavObject). Otherwise it basically works. Started class for interfacing to finsql.exe.
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8" ?>
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<configuration>
 | 
			
		||||
    <startup> 
 | 
			
		||||
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
 | 
			
		||||
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
 | 
			
		||||
    </startup>
 | 
			
		||||
</configuration>
 | 
			
		||||
</configuration>
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
    <AppDesignerFolder>Properties</AppDesignerFolder>
 | 
			
		||||
    <RootNamespace>NavScm.TestHost</RootNamespace>
 | 
			
		||||
    <AssemblyName>NAV Source Control Test Host</AssemblyName>
 | 
			
		||||
    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
 | 
			
		||||
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
 | 
			
		||||
    <FileAlignment>512</FileAlignment>
 | 
			
		||||
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
 | 
			
		||||
    <PublishUrl>publish\</PublishUrl>
 | 
			
		||||
@@ -27,6 +27,8 @@
 | 
			
		||||
    <IsWebBootstrapper>false</IsWebBootstrapper>
 | 
			
		||||
    <UseApplicationTrust>false</UseApplicationTrust>
 | 
			
		||||
    <BootstrapperEnabled>true</BootstrapperEnabled>
 | 
			
		||||
    <TargetFrameworkProfile />
 | 
			
		||||
    <CodeContractsAssemblyMode>0</CodeContractsAssemblyMode>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
 | 
			
		||||
    <PlatformTarget>AnyCPU</PlatformTarget>
 | 
			
		||||
@@ -37,6 +39,49 @@
 | 
			
		||||
    <DefineConstants>DEBUG;TRACE</DefineConstants>
 | 
			
		||||
    <ErrorReport>prompt</ErrorReport>
 | 
			
		||||
    <WarningLevel>4</WarningLevel>
 | 
			
		||||
    <CodeContractsEnableRuntimeChecking>True</CodeContractsEnableRuntimeChecking>
 | 
			
		||||
    <CodeContractsRuntimeOnlyPublicSurface>False</CodeContractsRuntimeOnlyPublicSurface>
 | 
			
		||||
    <CodeContractsRuntimeThrowOnFailure>False</CodeContractsRuntimeThrowOnFailure>
 | 
			
		||||
    <CodeContractsRuntimeCallSiteRequires>False</CodeContractsRuntimeCallSiteRequires>
 | 
			
		||||
    <CodeContractsRuntimeSkipQuantifiers>False</CodeContractsRuntimeSkipQuantifiers>
 | 
			
		||||
    <CodeContractsRunCodeAnalysis>True</CodeContractsRunCodeAnalysis>
 | 
			
		||||
    <CodeContractsNonNullObligations>True</CodeContractsNonNullObligations>
 | 
			
		||||
    <CodeContractsBoundsObligations>True</CodeContractsBoundsObligations>
 | 
			
		||||
    <CodeContractsArithmeticObligations>True</CodeContractsArithmeticObligations>
 | 
			
		||||
    <CodeContractsEnumObligations>True</CodeContractsEnumObligations>
 | 
			
		||||
    <CodeContractsRedundantAssumptions>True</CodeContractsRedundantAssumptions>
 | 
			
		||||
    <CodeContractsAssertsToContractsCheckBox>True</CodeContractsAssertsToContractsCheckBox>
 | 
			
		||||
    <CodeContractsRedundantTests>True</CodeContractsRedundantTests>
 | 
			
		||||
    <CodeContractsMissingPublicRequiresAsWarnings>True</CodeContractsMissingPublicRequiresAsWarnings>
 | 
			
		||||
    <CodeContractsMissingPublicEnsuresAsWarnings>False</CodeContractsMissingPublicEnsuresAsWarnings>
 | 
			
		||||
    <CodeContractsInferRequires>True</CodeContractsInferRequires>
 | 
			
		||||
    <CodeContractsInferEnsures>False</CodeContractsInferEnsures>
 | 
			
		||||
    <CodeContractsInferEnsuresAutoProperties>True</CodeContractsInferEnsuresAutoProperties>
 | 
			
		||||
    <CodeContractsInferObjectInvariants>False</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>%28none%29</CodeContractsReferenceAssembly>
 | 
			
		||||
    <CodeContractsAnalysisWarningLevel>0</CodeContractsAnalysisWarningLevel>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
 | 
			
		||||
    <PlatformTarget>AnyCPU</PlatformTarget>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user