From ac4386fd557f45a9be8a00d3a34b2a3f7d12f5a4 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Fri, 10 Feb 2017 16:33:05 +0100 Subject: [PATCH] Moved annotations to a separate package to reduce dependencies for messaging interface packages --- Publish.ps1 | 6 ++ .../DynamicQueueAttribute.cs | 0 .../ExchangeAttribute.cs | 0 .../MessageControllerAttribute.cs | 0 Tapeti.Annotations/Properties/AssemblyInfo.cs | 23 ++++++++ .../RequestAttribute.cs | 0 .../StaticQueueAttribute.cs | 0 Tapeti.Annotations/Tapeti.Annotations.csproj | 59 +++++++++++++++++++ Tapeti.Annotations/Tapeti.Annotations.nuspec | 16 +++++ Tapeti.Flow/Tapeti.Flow.csproj | 5 +- Tapeti.sln | 6 ++ Tapeti/Tapeti.csproj | 11 ++-- 12 files changed, 120 insertions(+), 6 deletions(-) rename {Tapeti/Annotations => Tapeti.Annotations}/DynamicQueueAttribute.cs (100%) rename {Tapeti/Annotations => Tapeti.Annotations}/ExchangeAttribute.cs (100%) rename {Tapeti/Annotations => Tapeti.Annotations}/MessageControllerAttribute.cs (100%) create mode 100644 Tapeti.Annotations/Properties/AssemblyInfo.cs rename {Tapeti.Flow/Annotations => Tapeti.Annotations}/RequestAttribute.cs (100%) rename {Tapeti/Annotations => Tapeti.Annotations}/StaticQueueAttribute.cs (100%) create mode 100644 Tapeti.Annotations/Tapeti.Annotations.csproj create mode 100644 Tapeti.Annotations/Tapeti.Annotations.nuspec diff --git a/Publish.ps1 b/Publish.ps1 index b7ad3d4..341b1cc 100644 --- a/Publish.ps1 +++ b/Publish.ps1 @@ -7,6 +7,9 @@ $nugetkey = Get-Content .nuget.apikey Write-Host "Publishing version $($version.NuGetVersion) using API key $($nugetkey)"-Foreground Cyan +Write-Host "Packing Tapeti.Annotations.csproj" -Foreground Blue +NuGet.exe pack Tapeti\Tapeti.Annotations.csproj -OutputDir publish -Version $version.NuGetVersion + Write-Host "Packing Tapeti.csproj" -Foreground Blue NuGet.exe pack Tapeti\Tapeti.csproj -OutputDir publish -Version $version.NuGetVersion @@ -18,6 +21,9 @@ NuGet.exe pack Tapeti.SimpleInjector\Tapeti.SimpleInjector.csproj -OutputDir pub +Write-Host "Pushing Tapeti.Annotations.csproj" -Foreground Blue +NuGet.exe push publish\X2Software.Tapeti.Annotations.$($version.NuGetVersion).nupkg -apikey $nugetkey -Source https://www.nuget.org/api/v2/package + Write-Host "Pushing Tapeti.csproj" -Foreground Blue NuGet.exe push publish\X2Software.Tapeti.$($version.NuGetVersion).nupkg -apikey $nugetkey -Source https://www.nuget.org/api/v2/package diff --git a/Tapeti/Annotations/DynamicQueueAttribute.cs b/Tapeti.Annotations/DynamicQueueAttribute.cs similarity index 100% rename from Tapeti/Annotations/DynamicQueueAttribute.cs rename to Tapeti.Annotations/DynamicQueueAttribute.cs diff --git a/Tapeti/Annotations/ExchangeAttribute.cs b/Tapeti.Annotations/ExchangeAttribute.cs similarity index 100% rename from Tapeti/Annotations/ExchangeAttribute.cs rename to Tapeti.Annotations/ExchangeAttribute.cs diff --git a/Tapeti/Annotations/MessageControllerAttribute.cs b/Tapeti.Annotations/MessageControllerAttribute.cs similarity index 100% rename from Tapeti/Annotations/MessageControllerAttribute.cs rename to Tapeti.Annotations/MessageControllerAttribute.cs diff --git a/Tapeti.Annotations/Properties/AssemblyInfo.cs b/Tapeti.Annotations/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..82731ed --- /dev/null +++ b/Tapeti.Annotations/Properties/AssemblyInfo.cs @@ -0,0 +1,23 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Tapeti.Annotations")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Tapeti.Annotations")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c4897d64-d04e-4ae9-bd98-d64295d1d13a")] diff --git a/Tapeti.Flow/Annotations/RequestAttribute.cs b/Tapeti.Annotations/RequestAttribute.cs similarity index 100% rename from Tapeti.Flow/Annotations/RequestAttribute.cs rename to Tapeti.Annotations/RequestAttribute.cs diff --git a/Tapeti/Annotations/StaticQueueAttribute.cs b/Tapeti.Annotations/StaticQueueAttribute.cs similarity index 100% rename from Tapeti/Annotations/StaticQueueAttribute.cs rename to Tapeti.Annotations/StaticQueueAttribute.cs diff --git a/Tapeti.Annotations/Tapeti.Annotations.csproj b/Tapeti.Annotations/Tapeti.Annotations.csproj new file mode 100644 index 0000000..55b874f --- /dev/null +++ b/Tapeti.Annotations/Tapeti.Annotations.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {C4897D64-D04E-4AE9-BD98-D64295D1D13A} + Library + Properties + Tapeti.Annotations + Tapeti.Annotations + v4.6.1 + 512 + + + + true + full + false + lib\net46\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + lib\net46\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Tapeti.Annotations/Tapeti.Annotations.nuspec b/Tapeti.Annotations/Tapeti.Annotations.nuspec new file mode 100644 index 0000000..2ffc9d0 --- /dev/null +++ b/Tapeti.Annotations/Tapeti.Annotations.nuspec @@ -0,0 +1,16 @@ + + + + X2Software.Tapeti.Annotations + $version$ + $title$ + Mark van Renswoude + Mark van Renswoude + https://git.x2software.net/pub/tapeti/raw/master/UNLICENSE + https://git.x2software.net/pub/tapeti + false + Annotations for Tapeti + + rabbitmq tapeti + + \ No newline at end of file diff --git a/Tapeti.Flow/Tapeti.Flow.csproj b/Tapeti.Flow/Tapeti.Flow.csproj index 6ca628d..bd90e39 100644 --- a/Tapeti.Flow/Tapeti.Flow.csproj +++ b/Tapeti.Flow/Tapeti.Flow.csproj @@ -50,7 +50,6 @@ - @@ -72,6 +71,10 @@ + + {c4897d64-d04e-4ae9-bd98-d64295d1d13a} + Tapeti.Annotations + {8ab4fd33-4aaa-465c-8579-9db3f3b23813} Tapeti diff --git a/Tapeti.sln b/Tapeti.sln index b04e494..33bd48a 100644 --- a/Tapeti.sln +++ b/Tapeti.sln @@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tapeti.Flow", "Tapeti.Flow\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tapeti.Flow.SQL", "Tapeti.Flow.SQL\Tapeti.Flow.SQL.csproj", "{6DE7B122-EB6A-46B8-AEAF-F84DDE18F9C7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tapeti.Annotations", "Tapeti.Annotations\Tapeti.Annotations.csproj", "{C4897D64-D04E-4AE9-BD98-D64295D1D13A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -39,6 +41,10 @@ Global {6DE7B122-EB6A-46B8-AEAF-F84DDE18F9C7}.Debug|Any CPU.Build.0 = Debug|Any CPU {6DE7B122-EB6A-46B8-AEAF-F84DDE18F9C7}.Release|Any CPU.ActiveCfg = Release|Any CPU {6DE7B122-EB6A-46B8-AEAF-F84DDE18F9C7}.Release|Any CPU.Build.0 = Release|Any CPU + {C4897D64-D04E-4AE9-BD98-D64295D1D13A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C4897D64-D04E-4AE9-BD98-D64295D1D13A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C4897D64-D04E-4AE9-BD98-D64295D1D13A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C4897D64-D04E-4AE9-BD98-D64295D1D13A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Tapeti/Tapeti.csproj b/Tapeti/Tapeti.csproj index 124dcb3..71c0ec5 100644 --- a/Tapeti/Tapeti.csproj +++ b/Tapeti/Tapeti.csproj @@ -50,10 +50,6 @@ - - - - @@ -101,7 +97,12 @@ Always - + + + {c4897d64-d04e-4ae9-bd98-d64295d1d13a} + Tapeti.Annotations + +