-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 380: migrate library to .net standard, add package output a…
…s nuget +semver: minor Related work items: #906
- Loading branch information
Showing
43 changed files
with
739 additions
and
368 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
107 changes: 41 additions & 66 deletions
107
CustomSSDTMigrationScripts/CustomSSDTMigrationScripts.csproj
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,77 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{0032D2D5-1950-4A66-8C07-0CD222EA5968}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>CustomSSDTMigrationScripts</RootNamespace> | ||
<AssemblyName>CustomSSDTMigrationScripts</AssemblyName> | ||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<PublishSingleFile>true</PublishSingleFile> | ||
<AssemblyVersion>0.0.1.0</AssemblyVersion> | ||
<FileVersion>0.0.1.0</FileVersion> | ||
<Version>0.0.1.0</Version> | ||
</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> | ||
|
||
<PropertyGroup> | ||
<Authors>4tecture GmbH</Authors> | ||
<Company>4tecture GmbH</Company> | ||
<Copyright>Copyright 2020 (c) 4tecture GmbH. All rights reserved.</Copyright> | ||
<PackageId>4tecture.CustomSSDTMigrationScripts</PackageId> | ||
<PackageProjectUrl>https://github.com/4tecture/SSDTDataMigration</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/4tecture/SSDTDataMigration.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Description>Custom SSDT Migration Scripts Extension</Description> | ||
<Product>Custom SSDT Migration Scripts</Product> | ||
</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> | ||
|
||
<PropertyGroup> | ||
<developmentDependency>true</developmentDependency> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="Microsoft.Build.Tasks.v4.0" /> | ||
<Reference Include="Microsoft.Build.Utilities.v4.0" /> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
<None Update="CustomSSDTMigrationScripts.props" Pack="true" PackagePath="\build\4tecture.CustomSSDTMigrationScripts.props"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="Constants\ScriptTypes.cs" /> | ||
<Compile Include="Constants\ScriptExecutionFilterMode.cs" /> | ||
<Compile Include="Constants\SqlSnippets.cs" /> | ||
<Compile Include="Helper\Logger.cs" /> | ||
<Compile Include="Provider\ISettingsProvider.cs" /> | ||
<Compile Include="Provider\JsonSettingsProvider.cs" /> | ||
<Compile Include="Settings\ScriptSettings.cs" /> | ||
<Compile Include="Settings\Settings.cs" /> | ||
<Compile Include="Tasks\ReferenceDataScriptTask.cs" /> | ||
<Compile Include="Tasks\PrePostScriptTaskBase.cs" /> | ||
<Compile Include="Tasks\PostScriptTask.cs" /> | ||
<Compile Include="Tasks\ScriptBaseTask.cs" /> | ||
<Compile Include="Tasks\PreScriptTask.cs" /> | ||
<Compile Include="Helper\TSqlHelper.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Helper\Script.cs" /> | ||
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.6.0" /> | ||
<PackageReference Include="System.Text.Json" Version="4.7.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="CustomSSDTMigrationScripts.props"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
<None Include="$(OutputPath)\*.dll" Exclude="$(OutputPath)\*analyser*.dll;$(OutputPath)\*analysis*.dll"> | ||
<Pack>true</Pack> | ||
<PackagePath>tools</PackagePath> | ||
<IncludeInPackage>true</IncludeInPackage> | ||
</None> | ||
<None Include="$(OutputPath)\*.runtimeconfig.json"> | ||
<Pack>true</Pack> | ||
<PackagePath>tools</PackagePath> | ||
<IncludeInPackage>true</IncludeInPackage> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Newtonsoft.Json"> | ||
<Version>11.0.2</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PostBuildEvent> | ||
</PostBuildEvent> | ||
</PropertyGroup> | ||
</Project> | ||
|
||
</Project> |
11 changes: 5 additions & 6 deletions
11
CustomSSDTMigrationScripts/CustomSSDTMigrationScripts.props
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,14 +1,13 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Tasks --> | ||
<UsingTask TaskName="PreScriptTask" AssemblyFile="CustomSSDTMigrationScripts.dll"/> | ||
<UsingTask TaskName="PostScriptTask" AssemblyFile="CustomSSDTMigrationScripts.dll"/> | ||
<UsingTask TaskName="ReferenceDataScriptTask" AssemblyFile="CustomSSDTMigrationScripts.dll"/> | ||
<UsingTask TaskName="PreScriptTask" AssemblyFile="..\tools\CustomSSDTMigrationScripts.dll" /> | ||
<UsingTask TaskName="PostScriptTask" AssemblyFile="..\tools\CustomSSDTMigrationScripts.dll" /> | ||
<UsingTask TaskName="ReferenceDataScriptTask" AssemblyFile="..\tools\CustomSSDTMigrationScripts.dll" /> | ||
|
||
<Target Name="AddCustomSSDTPreAndPostScripts" AfterTargets="BeforeBuild"> | ||
<PreScriptTask ProjectRootDirectory="$(MSBuildProjectDirectory)" /> | ||
<PostScriptTask ProjectRootDirectory="$(MSBuildProjectDirectory)" /> | ||
<ReferenceDataScriptTask ProjectRootDirectory="$(MSBuildProjectDirectory)" /> | ||
</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 was deleted.
Oops, something went wrong.
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,31 +1,31 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CustomSSDTMigrationScripts | ||
{ | ||
public class ScriptSettings | ||
{ | ||
[JsonProperty("ScriptBaseDirectory")] | ||
[JsonPropertyName("ScriptBaseDirectory")] | ||
public string ScriptBaseDirectory { get; set; } | ||
|
||
[JsonProperty("ScriptNamePattern")] | ||
[JsonPropertyName("ScriptNamePattern")] | ||
public string ScriptNamePattern { get; set; } | ||
|
||
[JsonProperty("ScriptRecursiveSearch")] | ||
[JsonPropertyName("ScriptRecursiveSearch")] | ||
public bool? ScriptRecursiveSearch { get; set; } | ||
|
||
[JsonProperty("GeneratedScriptPath")] | ||
[JsonPropertyName("GeneratedScriptPath")] | ||
public string GeneratedScriptPath { get; set; } | ||
|
||
[JsonProperty("ExecutionFilterMode")] | ||
[JsonPropertyName("ExecutionFilterMode")] | ||
public string ExecutionFilterMode { get; set; } | ||
|
||
[JsonProperty("ExecutionFilterValue")] | ||
[JsonPropertyName("ExecutionFilterValue")] | ||
public string ExecutionFilterValue { get; set; } | ||
|
||
[JsonProperty("TreatScriptNamePatternMismatchAsError")] | ||
[JsonPropertyName("TreatScriptNamePatternMismatchAsError")] | ||
public bool? TreatScriptNamePatternMismatchAsError { get; set; } | ||
|
||
[JsonProperty("TreatHashMismatchAsError")] | ||
[JsonPropertyName("TreatHashMismatchAsError")] | ||
public bool? TreatHashMismatchAsError { get; set; } | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
mode: Mainline |
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.