Skip to content
Permalink
Browse files

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...
erikbra committed Jun 9, 2019
1 parent 48bc258 commit 83e393d87b23be8962ab678e45d8b6eea95bf157
Showing with 7,025 additions and 6,904 deletions.
  1. +1 −1 appveyor.yml
  2. +22 −14 build.ps1
  3. +110 −134 product/roundhouse.console/roundhouse.console.csproj
  4. +3 −3 product/roundhouse.console/roundhouse.nuspec
  5. +2 −2 product/roundhouse.console/roundhouse.tool.nuspec
  6. +109 −109 product/{roundhouse → roundhouse.core}/DifferenceWithFluentNHibernate.cs
  7. +132 −123 product/{roundhouse → roundhouse.core}/Migrate.cs
  8. 0 product/{roundhouse → roundhouse.core}/Properties/AssemblyInfo.cs
  9. +11 −11 product/{roundhouse → roundhouse.core}/RoundhousEFluentNHibernateDiffingType.cs
  10. +8 −8 product/{roundhouse → roundhouse.core}/RoundhouseMode.cs
  11. +65 −69 product/{roundhouse → roundhouse.core}/connections/AdoNetConnection.cs
  12. +2 −2 product/{roundhouse → roundhouse.core}/connections/IConnection.cs
  13. +33 −33 product/{roundhouse → roundhouse.core}/consoles/CommandExecutor.cs
  14. +159 −159 product/{roundhouse → roundhouse.core}/consoles/DefaultConfiguration.cs
  15. +90 −84 product/{roundhouse → roundhouse.core}/consoles/InteractivePrompt.cs
  16. +8 −8 product/{roundhouse → roundhouse.core}/cryptography/CryptographicService.cs
  17. 0 product/{roundhouse → roundhouse.core}/cryptography/LocalMD5Implementation.cs
  18. 0 product/{roundhouse → roundhouse.core}/cryptography/MD5CryptographicService.cs
  19. +224 −217 product/{roundhouse → roundhouse.core}/databases/AdoNetDatabase.cs
  20. +112 −112 product/{roundhouse → roundhouse.core}/databases/Database.cs
  21. +396 −397 product/{roundhouse → roundhouse.core}/databases/DefaultDatabase.cs
  22. +275 −273 product/{roundhouse → roundhouse.core}/databases/MockDatabase.cs
  23. +8 −8 product/{roundhouse → roundhouse.core}/databases/RecoveryMode.cs
  24. +258 −258 product/{roundhouse → roundhouse.core}/databases/SqlServerLiteSpeedDatabase.cs
  25. 0 product/{roundhouse → roundhouse.core}/environments/DefaultEnvironment.cs
  26. 0 product/{roundhouse → roundhouse.core}/environments/DefaultEnvironmentSet.cs
  27. +7 −7 product/{roundhouse → roundhouse.core}/environments/Environment.cs
  28. 0 product/{roundhouse → roundhouse.core}/environments/EnvironmentSet.cs
  29. +23 −23 product/{roundhouse → roundhouse.core}/folders/DefaultFolder.cs
  30. +60 −60 product/{roundhouse → roundhouse.core}/folders/DefaultKnownFolders.cs
  31. +18 −18 product/{roundhouse → roundhouse.core}/folders/DefaultMigrationsFolder.cs
  32. +8 −8 product/{roundhouse → roundhouse.core}/folders/Folder.cs
  33. +21 −21 product/{roundhouse → roundhouse.core}/folders/KnownFolders.cs
  34. +8 −8 product/{roundhouse → roundhouse.core}/folders/MigrationsFolder.cs
  35. +257 −257 product/{roundhouse → roundhouse.core}/infrastructure.app/ApplicationConfiguraton.cs
  36. +72 −72 product/{roundhouse → roundhouse.core}/infrastructure.app/ConfigurationPropertyHolder.cs
  37. +7 −7 product/{roundhouse → roundhouse.core}/infrastructure.app/ConnectionType.cs
  38. +65 −65 product/{roundhouse → roundhouse.core}/infrastructure.app/DatabaseTypeSynonyms.cs
  39. 0 product/{roundhouse → roundhouse.core}/infrastructure.app/UserTokenParser.cs
  40. +82 −79 product/{roundhouse → roundhouse.core}/infrastructure.app/builders/DatabaseBuilder.cs
  41. +72 −72 product/{roundhouse → roundhouse.core}/infrastructure.app/builders/KnownFoldersBuilder.cs
  42. +30 −30 product/{roundhouse → roundhouse.core}/infrastructure.app/builders/VersionResolverBuilder.cs
  43. +101 −101 product/{roundhouse → roundhouse.core}/infrastructure.app/logging/Log4NetAppender.cs
  44. +41 −38 product/{roundhouse → roundhouse.core}/infrastructure.app/logging/Log4NetDll.cs
  45. +20 −20 product/{roundhouse → roundhouse.core}/infrastructure.app/logging/log4net.config.no.console.xml
  46. +48 −48 product/{roundhouse → roundhouse.core}/infrastructure.app/logging/log4net.config.xml
  47. +40 −40 ...roundhouse → roundhouse.core}/infrastructure.app/persistence/NHibernateMigrationSessionFactory.cs
  48. +30 −30 product/{roundhouse → roundhouse.core}/infrastructure.app/tokens/TokenReplacer.cs
  49. +79 −79 product/{roundhouse → roundhouse.core}/infrastructure/ApplicationParameters.cs
  50. +11 −0 product/roundhouse.core/infrastructure/ConfigurationException.cs
  51. +21 −21 product/{roundhouse → roundhouse.core}/infrastructure/VersionInformation.cs
  52. 0 product/{roundhouse → roundhouse.core}/infrastructure/commandline.options/Options.cs
  53. +19 −19 product/{roundhouse → roundhouse.core}/infrastructure/containers/Container.cs
  54. +6 −6 product/{roundhouse → roundhouse.core}/infrastructure/containers/InversionContainer.cs
  55. +31 −31 product/{roundhouse → roundhouse.core}/infrastructure/containers/custom/HardcodedContainer.cs
  56. +23 −23 product/{roundhouse → roundhouse.core}/infrastructure/extensions/Iteration.cs
  57. +29 −29 product/{roundhouse → roundhouse.core}/infrastructure/extensions/ObjectExtensions.cs
  58. +23 −23 product/{roundhouse → roundhouse.core}/infrastructure/extensions/StringExtensions.cs
  59. +22 −22 product/{roundhouse → roundhouse.core}/infrastructure/extensions/TypeCasting.cs
  60. +29 −29 product/{roundhouse → roundhouse.core}/infrastructure/extensions/TypeExtensions.cs
  61. +437 −437 product/{roundhouse → roundhouse.core}/infrastructure/filesystem/DotNetFileSystemAccess.cs
  62. +225 −225 product/{roundhouse → roundhouse.core}/infrastructure/filesystem/FileSystemAccess.cs
  63. +11 −11 product/{roundhouse → roundhouse.core}/infrastructure/loaders/DefaultAssemblyLoader.cs
  64. +33 −33 product/{roundhouse → roundhouse.core}/infrastructure/loaders/DefaultInstanceCreator.cs
  65. +31 −31 product/{roundhouse → roundhouse.core}/infrastructure/logging/Log.cs
  66. +8 −8 product/{roundhouse → roundhouse.core}/infrastructure/logging/LogFactory.cs
  67. +11 −11 product/{roundhouse → roundhouse.core}/infrastructure/logging/Logger.cs
  68. +48 −48 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/ConsoleLogger.cs
  69. +55 −55 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/FileLogger.cs
  70. +11 −11 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/Log4NetLogFactory.cs
  71. +45 −45 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/Log4NetLogger.cs
  72. +84 −84 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/MSBuildLogger.cs
  73. +60 −60 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/MultipleLogger.cs
  74. +13 −13 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/MultipleLoggerLogFactory.cs
  75. +50 −50 product/{roundhouse → roundhouse.core}/infrastructure/logging/custom/TraceLogger.cs
  76. +92 −92 product/{roundhouse → roundhouse.core}/infrastructure/persistence/AuditEventListener.cs
  77. +91 −91 ...{roundhouse → roundhouse.core}/infrastructure/persistence/DifferencingNHibernateSessionFactory.cs
  78. +25 −25 product/{roundhouse → roundhouse.core}/infrastructure/persistence/IRepository.cs
  79. +123 −123 product/{roundhouse → roundhouse.core}/infrastructure/persistence/NHibernateSessionFactoryBuilder.cs
  80. +225 −225 product/{roundhouse → roundhouse.core}/infrastructure/persistence/Repository.cs
  81. +43 −43 product/{roundhouse → roundhouse.core}/init/Initializer.cs
  82. +27 −27 product/{roundhouse → roundhouse.core}/migrators/DatabaseMigrator.cs
  83. +417 −417 product/{roundhouse → roundhouse.core}/migrators/DefaultDatabaseMigrator.cs
  84. +10 −10 product/{roundhouse → roundhouse.core}/model/Auditable.cs
  85. +18 −18 product/{roundhouse → roundhouse.core}/model/ScriptsRun.cs
  86. +19 −19 product/{roundhouse → roundhouse.core}/model/ScriptsRunError.cs
  87. +15 −15 product/{roundhouse → roundhouse.core}/model/Version.cs
  88. +28 −28 product/{roundhouse → roundhouse.core}/parameters/AdoNetParameter.cs
  89. +8 −8 product/{roundhouse → roundhouse.core}/parameters/IParameter.cs
  90. 0 product/{roundhouse → roundhouse.core}/resolvers/CommandLineVersionResolver.cs
  91. +32 −32 product/{roundhouse → roundhouse.core}/resolvers/ComplexVersionResolver.cs
  92. +46 −46 product/{roundhouse → roundhouse.core}/resolvers/DllFileVersionResolver.cs
  93. 0 product/{roundhouse → roundhouse.core}/resolvers/JsonVersionResolver.cs
  94. +65 −65 product/{roundhouse → roundhouse.core}/resolvers/ScriptfileVersionResolver.cs
  95. +51 −51 product/{roundhouse → roundhouse.core}/resolvers/TextVersionResolver.cs
  96. +7 −7 product/{roundhouse → roundhouse.core}/resolvers/VersionResolver.cs
  97. +68 −68 product/{roundhouse → roundhouse.core}/resolvers/XmlFileVersionResolver.cs
  98. +87 −78 product/{roundhouse/roundhouse.csproj → roundhouse.core/roundhouse.core.csproj}
  99. +6 −6 product/{roundhouse → roundhouse.core}/runners/IRunner.cs
  100. +341 −341 product/{roundhouse → roundhouse.core}/runners/RoundhouseMigrationRunner.cs
  101. +17 −17 product/{roundhouse → roundhouse.core}/runners/RoundhouseNHibernateCompareRunner.cs
  102. +80 −80 product/{roundhouse → roundhouse.core}/runners/RoundhouseRedGateCompareRunner.cs
  103. 0 product/{roundhouse → roundhouse.core}/runners/RoundhouseUpdateCheckRunner.cs
  104. +49 −49 product/{roundhouse → roundhouse.core}/sqlsplitters/StatementSplitter.cs
  105. +234 −234 product/{roundhouse → roundhouse.core}/targets/Microsoft.Application.targets
  106. +20 −11 product/roundhouse.databases.access/roundhouse.databases.access.csproj
  107. +22 −10 product/roundhouse.databases.mysql/roundhouse.databases.mysql.csproj
  108. +23 −12 product/roundhouse.databases.oracle/roundhouse.databases.oracle.csproj
  109. +60 −48 product/roundhouse.databases.postgresql/roundhouse.databases.postgresql.csproj
  110. +0 −11 product/roundhouse.databases.sqlite/packages.config
  111. +21 −10 product/roundhouse.databases.sqlite/roundhouse.databases.sqlite.csproj
  112. +1 −1 product/roundhouse.databases.sqlserver/ReliableSqlConnection.cs
  113. +24 −10 product/roundhouse.databases.sqlserver/roundhouse.databases.sqlserver.csproj
  114. +0 −6 product/roundhouse.databases.sqlserver2000/packages.config
  115. +20 −10 product/roundhouse.databases.sqlserver2000/roundhouse.databases.sqlserver2000.csproj
  116. +20 −8 product/roundhouse.databases.sqlserverce/roundhouse.databases.sqlserverce.csproj
  117. +6 −0 product/roundhouse.lib/Properties/AssemblyInfo.cs
  118. +17 −57 product/{roundhouse.lib.merged/roundhouse.lib.merged.csproj → roundhouse.lib/roundhouse.lib.csproj}
  119. 0 product/{roundhouse.lib.merged/roundhouse.lib.nuspec → roundhouse.lib/roundhouse.lib.nuspecZ}
  120. +0 −9 product/roundhouse.tasks/packages.config
  121. +9 −13 product/roundhouse.tasks/roundhouse.tasks.csproj
  122. +24 −0 product/roundhouse.test.merged/app.config
  123. +47 −0 product/roundhouse.test.merged/roundhouse.test.merged.csproj
  124. +6 −18 product/roundhouse.tests.integration/roundhouse.tests.integration.csproj
  125. +10 −13 product/roundhouse.tests/roundhouse.tests.csproj
  126. +18 −9 roundhouse.sln
