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
2 changes: 1 addition & 1 deletion lib/Application/Standalone.Core/ApplicationBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Standalone.Core
{
[ImplementPropertyChanged]
[AddINotifyPropertyChangedInterface]
public class ApplicationBase : IApplication, INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
Expand Down
2 changes: 1 addition & 1 deletion lib/Application/Standalone.Core/Data/ISqlResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion lib/Application/Standalone.Core/Data/SqlService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Text;
using System.Text.RegularExpressions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Standalone.Core.Display
{
[ImplementPropertyChanged]
[AddINotifyPropertyChangedInterface]
public class ConnectionAdapter
{
private ProjectAdapter _project;
Expand Down
2 changes: 1 addition & 1 deletion lib/Application/Standalone.Core/Display/ProjectAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Standalone.Core.Display
{
[ImplementPropertyChanged]
[AddINotifyPropertyChangedInterface]
public class ProjectAdapter
{
public Project Project { get; private set; }
Expand Down
4 changes: 2 additions & 2 deletions lib/Application/Standalone.Core/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Weavers>
<PropertyChanged />
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<PropertyChanged />
</Weavers>
74 changes: 74 additions & 0 deletions lib/Application/Standalone.Core/FodyWeavers.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="PropertyChanged" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="InjectOnPropertyNameChanged" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to control if the On_PropertyName_Changed feature is enabled.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="TriggerDependentProperties" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to control if the Dependent properties feature is enabled.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="EnableIsChangedProperty" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to control if the IsChanged property feature is enabled.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="EventInvokerNames" type="xs:string">
<xs:annotation>
<xs:documentation>Used to change the name of the method that fires the notify event. This is a string that accepts multiple values in a comma separated form.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="CheckForEquality" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to control if equality checks should be inserted. If false, equality checking will be disabled for the project.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="CheckForEqualityUsingBaseEquals" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to control if equality checks should use the Equals method resolved from the base class.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UseStaticEqualsFromBase" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to control if equality checks should use the static Equals method resolved from the base class.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="SuppressWarnings" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to turn off build warnings from this weaver.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="SuppressOnPropertyNameChangedWarning" type="xs:boolean">
<xs:annotation>
<xs:documentation>Used to turn off build warnings about mismatched On_PropertyName_Changed methods.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected virtual Project CreateProject(IKernel kernel)
using (TextReader reader = new StreamReader(args[1]))
dto = (ProjectDTO)deserializer.Deserialize(reader);
}
catch (Exception ex)
catch (Exception)
{
// halt application (not currently in a message loop)
// TODO: need to inform the user that we couldn't load the project: this is why
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class InitialiserInstaller : IWindsorInstaller
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(
Classes.FromThisAssembly().BasedOn<IInitialiser>().WithService.FromInterface(),
Classes.FromAssemblyContaining<InitialiserInstaller>().BasedOn<IInitialiser>().WithService.FromInterface(),
Component.For<IList<IInitialiser>>().UsingFactoryMethod<List<IInitialiser>>(
c => new List<IInitialiser>(c.ResolveAll<IInitialiser>())));
}
Expand Down
36 changes: 0 additions & 36 deletions lib/Application/Standalone.Core/Properties/AssemblyInfo.cs

This file was deleted.

207 changes: 64 additions & 143 deletions lib/Application/Standalone.Core/Standalone.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,144 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A9091ADB-FC19-4982-BCE4-6A0425F974D6}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Standalone.Core</RootNamespace>
<AssemblyName>Standalone.Core</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<NuGetPackageImportStamp>8931243d</NuGetPackageImportStamp>
<TargetFrameworkProfile />
</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>
</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>
</PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core">
<HintPath>..\..\packages\Castle.Core.3.3.0\lib\net45\Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Castle.Windsor">
<HintPath>..\..\packages\Castle.Windsor.3.3.0\lib\net45\Castle.Windsor.dll</HintPath>
</Reference>
<Reference Include="PropertyChanged, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ee3ee20bcf148ddd, processorArchitecture=MSIL">
<HintPath>..\..\packages\PropertyChanged.Fody.1.48.2.0\Lib\NET35\PropertyChanged.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data.SQLite">
<HintPath>..\..\packages\System.Data.SQLite.Core.1.0.94.0\lib\net45\System.Data.SQLite.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Data\ExtendedDateParser.cs" />
<Compile Include="Data\IDbService.cs" />
<Compile Include="Data\DbServiceAsyncCallback.cs" />
<Compile Include="Data\ListCallback.cs" />
<Compile Include="Data\ResultCallback.cs" />
<Compile Include="Data\SearchDetails.cs" />
<Compile Include="Data\ISearchDetails.cs" />
<Compile Include="Data\ISqlResults.cs" />
<Compile Include="Data\ParserFactory.cs" />
<Compile Include="ApplicationBase.cs" />
<Compile Include="Data\MsAccessService.cs" />
<Compile Include="Data\SQLiteService.cs" />
<Compile Include="Data\SqlService.cs" />
<Compile Include="Display\ConnectionAdapter.cs" />
<Compile Include="Display\ProjectAdapter.cs" />
<Compile Include="Export\Filter.cs" />
<Compile Include="Export\IExportServiceFactory.cs" />
<Compile Include="Installers\DataInstaller.cs" />
<Compile Include="Installers\FactoryInstaller.cs" />
<Compile Include="Installers\ParserInstaller.cs" />
<Compile Include="Installers\IOInstaller.cs" />
<Compile Include="Project.cs" />
<Compile Include="Data\DbServiceFactory.cs" />
<Compile Include="Display\StandardAdapter.cs" />
<Compile Include="Display\PresetAdapter.cs" />
<Compile Include="Export\BaseExportService.cs" />
<Compile Include="Export\CsvExportService.cs" />
<Compile Include="Export\ExportServiceFactory.cs" />
<Compile Include="Export\IExportService.cs" />
<Compile Include="Export\IViewPersistence.cs" />
<Compile Include="Export\TabDelimitedExportService.cs" />
<Compile Include="Export\XmlViewPersistence.cs" />
<Compile Include="IApplication.cs" />
<Compile Include="Initialisers\IInitialiser.cs" />
<Compile Include="Installers\AssemblerInstaller.cs" />
<Compile Include="Installers\ConfigurationInstaller.cs" />
<Compile Include="Installers\InitialiserInstaller.cs" />
<Compile Include="IShell.cs" />
<Compile Include="ListCacher.cs" />
<Compile Include="ProjectConnection.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SearchDocument.cs" />
<Compile Include="Serialization\Assemblers\SearchDocumentAssembler.cs" />
<Compile Include="Serialization\Assemblers\ProjectAssembler.cs" />
<Compile Include="Serialization\Assemblers\SearchDocumentRestoreException.cs" />
<Compile Include="Serialization\DTO\ProjectDTO.cs" />
<Compile Include="Serialization\DTO\SearchDocumentDTO.cs" />
<Compile Include="ShellBase.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Backends\dbqf.MsAccess\dbqf.MsAccess.csproj">
<Project>{5336bddd-c373-494b-94e7-aeaabc8cd88d}</Project>
<Name>dbqf.MsAccess</Name>
</ProjectReference>
<ProjectReference Include="..\..\dbqf.core\dbqf.core.csproj">
<Project>{ab9bdec4-8264-49a2-b2b6-ef6276341535}</Project>
<Name>dbqf.core</Name>
</ProjectReference>
<ProjectReference Include="..\..\dbqf.Serialization\dbqf.Serialization.csproj">
<Project>{f46b0af8-b45b-4897-995f-bba8a290999a}</Project>
<Name>dbqf.Serialization</Name>
</ProjectReference>
<ProjectReference Include="..\..\Backends\dbqf.Sql\dbqf.Sql.csproj">
<Project>{8677a10f-415f-4f5f-abc5-726ede1cb372}</Project>
<Name>dbqf.Sql</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="FodyWeavers.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\packages\System.Data.SQLite.Core.1.0.94.0\build\net45\System.Data.SQLite.Core.targets" Condition="Exists('..\..\packages\System.Data.SQLite.Core.1.0.94.0\build\net45\System.Data.SQLite.Core.targets')" />
<Import Project="..\..\packages\Fody.1.28.3\build\Fody.targets" Condition="Exists('..\..\packages\Fody.1.28.3\build\Fody.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 Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A9091ADB-FC19-4982-BCE4-6A0425F974D6}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Standalone.Core</RootNamespace>
<AssemblyName>Standalone.Core</AssemblyName>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
<Description>Core machinery for standalone application.</Description>
<Copyright>Copyright © Stuart Attenborrow 2016</Copyright>
<Company>Stuart Attenborrow</Company>
<Version>2.0.0</Version>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Backends\dbqf.MsAccess\dbqf.MsAccess.csproj">
<Project>{5336bddd-c373-494b-94e7-aeaabc8cd88d}</Project>
<Name>dbqf.MsAccess</Name>
</ProjectReference>
<ProjectReference Include="..\..\dbqf.core\dbqf.core.csproj">
<Project>{ab9bdec4-8264-49a2-b2b6-ef6276341535}</Project>
<Name>dbqf.core</Name>
</ProjectReference>
<ProjectReference Include="..\..\dbqf.Serialization\dbqf.Serialization.csproj">
<Project>{f46b0af8-b45b-4897-995f-bba8a290999a}</Project>
<Name>dbqf.Serialization</Name>
</ProjectReference>
<ProjectReference Include="..\..\Backends\dbqf.Sql\dbqf.Sql.csproj">
<Project>{8677a10f-415f-4f5f-abc5-726ede1cb372}</Project>
<Name>dbqf.Sql</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<Content Include="FodyWeavers.xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Castle.Core">
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="Castle.Windsor">
<Version>5.1.1</Version>
</PackageReference>
<PackageReference Include="Fody" PrivateAssets="All">
<Version>6.6.3</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Data.SqlClient" Version="4.1.0" />
<PackageReference Include="PropertyChanged.Fody">
<Version>3.4.1</Version>
</PackageReference>
<PackageReference Include="System.Data.OleDb" Version="6.0.0" />
<PackageReference Include="System.Data.SQLite.Core">
<Version>1.0.116</Version>
</PackageReference>
</ItemGroup>
</Project>
Loading