-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some rewrites to simplify deploy and dependency management (#370)
* Added scripts for running PostgreSQL integration tests * Replaced ILMerge with Costura.Fody * Fixed some path problems Packaging restructuring * Changed all RoundhousE database DLLs to be nuget packages of their own. * Simplified build scripts
- Loading branch information
Showing
126 changed files
with
7,025 additions
and
6,904 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
image: Visual Studio 2017 | ||
image: Visual Studio 2019 | ||
|
||
install: | ||
- choco install gitversion.portable -y | ||
|
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 |
---|---|---|
@@ -1,135 +1,111 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks Condition="'$(TargetFramework)' == ''">netcoreapp2.1;net461</TargetFrameworks> | ||
<TargetFramework Condition="'$(TargetFramework)' == ''">net461</TargetFramework> | ||
<CLSCompliant>true</CLSCompliant> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<OutputType>Exe</OutputType> | ||
<OutputPath>bin\</OutputPath> | ||
<RootNamespace>roundhouse.console</RootNamespace> | ||
<AssemblyName>rh</AssemblyName> | ||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> | ||
<NoWarn>NU1701</NoWarn> | ||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<VersionPrefix>0.8.9</VersionPrefix> | ||
<VersionSuffix>alpha</VersionSuffix> | ||
<Version Condition="'$(Version)' == ''">$(VersionPrefix)</Version> | ||
<Version Condition="'$(Version)' == '$(VersionPrefix)' And '$(VersionSuffix)' != ''">$(Version)-$(VersionSuffix)</Version> | ||
<NugetVersion Condition="'$(NugetVersion)' == ''">$(Version)</NugetVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | ||
<RuntimeIdentifier>win7-x86</RuntimeIdentifier> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<Optimize>true</Optimize> | ||
<DebugType>pdbonly</DebugType> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<ErrorReport>prompt</ErrorReport> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Costura.Fody" Version="3.3.2" /> | ||
<PackageReference Include="FluentNHibernate" Version="2.1.2" /> | ||
<PackageReference Include="Fody" Version="3.3.5"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Iesi.Collections" Version="4.0.4" /> | ||
<PackageReference Include="Microsoft.Build.Framework" Version="15.9.20" /> | ||
<PackageReference Include="MySql.Data" Version="8.0.13" /> | ||
<PackageReference Include="NHibernate" Version="5.1.3" /> | ||
<PackageReference Include="NHibernate.JetDriver" Version="2.0.0.1002" /> | ||
<PackageReference Include="log4net" Version="2.0.8.0" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" /> | ||
<PackageReference Include="Polly" Version="6.1.2" /> | ||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" /> | ||
<PackageReference Include="System.Data.SqlClient" Version="4.5.1" /> | ||
<PackageReference Include="System.Security.Principal.Windows" Version="4.5.1" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<ProjectReference Include="..\roundhouse.databases.access\roundhouse.databases.access.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.oracle\roundhouse.databases.oracle.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\roundhouse.databases.sqlserver\roundhouse.databases.sqlserver.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.sqlite\roundhouse.databases.sqlite.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.postgresql\roundhouse.databases.postgresql.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.sqlserverce\roundhouse.databases.sqlserverce.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.mysql\roundhouse.databases.mysql.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.sqlserver2000\roundhouse.databases.sqlserver2000.csproj" /> | ||
<ProjectReference Include="..\roundhouse\roundhouse.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\docs\logo\roundhouse.ico"> | ||
<Link>roundhouse.ico</Link> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="../../generated/MySql.Data/keywords.txt" Link="$(AssemblyName).keywords.txt"> | ||
<LogicalName>$(AssemblyName).keywords.txt</LogicalName> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> | ||
<None Include="rh" CopyToOutputDirectory="PreserveNewest" /> | ||
<None Include="rh.bat" CopyToOutputDirectory="PreserveNewest" /> | ||
<None Include="DotnetToolSettings.xml" CopyToOutputDirectory="PreserveNewest" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<DropDir>..\..\code_drop\merge\</DropDir> | ||
<Extension>.dll</Extension> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<Extension>.exe</Extension> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<CopySource>$(MSBuildProjectDirectory)/$(OutputPath)/$(TargetFramework)/$(RuntimeIdentifier)/$(AssemblyName)$(Extension)</CopySource> | ||
<CopyDestination>$(DropDir)$(AssemblyName)$(Extension)</CopyDestination> | ||
</PropertyGroup> | ||
|
||
<Target Name="CopyOutput" AfterTargets="Build" Condition="'$(BuildingInsideVisualStudio)' != 'true' and '$(TargetFramework)' == 'net461'"> | ||
<Message Importance="high" Text="Source: $(CopySource)" /> | ||
<Copy SourceFiles="$(CopySource)" DestinationFolder="$(DropDir)" /> | ||
</Target> | ||
|
||
|
||
<!-- Nuspec properties (for generating NuGet package) --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<NuspecFile>roundhouse.nuspec</NuspecFile> | ||
<NuspecProperties>mergedExe=$(CopyDestination);version=$(NugetVersion)</NuspecProperties> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> | ||
<NuspecFile>roundhouse.tool.nuspec</NuspecFile> | ||
<NuspecProperties>version=$(NugetVersion)</NuspecProperties> | ||
</PropertyGroup> | ||
|
||
|
||
<!-- Copy to drop folder after packaging --> | ||
<Target Name="CopyToDropFolder" AfterTargets="Pack" Condition="'$(DropFolder)' != ''"> | ||
<ItemGroup> | ||
<NugetPackages Include="$(OutputPath)..\**\*.nupkg" /> | ||
</ItemGroup> | ||
<Copy SourceFiles="@(NugetPackages)" DestinationFolder="$(DropFolder)\packages" /> | ||
</Target> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks Condition="'$(TargetFramework)' == ''">netcoreapp2.1;net461</TargetFrameworks> | ||
<TargetFramework Condition="'$(TargetFramework)' == ''">net461</TargetFramework> | ||
<CLSCompliant>true</CLSCompliant> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<OutputType>Exe</OutputType> | ||
<OutputPath>bin\</OutputPath> | ||
<RootNamespace>roundhouse.console</RootNamespace> | ||
<AssemblyName>rh</AssemblyName> | ||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> | ||
<NoWarn>NU1701</NoWarn> | ||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Version Condition="'$(Version)' == ''">1.0.0</Version> | ||
<NugetVersion Condition="'$(NugetVersion)' == ''">$(Version)</NugetVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> | ||
<NuspecFile>roundhouse.tool.nuspec</NuspecFile> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<RuntimeIdentifier>win7-x86</RuntimeIdentifier> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<Optimize>true</Optimize> | ||
<DebugType>pdbonly</DebugType> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<ErrorReport>prompt</ErrorReport> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" /> | ||
<PackageReference Include="System.Security.Principal.Windows" Version="4.5.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<PackageReference Include="Costura.Fody" Version="3.3.2" /> | ||
<PackageReference Include="Fody" Version="3.3.5"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<ProjectReference Include="..\roundhouse.databases.access\roundhouse.databases.access.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.oracle\roundhouse.databases.oracle.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\roundhouse.databases.sqlserver\roundhouse.databases.sqlserver.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.sqlite\roundhouse.databases.sqlite.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.postgresql\roundhouse.databases.postgresql.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.sqlserverce\roundhouse.databases.sqlserverce.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.mysql\roundhouse.databases.mysql.csproj" /> | ||
<ProjectReference Include="..\roundhouse.databases.sqlserver2000\roundhouse.databases.sqlserver2000.csproj" /> | ||
<ProjectReference Include="..\roundhouse.core\roundhouse.core.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\docs\logo\roundhouse.ico"> | ||
<Link>roundhouse.ico</Link> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="../../generated/MySql.Data/keywords.txt" Link="$(AssemblyName).keywords.txt"> | ||
<LogicalName>$(AssemblyName).keywords.txt</LogicalName> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> | ||
<None Include="rh" CopyToOutputDirectory="PreserveNewest" /> | ||
<None Include="rh.bat" CopyToOutputDirectory="PreserveNewest" /> | ||
<None Include="DotnetToolSettings.xml" CopyToOutputDirectory="PreserveNewest" /> | ||
</ItemGroup> | ||
|
||
|
||
<!-- Nuspec properties (for generating NuGet package) --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'"> | ||
<NuspecFile>roundhouse.nuspec</NuspecFile> | ||
<NuspecProperties>mergedExe=$(CopyDestination);version=$(NugetVersion)</NuspecProperties> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> | ||
<NuspecFile>roundhouse.tool.nuspec</NuspecFile> | ||
<NuspecProperties>version=$(NugetVersion)</NuspecProperties> | ||
</PropertyGroup> | ||
|
||
|
||
<!-- Copy to drop folder after packaging --> | ||
<Target Name="CopyToDropFolder" AfterTargets="Pack" Condition="'$(DropFolder)' != ''"> | ||
<ItemGroup> | ||
<NugetPackages Include="$(OutputPath)..\**\*.nupkg" /> | ||
</ItemGroup> | ||
<Copy SourceFiles="@(NugetPackages)" DestinationFolder="$(DropFolder)\packages" /> | ||
</Target> | ||
</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
Oops, something went wrong.