From 4088cee48418ad039cfdaff44e5f2314516a3a1c Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Thu, 14 Mar 2024 16:30:13 +0000 Subject: [PATCH] Move nuget packaging properties to shared targets --- Velopack.sln | 1 + src/Directory.Build.props | 24 ++++------- src/Directory.Build.targets | 52 ++++++++++++++++++++++++ src/Velopack.Build/Velopack.Build.csproj | 41 +++---------------- src/Velopack.Vpk/Velopack.Vpk.csproj | 36 ++++------------ src/Velopack/Velopack.csproj | 17 +------- 6 files changed, 74 insertions(+), 97 deletions(-) create mode 100644 src/Directory.Build.targets diff --git a/Velopack.sln b/Velopack.sln index b9b70bc6..f86afbaa 100644 --- a/Velopack.sln +++ b/Velopack.sln @@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionLevel", "SolutionLe .gitignore = .gitignore .github\workflows\build.yml = .github\workflows\build.yml src\Directory.Build.props = src\Directory.Build.props + src\Directory.Build.targets = src\Directory.Build.targets nuget.config = nuget.config README.md = README.md Velopack.entitlements = Velopack.entitlements diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 92156a56..7610a81c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,5 +1,6 @@ + Debug $(MSBuildProjectName) @@ -8,23 +9,17 @@ $(BaseOutputPath)$(Configuration)\ true false - - latest - True + en - ..\..\Velopack.snk embedded true $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=./ - + Velopack - false - Copyright © Caelan Sayler 2021 - Caelan Sayler;Kevin Bost - MIT - https://github.com/velopack/velopack - https://github.com/velopack/velopack - windows;macos;osx;updater;dotnet;installer;desktop;squirrel;velopack;autoupdate;automatic-updates + Installer and automatic update framework for cross-platform desktop applications + true + ..\..\Velopack.snk + latest @@ -32,9 +27,4 @@ - - Win32 - $(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\ - $(OutputPath)$(Platform)\ - diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets new file mode 100644 index 00000000..b3006e9f --- /dev/null +++ b/src/Directory.Build.targets @@ -0,0 +1,52 @@ + + + + + + false + Copyright © Velopack Ltd. All rights reserved. + Velopack Ltd;Caelan Sayler;Kevin Bost + MIT + https://github.com/velopack/velopack + https://github.com/velopack/velopack + windows;macos;osx;updater;dotnet;installer;desktop;squirrel;velopack;autoupdate;automatic-updates + Velopack_200.png + README_NUGET.md + true + $(VelopackPackageId) + $(VelopackPackageId) + $(VelopackPackageId) + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Velopack.Build/Velopack.Build.csproj b/src/Velopack.Build/Velopack.Build.csproj index 2e63d0e3..e9b6d087 100644 --- a/src/Velopack.Build/Velopack.Build.csproj +++ b/src/Velopack.Build/Velopack.Build.csproj @@ -10,6 +10,12 @@ $(NoWarn);NU5128 + + Velopack.Build + true + true + + $(LocalAppData)\NuGet\v3-cache @@ -23,18 +29,6 @@ $(TargetsForTfmSpecificContentInPackage);IncludeTfmDependenciesInPackage - - Velopack.Build - Velopack.Build - Velopack.Build - Velopack_200.png - README_NUGET.md - Quick and easy installer and automatic updates for cross-platform desktop applications - true - true - https://github.com/velopack/velopack - - @@ -46,32 +40,9 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Velopack.Vpk/Velopack.Vpk.csproj b/src/Velopack.Vpk/Velopack.Vpk.csproj index 16fe411c..6f5f1278 100644 --- a/src/Velopack.Vpk/Velopack.Vpk.csproj +++ b/src/Velopack.Vpk/Velopack.Vpk.csproj @@ -3,40 +3,18 @@ Exe net6.0;net8.0 - true vpk - vpk - README_NUGET.md - Velopack CLI - vpk - true - true - true - A .NET Core Tool to build Velopack releases. - Velopack_200.png latest $(NoWarn);CA2007;CS8002 - - - - - - - - - - - - - - - - - - - + + vpk + true + vpk + true + true + diff --git a/src/Velopack/Velopack.csproj b/src/Velopack/Velopack.csproj index 5a4cec61..80019b1e 100644 --- a/src/Velopack/Velopack.csproj +++ b/src/Velopack/Velopack.csproj @@ -8,24 +8,9 @@ true false 9 + Velopack - - Velopack - Velopack - Velopack - Velopack_200.png - README_NUGET.md - Quick and easy installer and automatic updates for cross-platform desktop applications - true - https://github.com/velopack/velopack - - - - - - -