@@ -1,4 +1,4 @@
image: Visual Studio 2017
image: Visual Studio 2019

install:
- choco install gitversion.portable -y
@@ -5,6 +5,7 @@ $MSBUILD=msbuild
$root = $PSScriptRoot;

$CODEDROP="$($root)/code_drop";
$PACKAGEDIR="$($CODEDROP)/packages";
$LOGDIR="$($CODEDROP)/log";

$TESTOUTDIR="$($root)/product/roundhouse.tests/bin"
@@ -25,12 +26,15 @@ If ($onAppVeyor) {
appveyor UpdateBuild -Version "$newVersion"
}

" * Updating NuGet to handle newer license metadata"
nuget update -self -Verbosity quiet

" * Restoring nuget packages"
nuget restore -NonInteractive -Verbosity quiet

# Create output and log dirs if they don't exist (don't know why this is necessary - works on my box...)
If (!(Test-Path $CODEDROP)) {
$null = mkdir $CODEDROP;
If (!(Test-Path $PACKAGEDIR)) {
$null = mkdir $PACKAGEDIR;
}
If (!(Test-Path $LOGDIR)) {
$null = mkdir $LOGDIR;
@@ -45,17 +49,24 @@ $file = $(Get-ChildItem -Recurse -Include MySql.Data.dll ~/.nuget/packages/mysql
" * Building and packaging"
msbuild /t:"Build" /p:DropFolder=$CODEDROP /p:Version="$($gitVersion.FullSemVer)" /p:NoPackageAnalysis=true /nologo /v:q /fl /flp:"LogFile=$LOGDIR/msbuild.log;Verbosity=n" /p:Configuration=Build /p:Platform="Any CPU"

"`n - Packaging net461 packages`n"
" - NuGet libraries"
dotnet pack -nologo --no-build -v q -p:Version="$($gitVersion.FullSemVer)" -p:NoPackageAnalysis=true -p:Configuration=Build -p:Platform="Any CPU" -o ${PACKAGEDIR}


" - net461 command-line nuget package"

nuget pack product/roundhouse.console/roundhouse.nuspec -OutputDirectory "$CODEDROP/packages" -Properties "mergedExe=$CODEDROP/merge/rh.exe" -Verbosity quiet -NoPackageAnalysis -Version "$($gitVersion.FullSemVer)"
msbuild /t:"Pack" product/roundhouse.lib.merged/roundhouse.lib.merged.csproj /p:DropFolder=$CODEDROP /p:Version="$($gitVersion.FullSemVer)" /p:NoPackageAnalysis=true /nologo /v:q /fl /flp:"LogFile=$LOGDIR/msbuild.roundhouse.lib.pack.log;Verbosity=n" /p:Configuration=Build /p:Platform="Any CPU"
nuget pack product/roundhouse.console/roundhouse.nuspec -OutputDirectory "$CODEDROP/packages" -Verbosity quiet -NoPackageAnalysis -Version "$($gitVersion.FullSemVer)"
msbuild /t:"Pack" product/roundhouse.tasks/roundhouse.tasks.csproj /p:DropFolder=$CODEDROP /p:Version="$($gitVersion.FullSemVer)" /p:NoPackageAnalysis=true /nologo /v:q /fl /flp:"LogFile=$LOGDIR/msbuild.roundhouse.tasks.pack.log;Verbosity=n" /p:Configuration=Build /p:Platform="Any CPU"

"`n - Packaging netcoreapp2.1 global tool dotnet-roundhouse`n"
" - netcoreapp2.1 global tool dotnet-roundhouse"

dotnet publish -v q -nologo --no-restore product/roundhouse.console -p:NoPackageAnalysis=true -p:TargetFramework=netcoreapp2.1 -p:Version="$($gitVersion.FullSemVer)" -p:Configuration=Build -p:Platform="Any CPU"
dotnet pack -v q -nologo --no-restore --no-build product/roundhouse.console -p:NoPackageAnalysis=true -p:TargetFramework=netcoreapp2.1 -o ${PACKAGEDIR} -p:Version="$($gitVersion.FullSemVer)" -p:Configuration=Build -p:Platform="Any CPU"


dotnet publish -v q --no-restore product/roundhouse.console -p:Version="$($gitVersion.FullSemVer)" -p:NoPackageAnalysis=true -p:TargetFramework=netcoreapp2.1 -p:Version="$($gitVersion.FullSemVer)" -p:RunILMerge=false -p:Configuration=Build -p:Platform="Any CPU"
dotnet pack -v q --no-restore product/roundhouse.console -p:NoPackageAnalysis=true -p:TargetFramework=netcoreapp2.1 -o $CODEDROP/packages -p:Version="$($gitVersion.FullSemVer)" -p:RunILMerge=false -p:Configuration=Build -p:Platform="Any CPU"
# " * Packaging netcoreapp2.1 global tool dotnet-roundhouse`n"

# nuget pack -Verbosity quiet -outputdirectory ${PACKAGEDIR} .\product\roundhouse.console\roundhouse.tool.nuspec -Properties "Version=$($gitVersion.FullSemVer);NoPackageAnalysis=true"

# AppVeyor runs the test automagically, no need to run explicitly with nunit-console.exe.
# But we want to run the tests on localhost too.
@@ -64,13 +75,10 @@ If (! $onAppVeyor) {
"`n * Running unit tests`n"

# Find test projects
$testProjects = $(dir -r -i *.tests.csproj)
$testAssemblies = $(dir -r -i *.tests.dll)

$testProjects | % {
Push-Location $_.Directory
dotnet test -v q
Pop-Location
$testAssemblies | ? { $_.FullName -NotLike "*obj*" } | % {
dotnet vstest $_
}
}

Pop-Location
@@ -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>
@@ -9,14 +9,14 @@
<summary>RoundhousE - Professional Database Change and Versioning Management</summary>
<description>RoundhousE is a Professional Database Change and Versioning Management tool. Type rh /? for options</description>
<projectUrl>http://projectroundhouse.org</projectUrl>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
<license type="expression">Apache-2.0</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>roundhouse db migration database migrator chucknorris</tags>
<dependencies />
<iconUrl>https://raw.github.com/chucknorris/roundhouse/master/nuget/RoundhousE_Logo.NuGet.jpg</iconUrl>
<iconUrl>https://raw.github.com/chucknorris/roundhouse/master/nuget/RoundhousE_Logo.NuGet.jpg</iconUrl>
</metadata>
<files>
<file src="$mergedExe$" target="tools\" />
<file src="bin\net461\win7-x86\rh.exe" target="tools\" />
<file src="..\..\docs\legal\*" target="tools\" />
</files>
</package>
@@ -6,10 +6,10 @@
<version>$version$</version>
<authors>Rob Reynolds, Andy Davis, Erik A. Brandstadmoen</authors>
<owners>Rob Reynolds, Andy Davis, Erik A. Brandstadmoen</owners>
<summary>.NET Core global too for RoundhousE - Professional Database Change and Versioning Management</summary>
<summary>.NET Core global tool for RoundhousE - Professional Database Change and Versioning Management</summary>
<description>RoundhousE is a Professional Database Change and Versioning Management tool. Type rh /? for options</description>
<projectUrl>http://projectroundhouse.org</projectUrl>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
<license type="expression">Apache-2.0</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>roundhouse db migration database migrator chucknorris</tags>
<packageTypes>

0 comments on commit 83e393d

Please sign in to comment.
You can’t perform that action at this time.