From 759ac5df3c900df21fec00601d58015775f5c205 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Thu, 9 Jan 2025 19:37:57 +0100 Subject: [PATCH] convert nuget packages to use central package management --- src/Directory.Build.props | 62 ++++++----- src/Directory.Packages.props | 37 +++++++ .../GitReleaseManager.Cli.csproj | 62 +++++------ .../GitReleaseManager.Core.Tests.csproj | 72 ++++++------- .../GitReleaseManager.Core.csproj | 94 ++++++++-------- .../GitReleaseManager.IntegrationTests.csproj | 70 ++++++------ .../GitReleaseManager.Tests.csproj | 70 ++++++------ .../GitReleaseManager.Tool.csproj | 102 +++++++++--------- 8 files changed, 300 insertions(+), 269 deletions(-) create mode 100644 src/Directory.Packages.props diff --git a/src/Directory.Build.props b/src/Directory.Build.props index dd4b1848..c0529792 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,34 +1,32 @@ - - pdbonly - true - CS1591 - AllEnabledByDefault - - - - - CustomDictionary.xml - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - All - - + + pdbonly + true + CS1591 + AllEnabledByDefault + + + + CustomDictionary.xml + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + All + + \ No newline at end of file diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props new file mode 100644 index 00000000..d9ecf82b --- /dev/null +++ b/src/Directory.Packages.props @@ -0,0 +1,37 @@ + + + true + true + $(NoWarn);NU1507 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.Cli/GitReleaseManager.Cli.csproj b/src/GitReleaseManager.Cli/GitReleaseManager.Cli.csproj index a067c4cc..b28bc45a 100644 --- a/src/GitReleaseManager.Cli/GitReleaseManager.Cli.csproj +++ b/src/GitReleaseManager.Cli/GitReleaseManager.Cli.csproj @@ -1,33 +1,33 @@ - - 8.0 - Exe - GitReleaseManager - net6.0 - true - true - win-x64 - GitReleaseManager.Cli - Create release notes in markdown given a milestone - false - $(NoWarn);CA1707; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - - - + + 8.0 + Exe + GitReleaseManager + net6.0 + true + true + win-x64 + GitReleaseManager.Cli + Create release notes in markdown given a milestone + false + $(NoWarn);CA1707; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj b/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj index b2d3b652..478e97f1 100644 --- a/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj +++ b/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj @@ -1,37 +1,37 @@ - - 8.0 - net6.0;net7.0 - GitReleaseManager.Core.Tests - Test Project for GitReleaseManager.Core - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - all - runtime; build; native; contentfiles; analyzers - - - - - - + + 8.0 + net6.0;net7.0 + GitReleaseManager.Core.Tests + Test Project for GitReleaseManager.Core + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.Core/GitReleaseManager.Core.csproj b/src/GitReleaseManager.Core/GitReleaseManager.Core.csproj index ec0f6e45..d90d2d1b 100644 --- a/src/GitReleaseManager.Core/GitReleaseManager.Core.csproj +++ b/src/GitReleaseManager.Core/GitReleaseManager.Core.csproj @@ -1,50 +1,48 @@ - - - - - 8.0 - net6.0;net7.0 - GitReleaseManager.Core - Create release notes in markdown given a milestone - false - $(NoWarn);CA1707; - true - - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - - - - - - True - True - ReleaseTemplates.tt - - - - - TextTemplatingFileGenerator - ReleaseTemplates.g.cs - - - - - - + + + + + 8.0 + net6.0;net7.0 + GitReleaseManager.Core + Create release notes in markdown given a milestone + false + $(NoWarn);CA1707; + true + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + + + + True + True + ReleaseTemplates.tt + + + + + TextTemplatingFileGenerator + ReleaseTemplates.g.cs + + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj b/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj index 1d7dc36c..29bd34df 100644 --- a/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj +++ b/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj @@ -1,37 +1,37 @@ - - 8.0 - net6.0;net7.0 - GitReleaseManager.IntegrationTests - Integration Test Project for GitReleaseManager - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - all - runtime; build; native; contentfiles; analyzers - - - - - - - - + + 8.0 + net6.0;net7.0 + GitReleaseManager.IntegrationTests + Integration Test Project for GitReleaseManager + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj b/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj index 3c44ca4b..93d0af84 100644 --- a/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj +++ b/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj @@ -1,36 +1,36 @@ - - 8.0 - net6.0;net7.0 - GitReleaseManager.Tests - Test Project for GitReleaseManager - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - all - runtime; build; native; contentfiles; analyzers - - - - - + + 8.0 + net6.0;net7.0 + GitReleaseManager.Tests + Test Project for GitReleaseManager + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.Tool/GitReleaseManager.Tool.csproj b/src/GitReleaseManager.Tool/GitReleaseManager.Tool.csproj index ad60f84a..a0dc0606 100644 --- a/src/GitReleaseManager.Tool/GitReleaseManager.Tool.csproj +++ b/src/GitReleaseManager.Tool/GitReleaseManager.Tool.csproj @@ -1,54 +1,52 @@ - - - 8.0 - Exe - GitReleaseManager - - true - net6.0;net7.0 - dotnet-gitreleasemanager - GitReleaseManager.Tool - - GitReleaseManager Tool - GitTools Contributors - https://github.com/GitTools/GitReleaseManager - false - github release notes create export - Tool for creating and exporting releases for software applications from online Version Control Systems - Copyright (c) 2015 - Present - GitTools Contributors - MIT - package_icon.png - https://github.com/GitTools/GitReleaseManager/releases - git - https://github.com/GitTools/GitReleaseManager.git - $(NoWarn);CA1707; - - - - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - - - - - - True - - - + + 8.0 + Exe + GitReleaseManager + true + net6.0;net7.0 + dotnet-gitreleasemanager + GitReleaseManager.Tool + GitReleaseManager Tool + GitTools Contributors + https://github.com/GitTools/GitReleaseManager + false + github release notes create export + Tool for creating and exporting releases for software applications from online Version Control Systems + Copyright (c) 2015 - Present - GitTools Contributors + MIT + package_icon.png + https://github.com/GitTools/GitReleaseManager/releases + git + https://github.com/GitTools/GitReleaseManager.git + $(NoWarn);CA1707; + + + + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + + + + True + + + + \ No newline at end of file