From b8a8938bb82db3627a63a50b104fa299718318a8 Mon Sep 17 00:00:00 2001 From: Marcel Nellesen Date: Wed, 17 Feb 2021 14:01:20 +0100 Subject: [PATCH 1/4] Breaking: Migrated Api to dotnet5.0 (coscine/issues#1335) --- .gitlab-ci.yml | 79 +-- LICENSE | 2 +- build.cake | 351 ---------- build.ps1 | 255 -------- build.sh | 122 ---- src/NotificationBus/App.config | 216 ------- src/NotificationBus/FodyWeavers.xml | 3 - src/NotificationBus/FodyWeavers.xsd | 111 ---- src/NotificationBus/NotificationBus.csproj | 598 +----------------- .../Properties/AssemblyInfo.cs | 11 +- src/NotificationBus/packages.config | 169 ----- tools/packages.config | 4 - 12 files changed, 43 insertions(+), 1878 deletions(-) delete mode 100644 build.cake delete mode 100644 build.ps1 delete mode 100644 build.sh delete mode 100644 src/NotificationBus/App.config delete mode 100644 src/NotificationBus/FodyWeavers.xml delete mode 100644 src/NotificationBus/FodyWeavers.xsd delete mode 100644 src/NotificationBus/packages.config delete mode 100644 tools/packages.config diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b339a45..ce837b6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,55 +1,28 @@ +include: + - project: coscine/tools/gitlab-ci-templates + file: + - /dotnet.yml + stages: + - build - test - - release - - releasetrigger - -cake:Test: - stage: test - script: - - PowerShell .\build.ps1 -Target Test -Configuration Debug - variables: - GIT_STRATEGY: clone - artifacts: - reports: - junit: "./Artifacts/TestResults.xml" - paths: - - "./Artifacts/*" - except: - - master - - tags - -cake:Release: - stage: release - script: - - PowerShell .\build.ps1 -Target Release -Configuration Release --nugetApiKey="${NUGET_API_KEY}" - variables: - GIT_STRATEGY: clone - dependencies: - - cake:Test - artifacts: - paths: - - "./Artifacts/*" - only: - - tags - -cake:Prerelease: - stage: release - script: - - PowerShell .\build.ps1 -Target Prerelease -Configuration Release - variables: - GIT_STRATEGY: clone - dependencies: - - cake:Test - artifacts: - paths: - - "./Artifacts/*" - except: - - tags - - master - -cake:GitlabRelease: - stage: releasetrigger - script: - - PowerShell .\build.ps1 -Target GitlabRelease --GitlabProjectPath="${CI_PROJECT_PATH}" --gitlabProjectId="${CI_PROJECT_ID}" --gitlabToken="${GITLAB_TOKEN}" - only: - - master \ No newline at end of file + - publish + +variables: + DOTNET_MAIN_PROJECT_FOLDER: Notification + +build-branch: + extends: .build-branch + +test: + extends: .test + +publish-branch-prerelease: + extends: .publish-branch-prerelease + +publish-gitlab-release: + extends: .publish-gitlab-release + +publish-master-release: + extends: .publish-master-release + diff --git a/LICENSE b/LICENSE index 1cacbda..5b003aa 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 RWTH Aachen University +Copyright (c) 2021 RWTH Aachen University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/build.cake b/build.cake deleted file mode 100644 index 81648ff..0000000 --- a/build.cake +++ /dev/null @@ -1,351 +0,0 @@ -#tool nuget:?package=NUnit.ConsoleRunner&version=3.10.0 -#tool nuget:?package=vswhere&version=2.8.4 -#tool nuget:?package=GitVersion.CommandLine&version=5.1.3 - -#addin nuget:https://api.nuget.org/v3/index.json?package=Cake.Json&version=4.0.0 -#addin nuget:https://api.nuget.org/v3/index.json?package=Newtonsoft.Json&version=11.0.2 -#addin nuget:https://api.nuget.org/v3/index.json?package=Cake.FileHelpers&version=3.2.1 - -using System.Net; -using System.Net.Http; - -// Commandline arguments -var target = Argument("target", "Default"); -var configuration = Argument("configuration", "Release"); -var nugetApiKey = Argument("nugetApiKey", null); -var version = Argument("nugetVersion", ""); -var gitlabProjectPath = Argument("gitlabProjectPath", ""); -var gitlabProjectId = Argument("gitlabProjectId", ""); -var gitlabToken = Argument("gitlabToken", ""); - -// Define directories -var projects = GetFiles("./**/*.csproj"); -var artifactsDir = Directory("./Artifacts"); -string nupkgDir; -var solutionFile = GetFiles("./**/*.sln").First(); -var projectName = solutionFile.GetFilenameWithoutExtension().ToString(); -var nugetSource = "https://api.nuget.org/v3/index.json"; -var assemblyInfoSubPath = "Properties/AssemblyInfo.cs"; -var semanticVersion = ""; -string localNugetFeed; - -// get latest MSBuild version -var vsLatest = VSWhereLatest(); -var msBuildPathX64 = (vsLatest == null) ? null : vsLatest.CombineWithFilePath("./MSBuild/Current/Bin/MSBuild.exe"); - -Setup(context =>{ - nupkgDir = $"{artifactsDir.ToString()}/nupkg"; - var branch = GitVersion(new GitVersionSettings { - UpdateAssemblyInfo = false - }).BranchName.Replace("/", "-"); - - localNugetFeed = $"C:\\coscine\\LocalNugetFeeds\\{branch}"; - Information("{0}", branch); - Information("Started at {0}", DateTime.Now); -}); - -Teardown(context =>{ - Information("Finished at {0}", DateTime.Now); -}); - -Task("Clean") -.Description("Cleans all build and artifacts directories") -.Does(() =>{ - var settings = new DeleteDirectorySettings { - Recursive = true, - Force = true - }; - - var directoriesToClean = new List(); - - foreach(var project in projects) { - directoriesToClean.Add(Directory($"{project.GetDirectory()}/obj")); - directoriesToClean.Add(Directory($"{project.GetDirectory()}/bin")); - } - - directoriesToClean.Add(artifactsDir); - - foreach(var dir in directoriesToClean) { - Information("Cleaning {0}", dir.ToString()); - if (DirectoryExists(dir)) { - DeleteDirectory(dir, settings); - CreateDirectory(dir); - } else { - CreateDirectory(dir); - } - } -}); - -Task("Restore") -.Does(() =>{ - NuGetRestore(solutionFile, new NuGetRestoreSettings { - NoCache = true, - FallbackSource = new List{ localNugetFeed }, - }); -}); - -Task("Test") -.IsDependentOn("Build") -.Does(() =>{ - NUnit3($"./src/**/bin/{configuration}/*.Tests.dll", new NUnit3Settings { - // generate the xml file - NoResults = false, - Results = new NUnit3Result[] { - new NUnit3Result() { - FileName = $"{artifactsDir}/TestResults.xml", - Transform = $"{Context.Environment.WorkingDirectory}/nunit3-junit.xslt" - } - } - }); -}); - -Task("GitVersion") -.Does(() => { - if(string.IsNullOrWhiteSpace(version)) { - version = GitVersion(new GitVersionSettings { - UpdateAssemblyInfo = false - }).NuGetVersionV2; - } - var index = version.IndexOf("-"); - semanticVersion = index > 0 ? version.Substring(0, index) : version; - Information("Version: {0}, SemanticVersion: {1}", version, semanticVersion); -}); - -Task("UpdateAssemblyInfo") -.Does(() =>{ - var index = version.IndexOf("-"); - var semanticVersion = index > 0 ? version.Substring(0, index) : version; - - foreach(var project in projects) { - CreateAssemblyInfo($"{project.GetDirectory()}/{assemblyInfoSubPath}", new AssemblyInfoSettings { - Product = project.GetFilenameWithoutExtension().ToString(), - Title = project.GetFilenameWithoutExtension().ToString(), - Company = "IT Center, RWTH Aachen University", - Version = semanticVersion, - FileVersion = semanticVersion, - InformationalVersion = version, - Copyright = $"{DateTime.Now.Year} IT Center, RWTH Aachen University", - Description = $"{project.GetFilenameWithoutExtension().ToString()} is a part of the CoScInE group." - }); - } -}); - -Task("GitlabRelease") -.IsDependentOn("GitVersion") -.Does(() => { - var client = new HttpClient(); - client.DefaultRequestHeaders.Add("PRIVATE-TOKEN", gitlabToken); - - // get the latest tag - var result = client.GetAsync($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags").Result; - if(!result.IsSuccessStatusCode) { - throw new Exception("Tag query failed."); - } - - var tagList = result.Content.ReadAsStringAsync().Result; - var jArray = JArray.Parse(tagList); - // null if not tags exists yet - var lastTag = jArray.Select(x => x["name"]).FirstOrDefault(); - - var url = $"https://git.rwth-aachen.de/{gitlabProjectPath}"; - - if(url.EndsWith(".git")) { - url = url.Substring(0, url.Length - ".git".Length); - } - - if(url.EndsWith("/")) { - url = url.Substring(0, url.Length - 1); - } - - var description = ""; - // First line of description - // Gitlab compare url, if something can be compared - if(lastTag == null) { - description = $"# {semanticVersion} ({DateTime.Now.Year}-{DateTime.Now.Month}-{DateTime.Now.Day})\n\n\n"; - } else { - description = $"# [{semanticVersion}]({url}/compare/{lastTag}...v{semanticVersion}) ({DateTime.Now.Year}-{DateTime.Now.Month}-{DateTime.Now.Day})\n\n\n"; - } - - // From when will messages be parsed, null results in all messages - var logParam = ""; - if(lastTag != null) { - logParam = $"{lastTag}..Head"; - } - - Information(lastTag); - - IEnumerable redirectedStandardOutput; - var exitCodeWithArgument = - StartProcess( - "git", - new ProcessSettings { - Arguments = $"log {logParam} --pretty=format:HASH%h:%B", - RedirectStandardOutput = true - }, - out redirectedStandardOutput - ); - - var prefixList = new Dictionary>{ - {"Fix", new List()}, - {"Update", new List()}, - {"New", new List()}, - {"Breaking", new List()}, - {"Docs", new List()}, - {"Build", new List()}, - {"Upgrade", new List()}, - {"Chore", new List()}, - }; - - var currentHash = ""; - // Output last line of process output. - foreach(var line in redirectedStandardOutput) { - var commitMessage = ""; - if(line.StartsWith("HASH")) { - currentHash = line.Substring("HASH".Length); - currentHash = currentHash.Substring(0, currentHash.IndexOf(":")); - commitMessage = line.Substring(currentHash.Length + line.IndexOf(currentHash) + 1); - } else { - commitMessage = line; - } - - foreach(var kv in prefixList) { - if(commitMessage.StartsWith($"{kv.Key}:")) { - kv.Value.Add($"* {commitMessage.Substring(kv.Key.Length + 1).Trim()} {currentHash}"); - break; - } - }; - } - - foreach(var kv in prefixList) { - if(kv.Value.Any()) { - description += $" ### {kv.Key}\n\n"; - foreach(var line in kv.Value) { - description += $"{line}\n"; - } - description += "\n"; - } - } - // correctly escape the json newlines - description = description.Replace("\n", "\\n"); - Information("Description: {0}", description); - - // create tag - result = client.PostAsync($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master", null).Result; - Information("Create tag: {0}", result.Content.ReadAsStringAsync().Result); - if(!result.IsSuccessStatusCode) { - throw new Exception("Tag creation failed."); - } - - // create release - var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\", \"description\": \"{description}\"}}"; - var content = new StringContent(json, Encoding.UTF8, "application/json"); - result = client.PostAsync($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", content).Result; - Information("Create release: {0}", result.Content.ReadAsStringAsync().Result); - if(!result.IsSuccessStatusCode) { - throw new Exception("Release creation failed."); - } -}); - -Task("Build") -.IsDependentOn("Clean") -.IsDependentOn("GitVersion") -.IsDependentOn("UpdateAssemblyInfo") -.IsDependentOn("Restore") -.Does(() =>{ - var frameworkSettingsWindows = new MSBuildSettings { - Configuration = configuration - }; - - frameworkSettingsWindows.ToolPath = msBuildPathX64; - frameworkSettingsWindows.WorkingDirectory = Context.Environment.WorkingDirectory; - - if (configuration.Equals("Release")) { - frameworkSettingsWindows.WithProperty("DebugSymbols", "false"); - frameworkSettingsWindows.WithProperty("DebugType", "None"); - } - - // Use MSBuild - Information("Building {0}", solutionFile); - MSBuild(solutionFile, frameworkSettingsWindows); -}); - -Task("NugetPack") -.IsDependentOn("Build") -.Does(() =>{ - foreach(var project in projects) { - var nuspec = $"{project.GetDirectory()}/{project.GetFilenameWithoutExtension()}.nuspec"; - if(!project.ToString().EndsWith(".Tests") && FileExists(nuspec)) - { - var settings = new NuGetPackSettings - { - OutputDirectory = nupkgDir, - Version = version, - Properties = new Dictionary - { - { "Configuration", configuration} - } - }; - NuGetPack(project.ToString(), settings); - } - } -}); - -Task("NugetPush") -.IsDependentOn("NugetPack") -.Does(() =>{ - var nupkgs = GetFiles($"{nupkgDir}/*.nupkg"); - Information("Need to push {0} packages", nupkgs.Count); - if(!String.IsNullOrWhiteSpace(nugetApiKey)) { - foreach(var nupkg in nupkgs) { - Information("Pushing {0}", nupkg); - NuGetPush(nupkg, new NuGetPushSettings { - Source = nugetSource, - ApiKey = nugetApiKey - }); - } - } else { - Information("NugetApiKey is not set. Can't push."); - throw new Exception("NugetApiKey is not set. Can't push."); - } -}); - -Task("CopyToArtifacts") -.Does(() =>{ - foreach(var project in projects) { - if(!project.GetDirectory().ToString().EndsWith(".Tests") - && !FileExists($"{project.GetDirectory()}/{project.GetFilenameWithoutExtension()}.nuspec") - && DirectoryExists(project.GetDirectory())) - { - Information("Copying {0}/* to {1}", $"{project.GetDirectory()}/bin/{configuration}", artifactsDir); - CopyDirectory($"{project.GetDirectory()}/bin/{configuration}/", artifactsDir); - } - } -}); - -Task("NugetPushLocal") -.IsDependentOn("NugetPack") -.Does(() =>{ - var nupkgs = GetFiles($"{nupkgDir}/*.nupkg"); - foreach(var nupkg in nupkgs) { - if(!DirectoryExists(localNugetFeed)) { - CreateDirectory(localNugetFeed); - } - CopyFile(nupkg.ToString(), $"{localNugetFeed}\\{nupkg.GetFilename()}"); - } -}); - -Task("Prerelease") -.IsDependentOn("Build") -.IsDependentOn("CopyToArtifacts") -.IsDependentOn("NugetPushLocal"); - -Task("Release") -.IsDependentOn("NugetPack") -.IsDependentOn("CopyToArtifacts") -.IsDependentOn("NugetPushLocal") -.IsDependentOn("NugetPush"); - -Task("Default") -.IsDependentOn("Test"); - -RunTarget(target); diff --git a/build.ps1 b/build.ps1 deleted file mode 100644 index f83382e..0000000 --- a/build.ps1 +++ /dev/null @@ -1,255 +0,0 @@ -#The MIT License (MIT) -# -#Copyright (c) 2014 - 2016 Patrik Svensson, Mattias Karlsson, Gary Ewan Park and contributors -# -#Permission is hereby granted, free of charge, to any person obtaining a copy of -#this software and associated documentation files (the "Software"), to deal in -#the Software without restriction, including without limitation the rights to -#use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -#the Software, and to permit persons to whom the Software is furnished to do so, -#subject to the following conditions: -# -#The above copyright notice and this permission notice shall be included in all -#copies or substantial portions of the Software. -# -#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -#FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -#COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -#IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -#CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -########################################################################## -# This is the Cake bootstrapper script for PowerShell. -# This file was downloaded from https://github.com/cake-build/resources -# Feel free to change this file to fit your needs. -########################################################################## - -<# - -.SYNOPSIS -This is a Powershell script to bootstrap a Cake build. - -.DESCRIPTION -This Powershell script will download NuGet if missing, restore NuGet tools (including Cake) -and execute your Cake build script with the parameters you provide. - -.PARAMETER Script -The build script to execute. -.PARAMETER Target -The build script target to run. -.PARAMETER Configuration -The build configuration to use. -.PARAMETER Verbosity -Specifies the amount of information to be displayed. -.PARAMETER ShowDescription -Shows description about tasks. -.PARAMETER DryRun -Performs a dry run. -.PARAMETER Experimental -Uses the nightly builds of the Roslyn script engine. -.PARAMETER Mono -Uses the Mono Compiler rather than the Roslyn script engine. -.PARAMETER SkipToolPackageRestore -Skips restoring of packages. -.PARAMETER ScriptArgs -Remaining arguments are added here. - -.LINK -https://cakebuild.net - -#> - -[CmdletBinding()] -Param( - [string]$Script = "build.cake", - [string]$Target, - [string]$Configuration, - [ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")] - [string]$Verbosity, - [switch]$ShowDescription, - [Alias("WhatIf", "Noop")] - [switch]$DryRun, - [switch]$Experimental, - [switch]$Mono, - [switch]$SkipToolPackageRestore, - [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)] - [string[]]$ScriptArgs -) - -[Reflection.Assembly]::LoadWithPartialName("System.Security") | Out-Null -function MD5HashFile([string] $filePath) -{ - if ([string]::IsNullOrEmpty($filePath) -or !(Test-Path $filePath -PathType Leaf)) - { - return $null - } - - [System.IO.Stream] $file = $null; - [System.Security.Cryptography.MD5] $md5 = $null; - try - { - $md5 = [System.Security.Cryptography.MD5]::Create() - $file = [System.IO.File]::OpenRead($filePath) - return [System.BitConverter]::ToString($md5.ComputeHash($file)) - } - finally - { - if ($file -ne $null) - { - $file.Dispose() - } - } -} - -function GetProxyEnabledWebClient -{ - $wc = New-Object System.Net.WebClient - $proxy = [System.Net.WebRequest]::GetSystemWebProxy() - $proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials - $wc.Proxy = $proxy - return $wc -} - -Write-Host "Preparing to run build script..." - -if(!$PSScriptRoot){ - $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent -} - -$TOOLS_DIR = Join-Path $PSScriptRoot "tools" -$ADDINS_DIR = Join-Path $TOOLS_DIR "Addins" -$MODULES_DIR = Join-Path $TOOLS_DIR "Modules" -$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe" -$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe" -$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config" -$PACKAGES_CONFIG_MD5 = Join-Path $TOOLS_DIR "packages.config.md5sum" -$ADDINS_PACKAGES_CONFIG = Join-Path $ADDINS_DIR "packages.config" -$MODULES_PACKAGES_CONFIG = Join-Path $MODULES_DIR "packages.config" - -# Make sure tools folder exists -if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) { - Write-Verbose -Message "Creating tools directory..." - New-Item -Path $TOOLS_DIR -Type directory | out-null -} - -# Make sure that packages.config exist. -if (!(Test-Path $PACKAGES_CONFIG)) { - Write-Verbose -Message "Downloading packages.config..." - try { - $wc = GetProxyEnabledWebClient - $wc.DownloadFile("https://cakebuild.net/download/bootstrapper/packages", $PACKAGES_CONFIG) } catch { - Throw "Could not download packages.config." - } -} - -# Try find NuGet.exe in path if not exists -if (!(Test-Path $NUGET_EXE)) { - Write-Verbose -Message "Trying to find nuget.exe in PATH..." - $existingPaths = $Env:Path -Split ';' | Where-Object { (![string]::IsNullOrEmpty($_)) -and (Test-Path $_ -PathType Container) } - $NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1 - if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) { - Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)." - $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName - } -} - -# Try download NuGet.exe if not exists -if (!(Test-Path $NUGET_EXE)) { - Write-Verbose -Message "Downloading NuGet.exe..." - try { - $wc = GetProxyEnabledWebClient - $wc.DownloadFile($NUGET_URL, $NUGET_EXE) - } catch { - Throw "Could not download NuGet.exe." - } -} - -# Save nuget.exe path to environment to be available to child processed -$ENV:NUGET_EXE = $NUGET_EXE - -# Restore tools from NuGet? -if(-Not $SkipToolPackageRestore.IsPresent) { - Push-Location - Set-Location $TOOLS_DIR - - # Check for changes in packages.config and remove installed tools if true. - [string] $md5Hash = MD5HashFile($PACKAGES_CONFIG) - if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or - ($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) { - Write-Verbose -Message "Missing or changed package.config hash..." - Remove-Item * -Recurse -Exclude packages.config,nuget.exe - } - - Write-Verbose -Message "Restoring tools from NuGet..." - $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$TOOLS_DIR`"" - - if ($LASTEXITCODE -ne 0) { - Throw "An error occurred while restoring NuGet tools." - } - else - { - $md5Hash | Out-File $PACKAGES_CONFIG_MD5 -Encoding "ASCII" - } - Write-Verbose -Message ($NuGetOutput | out-string) - - Pop-Location -} - -# Restore addins from NuGet -if (Test-Path $ADDINS_PACKAGES_CONFIG) { - Push-Location - Set-Location $ADDINS_DIR - - Write-Verbose -Message "Restoring addins from NuGet..." - $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$ADDINS_DIR`"" - - if ($LASTEXITCODE -ne 0) { - Throw "An error occurred while restoring NuGet addins." - } - - Write-Verbose -Message ($NuGetOutput | out-string) - - Pop-Location -} - -# Restore modules from NuGet -if (Test-Path $MODULES_PACKAGES_CONFIG) { - Push-Location - Set-Location $MODULES_DIR - - Write-Verbose -Message "Restoring modules from NuGet..." - $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$MODULES_DIR`"" - - if ($LASTEXITCODE -ne 0) { - Throw "An error occurred while restoring NuGet modules." - } - - Write-Verbose -Message ($NuGetOutput | out-string) - - Pop-Location -} - -# Make sure that Cake has been installed. -if (!(Test-Path $CAKE_EXE)) { - Throw "Could not find Cake.exe at $CAKE_EXE" -} - - - -# Build Cake arguments -$cakeArguments = @("$Script"); -if ($Target) { $cakeArguments += "-target=$Target" } -if ($Configuration) { $cakeArguments += "-configuration=$Configuration" } -if ($Verbosity) { $cakeArguments += "-verbosity=$Verbosity" } -if ($ShowDescription) { $cakeArguments += "-showdescription" } -if ($DryRun) { $cakeArguments += "-dryrun" } -if ($Experimental) { $cakeArguments += "-experimental" } -if ($Mono) { $cakeArguments += "-mono" } -$cakeArguments += $ScriptArgs - -# Start Cake -Write-Host "Running build script..." -&$CAKE_EXE $cakeArguments -exit $LASTEXITCODE diff --git a/build.sh b/build.sh deleted file mode 100644 index d088917..0000000 --- a/build.sh +++ /dev/null @@ -1,122 +0,0 @@ -#!/usr/bin/env bash - -#The MIT License (MIT) -# -#Copyright (c) 2014 - 2016 Patrik Svensson, Mattias Karlsson, Gary Ewan Park and contributors -# -#Permission is hereby granted, free of charge, to any person obtaining a copy of -#this software and associated documentation files (the "Software"), to deal in -#the Software without restriction, including without limitation the rights to -#use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -#the Software, and to permit persons to whom the Software is furnished to do so, -#subject to the following conditions: -# -#The above copyright notice and this permission notice shall be included in all -#copies or substantial portions of the Software. -# -#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -#FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -#COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -#IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -#CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -########################################################################## -# This is the Cake bootstrapper script for Linux and OS X. -# This file was downloaded from https://github.com/cake-build/resources -# Feel free to change this file to fit your needs. -########################################################################## - -# Define directories. -SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -TOOLS_DIR=$SCRIPT_DIR/tools -NUGET_EXE=$TOOLS_DIR/nuget.exe -CAKE_EXE=$TOOLS_DIR/Cake/Cake.exe -PACKAGES_CONFIG=$TOOLS_DIR/packages.config -PACKAGES_CONFIG_MD5=$TOOLS_DIR/packages.config.md5sum - -# Define md5sum or md5 depending on Linux/OSX -MD5_EXE= -if [[ "$(uname -s)" == "Darwin" ]]; then - MD5_EXE="md5 -r" -else - MD5_EXE="md5sum" -fi - -# Define default arguments. -SCRIPT="build.cake" -TARGET="Default" -CONFIGURATION="Release" -VERBOSITY="verbose" -DRYRUN= -SHOW_VERSION=false -SCRIPT_ARGUMENTS=() - -# Parse arguments. -for i in "$@"; do - case $1 in - -s|--script) SCRIPT="$2"; shift ;; - -t|--target) TARGET="$2"; shift ;; - -c|--configuration) CONFIGURATION="$2"; shift ;; - -v|--verbosity) VERBOSITY="$2"; shift ;; - -d|--dryrun) DRYRUN="-dryrun" ;; - --version) SHOW_VERSION=true ;; - --) shift; SCRIPT_ARGUMENTS+=("$@"); break ;; - *) SCRIPT_ARGUMENTS+=("$1") ;; - esac - shift -done - -# Make sure the tools folder exist. -if [ ! -d "$TOOLS_DIR" ]; then - mkdir "$TOOLS_DIR" -fi - -# Make sure that packages.config exist. -if [ ! -f "$TOOLS_DIR/packages.config" ]; then - echo "Downloading packages.config..." - curl -Lsfo "$TOOLS_DIR/packages.config" https://cakebuild.net/download/bootstrapper/packages - if [ $? -ne 0 ]; then - echo "An error occurred while downloading packages.config." - exit 1 - fi -fi - -# Download NuGet if it does not exist. -if [ ! -f "$NUGET_EXE" ]; then - echo "Downloading NuGet..." - curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe - if [ $? -ne 0 ]; then - echo "An error occurred while downloading nuget.exe." - exit 1 - fi -fi - -# Restore tools from NuGet. -pushd "$TOOLS_DIR" >/dev/null -if [ ! -f $PACKAGES_CONFIG_MD5 ] || [ "$( cat $PACKAGES_CONFIG_MD5 | sed 's/\r$//' )" != "$( $MD5_EXE $PACKAGES_CONFIG | awk '{ print $1 }' )" ]; then - find . -type d ! -name . | xargs rm -rf -fi - -mono "$NUGET_EXE" install -ExcludeVersion -if [ $? -ne 0 ]; then - echo "Could not restore NuGet packages." - exit 1 -fi - -$MD5_EXE $PACKAGES_CONFIG | awk '{ print $1 }' >| $PACKAGES_CONFIG_MD5 - -popd >/dev/null - -# Make sure that Cake has been installed. -if [ ! -f "$CAKE_EXE" ]; then - echo "Could not find Cake.exe at '$CAKE_EXE'." - exit 1 -fi - -# Start Cake -if $SHOW_VERSION; then - exec mono "$CAKE_EXE" -version -else - exec mono "$CAKE_EXE" $SCRIPT -verbosity=$VERBOSITY -configuration=$CONFIGURATION -target=$TARGET $DRYRUN "${SCRIPT_ARGUMENTS[@]}" -fi \ No newline at end of file diff --git a/src/NotificationBus/App.config b/src/NotificationBus/App.config deleted file mode 100644 index cc5c41b..0000000 --- a/src/NotificationBus/App.config +++ /dev/null @@ -1,216 +0,0 @@ - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/NotificationBus/FodyWeavers.xml b/src/NotificationBus/FodyWeavers.xml deleted file mode 100644 index 5029e70..0000000 --- a/src/NotificationBus/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/NotificationBus/FodyWeavers.xsd b/src/NotificationBus/FodyWeavers.xsd deleted file mode 100644 index 44a5374..0000000 --- a/src/NotificationBus/FodyWeavers.xsd +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/src/NotificationBus/NotificationBus.csproj b/src/NotificationBus/NotificationBus.csproj index 82086db..eb20607 100644 --- a/src/NotificationBus/NotificationBus.csproj +++ b/src/NotificationBus/NotificationBus.csproj @@ -1,585 +1,15 @@ - - - - - - - - - - - - - - - - Debug - AnyCPU - {9E8FEEAD-D9E1-4FB8-A99C-78D10DB436EE} - Exe - Coscine.Api.NotificationBus - Coscine.Api.NotificationBus - v4.6.1 - 512 - true - true - - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Consul.1.6.1.1\lib\net461\Consul.dll - - - ..\packages\Coscine.ApiCommons.1.12.0\lib\net461\Coscine.ApiCommons.dll - - - ..\packages\Coscine.Configuration.1.6.0\lib\net461\Coscine.Configuration.dll - - - ..\packages\Coscine.Database.1.28.0\lib\net461\Coscine.Database.dll - - - ..\packages\Coscine.Database.1.28.0\lib\net461\Coscine.Database.T4.dll - - - ..\packages\Coscine.JwtHandler.1.3.0\lib\net461\Coscine.JwtHandler.dll - - - ..\packages\Coscine.Logging.1.3.0\lib\net461\Coscine.Logging.dll - - - ..\packages\Coscine.NotificationChannelBase.1.2.0\lib\net461\Coscine.NotificationChannelBase.dll - - - ..\packages\Coscine.NotificationConfiguration.1.6.0\lib\net461\Coscine.NotificationConfiguration.dll - - - ..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll - - - ..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll - - - ..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.SqlServer.dll - - - ..\packages\HtmlAgilityPack.1.11.29\lib\Net45\HtmlAgilityPack.dll - - - ..\packages\linq2db.3.2.3\lib\net46\linq2db.dll - - - ..\packages\LinqKit.1.1.22\lib\net45\LinqKit.dll - - - ..\packages\Microsoft.AspNetCore.Antiforgery.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Antiforgery.dll - - - ..\packages\Microsoft.AspNetCore.Authentication.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Authentication.dll - - - ..\packages\Microsoft.AspNetCore.Authentication.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Authentication.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Authentication.Core.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Authentication.Core.dll - - - ..\packages\Microsoft.AspNetCore.Authentication.JwtBearer.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Authentication.JwtBearer.dll - - - ..\packages\Microsoft.AspNetCore.Authorization.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Authorization.dll - - - ..\packages\Microsoft.AspNetCore.Authorization.Policy.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Authorization.Policy.dll - - - ..\packages\Microsoft.AspNetCore.Connections.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Connections.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Cors.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Cors.dll - - - ..\packages\Microsoft.AspNetCore.Cryptography.Internal.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Cryptography.Internal.dll - - - ..\packages\Microsoft.AspNetCore.DataProtection.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.DataProtection.dll - - - ..\packages\Microsoft.AspNetCore.DataProtection.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.DataProtection.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Diagnostics.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Diagnostics.dll - - - ..\packages\Microsoft.AspNetCore.Diagnostics.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Diagnostics.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Hosting.2.2.7\lib\netstandard2.0\Microsoft.AspNetCore.Hosting.dll - - - ..\packages\Microsoft.AspNetCore.Hosting.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Hosting.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Hosting.Server.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Hosting.Server.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Html.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Html.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Http.2.2.2\lib\netstandard2.0\Microsoft.AspNetCore.Http.dll - - - ..\packages\Microsoft.AspNetCore.Http.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Http.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Http.Extensions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Http.Extensions.dll - - - ..\packages\Microsoft.AspNetCore.Http.Features.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Http.Features.dll - - - ..\packages\Microsoft.AspNetCore.HttpOverrides.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.HttpOverrides.dll - - - ..\packages\Microsoft.AspNetCore.JsonPatch.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.JsonPatch.dll - - - ..\packages\Microsoft.AspNetCore.Localization.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Localization.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.ApiExplorer.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.ApiExplorer.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.Core.2.2.2\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Core.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.Cors.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Cors.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.DataAnnotations.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.DataAnnotations.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.Formatters.Json.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Formatters.Json.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.Localization.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Localization.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.Razor.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.Razor.Extensions.2.2.0\lib\net46\Microsoft.AspNetCore.Mvc.Razor.Extensions.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.RazorPages.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.RazorPages.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.TagHelpers.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.TagHelpers.dll - - - ..\packages\Microsoft.AspNetCore.Mvc.ViewFeatures.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.ViewFeatures.dll - - - ..\packages\Microsoft.AspNetCore.Razor.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Razor.dll - - - ..\packages\Microsoft.AspNetCore.Razor.Language.2.2.0\lib\net46\Microsoft.AspNetCore.Razor.Language.dll - - - ..\packages\Microsoft.AspNetCore.Razor.Runtime.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Razor.Runtime.dll - - - ..\packages\Microsoft.AspNetCore.ResponseCaching.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.ResponseCaching.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Routing.2.2.2\lib\netstandard2.0\Microsoft.AspNetCore.Routing.dll - - - ..\packages\Microsoft.AspNetCore.Routing.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Routing.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Server.Kestrel.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.dll - - - ..\packages\Microsoft.AspNetCore.Server.Kestrel.Core.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Core.dll - - - ..\packages\Microsoft.AspNetCore.Server.Kestrel.Https.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Https.dll - - - ..\packages\Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.dll - - - ..\packages\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.2.2.1\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll - - - ..\packages\Microsoft.AspNetCore.StaticFiles.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.StaticFiles.dll - - - ..\packages\Microsoft.AspNetCore.WebUtilities.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.WebUtilities.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.CodeAnalysis.Common.3.0.0\lib\netstandard2.0\Microsoft.CodeAnalysis.dll - - - ..\packages\Microsoft.CodeAnalysis.CSharp.3.0.0\lib\netstandard2.0\Microsoft.CodeAnalysis.CSharp.dll - - - ..\packages\Microsoft.CodeAnalysis.Razor.2.2.0\lib\net46\Microsoft.CodeAnalysis.Razor.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.1.0\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.Caching.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Abstractions.dll - - - ..\packages\Microsoft.Extensions.Caching.Memory.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll - - - ..\packages\Microsoft.Extensions.Configuration.3.1.5\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll - - - ..\packages\Microsoft.Extensions.Configuration.Abstractions.3.1.5\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll - - - ..\packages\Microsoft.Extensions.Configuration.Binder.3.1.5\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll - - - ..\packages\Microsoft.Extensions.Configuration.EnvironmentVariables.2.2.4\lib\netstandard2.0\Microsoft.Extensions.Configuration.EnvironmentVariables.dll - - - ..\packages\Microsoft.Extensions.Configuration.FileExtensions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.FileExtensions.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.3.1.5\lib\net461\Microsoft.Extensions.DependencyInjection.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.3.1.5\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.1.0\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\Microsoft.Extensions.FileProviders.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.FileProviders.Abstractions.dll - - - ..\packages\Microsoft.Extensions.FileProviders.Composite.2.2.0\lib\netstandard2.0\Microsoft.Extensions.FileProviders.Composite.dll - - - ..\packages\Microsoft.Extensions.FileProviders.Embedded.1.0.1\lib\netstandard1.0\Microsoft.Extensions.FileProviders.Embedded.dll - - - ..\packages\Microsoft.Extensions.FileProviders.Physical.2.2.0\lib\netstandard2.0\Microsoft.Extensions.FileProviders.Physical.dll - - - ..\packages\Microsoft.Extensions.FileSystemGlobbing.2.2.0\lib\netstandard2.0\Microsoft.Extensions.FileSystemGlobbing.dll - - - ..\packages\Microsoft.Extensions.Hosting.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Hosting.Abstractions.dll - - - ..\packages\Microsoft.Extensions.Http.3.1.5\lib\netstandard2.0\Microsoft.Extensions.Http.dll - - - ..\packages\Microsoft.Extensions.Localization.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Localization.dll - - - ..\packages\Microsoft.Extensions.Localization.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Localization.Abstractions.dll - - - ..\packages\Microsoft.Extensions.Logging.3.1.5\lib\netstandard2.0\Microsoft.Extensions.Logging.dll - - - ..\packages\Microsoft.Extensions.Logging.Abstractions.5.0.0\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll - - - ..\packages\Microsoft.Extensions.ObjectPool.2.2.0\lib\netstandard2.0\Microsoft.Extensions.ObjectPool.dll - - - ..\packages\Microsoft.Extensions.Options.3.1.5\lib\netstandard2.0\Microsoft.Extensions.Options.dll - - - ..\packages\Microsoft.Extensions.Primitives.3.1.5\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll - - - ..\packages\Microsoft.Extensions.WebEncoders.2.2.0\lib\netstandard2.0\Microsoft.Extensions.WebEncoders.dll - - - ..\packages\Microsoft.IdentityModel.JsonWebTokens.6.8.0\lib\net461\Microsoft.IdentityModel.JsonWebTokens.dll - - - ..\packages\Microsoft.IdentityModel.Logging.6.8.0\lib\net461\Microsoft.IdentityModel.Logging.dll - - - ..\packages\Microsoft.IdentityModel.Protocols.5.3.0\lib\net461\Microsoft.IdentityModel.Protocols.dll - - - ..\packages\Microsoft.IdentityModel.Protocols.OpenIdConnect.5.3.0\lib\net461\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll - - - ..\packages\Microsoft.IdentityModel.Tokens.6.8.0\lib\net461\Microsoft.IdentityModel.Tokens.dll - - - ..\packages\Microsoft.Net.Http.Headers.2.2.0\lib\netstandard2.0\Microsoft.Net.Http.Headers.dll - - - ..\packages\Microsoft.Win32.Registry.4.5.0\lib\net461\Microsoft.Win32.Registry.dll - - - ..\packages\Namotion.Reflection.1.0.15\lib\net45\Namotion.Reflection.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\Newtonsoft.Json.Bson.1.0.2\lib\net45\Newtonsoft.Json.Bson.dll - - - ..\packages\NJsonSchema.10.3.3\lib\net45\NJsonSchema.dll - - - ..\packages\NLog.4.7.7\lib\net45\NLog.dll - - - ..\packages\NLog.Extensions.Logging.1.7.0\lib\net461\NLog.Extensions.Logging.dll - - - ..\packages\NLog.Web.AspNetCore.4.10.0\lib\net461\NLog.Web.AspNetCore.dll - - - ..\packages\NSwag.Annotations.13.10.1\lib\net45\NSwag.Annotations.dll - - - ..\packages\NSwag.AspNetCore.13.10.1\lib\net451\NSwag.AspNetCore.dll - - - ..\packages\NSwag.Core.13.10.1\lib\net45\NSwag.Core.dll - - - ..\packages\NSwag.Generation.13.10.1\lib\net45\NSwag.Generation.dll - - - ..\packages\NSwag.Generation.AspNetCore.13.10.1\lib\net451\NSwag.Generation.AspNetCore.dll - - - ..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll - - - ..\packages\Stubble.Core.1.9.3\lib\net45\Stubble.Core.dll - - - - ..\packages\System.AppContext.4.3.0\lib\net46\System.AppContext.dll - True - True - - - ..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll - - - ..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll - - - ..\packages\System.ComponentModel.Annotations.4.7.0\lib\net461\System.ComponentModel.Annotations.dll - - - - - - - - ..\packages\System.Diagnostics.DiagnosticSource.4.5.1\lib\net46\System.Diagnostics.DiagnosticSource.dll - - - ..\packages\System.Diagnostics.StackTrace.4.3.0\lib\net46\System.Diagnostics.StackTrace.dll - True - True - - - - ..\packages\System.IdentityModel.Tokens.Jwt.6.8.0\lib\net461\System.IdentityModel.Tokens.Jwt.dll - - - - ..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll - True - True - - - ..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll - True - True - - - ..\packages\System.IO.Pipelines.4.5.3\lib\netstandard2.0\System.IO.Pipelines.dll - - - ..\packages\System.Memory.4.5.2\lib\netstandard2.0\System.Memory.dll - - - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Reflection.Metadata.1.6.0\lib\netstandard2.0\System.Reflection.Metadata.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll - True - True - - - - - ..\packages\System.Security.AccessControl.4.5.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net461\System.Security.Cryptography.Algorithms.dll - True - True - - - ..\packages\System.Security.Cryptography.Cng.4.5.0\lib\net461\System.Security.Cryptography.Cng.dll - - - ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll - True - True - - - ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll - True - True - - - ..\packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll - True - True - - - ..\packages\System.Security.Cryptography.Xml.4.5.0\lib\net461\System.Security.Cryptography.Xml.dll - - - ..\packages\System.Security.Permissions.4.5.0\lib\net461\System.Security.Permissions.dll - - - ..\packages\System.Security.Principal.Windows.4.5.1\lib\net461\System.Security.Principal.Windows.dll - - - - - ..\packages\System.Text.Encoding.CodePages.4.5.1\lib\net461\System.Text.Encoding.CodePages.dll - - - ..\packages\System.Text.Encodings.Web.4.5.0\lib\netstandard2.0\System.Text.Encodings.Web.dll - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.Threading.Thread.4.3.0\lib\net46\System.Threading.Thread.dll - True - True - - - - - - - - - - - ..\packages\System.Xml.ReaderWriter.4.3.1\lib\net46\System.Xml.ReaderWriter.dll - True - True - - - ..\packages\System.Xml.XmlDocument.4.3.0\lib\net46\System.Xml.XmlDocument.dll - True - True - - - ..\packages\VDS.Common.1.10.0\lib\net40-client\VDS.Common.dll - - - ..\packages\OpenLink.Data.Virtuoso.7.20.3214.1\lib\net40\virtado4.dll - - - - - - - - - - - - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - - - - - - - - - - - - - + + + Exe + Coscine.Api.NotificationBus + Coscine.Api.NotificationBus + net5.0 + 1.3.2 + + + + + + + \ No newline at end of file diff --git a/src/NotificationBus/Properties/AssemblyInfo.cs b/src/NotificationBus/Properties/AssemblyInfo.cs index feae360..fef05a1 100644 --- a/src/NotificationBus/Properties/AssemblyInfo.cs +++ b/src/NotificationBus/Properties/AssemblyInfo.cs @@ -5,12 +5,5 @@ //------------------------------------------------------------------------------ using System.Reflection; -[assembly: AssemblyTitle("NotificationBus")] -[assembly: AssemblyDescription("NotificationBus is a part of the CoScInE group.")] -[assembly: AssemblyCompany("IT Center, RWTH Aachen University")] -[assembly: AssemblyProduct("NotificationBus")] -[assembly: AssemblyVersion("1.1.0")] -[assembly: AssemblyFileVersion("1.1.0")] -[assembly: AssemblyInformationalVersion("1.1.0-topic-827-notifi0001")] -[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")] - +[assembly: AssemblyDescription("NotificationApi is a part of the Coscine group.")] +[assembly: AssemblyCopyright("2021 IT Center, RWTH Aachen University")] \ No newline at end of file diff --git a/src/NotificationBus/packages.config b/src/NotificationBus/packages.config deleted file mode 100644 index dcd0e01..0000000 --- a/src/NotificationBus/packages.config +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/packages.config b/tools/packages.config deleted file mode 100644 index 8bfcb25..0000000 --- a/tools/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - -- GitLab From 3259cceb037652831a736a8bdc23be8a22877166 Mon Sep 17 00:00:00 2001 From: Marcel Nellesen Date: Thu, 18 Feb 2021 08:39:36 +0100 Subject: [PATCH 2/4] Changed script (coscine/issues#1335) --- .gitlab-ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce837b6..1282f27 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,9 +17,6 @@ build-branch: test: extends: .test -publish-branch-prerelease: - extends: .publish-branch-prerelease - publish-gitlab-release: extends: .publish-gitlab-release -- GitLab From 27dd4ca1c1e06122d095842de07f2cb60ad78fde Mon Sep 17 00:00:00 2001 From: Heinrichs Date: Wed, 24 Feb 2021 14:37:05 +0100 Subject: [PATCH 3/4] Migrate versions --- src/NotificationBus/NotificationBus.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NotificationBus/NotificationBus.csproj b/src/NotificationBus/NotificationBus.csproj index eb20607..786d01d 100644 --- a/src/NotificationBus/NotificationBus.csproj +++ b/src/NotificationBus/NotificationBus.csproj @@ -7,9 +7,9 @@ 1.3.2 - - - + + + \ No newline at end of file -- GitLab From a038b36176fbb61cf0ddcbe4d803563b4752606a Mon Sep 17 00:00:00 2001 From: Petar Hristov Date: Thu, 25 Feb 2021 11:33:40 +0100 Subject: [PATCH 4/4] Fix: Migrated AssemblyInformation. (coscine/issues#1335) --- .gitlab-ci.yml | 2 +- src/NotificationBus/NotificationBus.csproj | 9 +++++++++ src/NotificationBus/Properties/AssemblyInfo.cs | 9 --------- 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 src/NotificationBus/Properties/AssemblyInfo.cs diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1282f27..17ebbf7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,7 @@ stages: - publish variables: - DOTNET_MAIN_PROJECT_FOLDER: Notification + DOTNET_MAIN_PROJECT_FOLDER: NotificationBus build-branch: extends: .build-branch diff --git a/src/NotificationBus/NotificationBus.csproj b/src/NotificationBus/NotificationBus.csproj index 786d01d..17b2ad5 100644 --- a/src/NotificationBus/NotificationBus.csproj +++ b/src/NotificationBus/NotificationBus.csproj @@ -6,6 +6,15 @@ net5.0 1.3.2 + + RWTH Aachen University + IT Center, RWTH Aachen University + 2021 IT Center, RWTH Aachen University + Notification is a part of the Coscine group. + MIT + https://git.rwth-aachen.de/coscine/backend/apis/Notification + false + diff --git a/src/NotificationBus/Properties/AssemblyInfo.cs b/src/NotificationBus/Properties/AssemblyInfo.cs deleted file mode 100644 index fef05a1..0000000 --- a/src/NotificationBus/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,9 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Cake. -// -//------------------------------------------------------------------------------ -using System.Reflection; - -[assembly: AssemblyDescription("NotificationApi is a part of the Coscine group.")] -[assembly: AssemblyCopyright("2021 IT Center, RWTH Aachen University")] \ No newline at end of file -- GitLab