From 40558a25d63f05060b5afefcd84b930a20e35a5a Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Mon, 11 Mar 2024 11:01:14 +0000 Subject: [PATCH] Working on NuGet dev loop --- Velopack.sln | 3 + nuget.config | 4 +- samples/Directory.Build.props | 9 ++ src/Velopack.Build/Velopack.Build.csproj | 129 +++++++++-------------- 4 files changed, 66 insertions(+), 79 deletions(-) create mode 100644 samples/Directory.Build.props diff --git a/Velopack.sln b/Velopack.sln index 3e9896d2..b9b70bc6 100644 --- a/Velopack.sln +++ b/Velopack.sln @@ -40,6 +40,9 @@ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp", "test\TestApp\TestApp.csproj", "{784B5987-2E71-4AEE-81B9-E0CC7F1DBEB3}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{3EBFA551-780C-473D-A197-0EE56F2CBA82}" + ProjectSection(SolutionItems) = preProject + samples\Directory.Build.props = samples\Directory.Build.props + EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AvaloniaCrossPlat", "samples\AvaloniaCrossPlat\AvaloniaCrossPlat.csproj", "{1FF6A262-13D0-45DF-B818-77AC84C52C6F}" EndProject diff --git a/nuget.config b/nuget.config index 0b9f7097..bfa830cb 100644 --- a/nuget.config +++ b/nuget.config @@ -5,12 +5,12 @@ - + \ No newline at end of file diff --git a/samples/Directory.Build.props b/samples/Directory.Build.props new file mode 100644 index 00000000..7b09f03f --- /dev/null +++ b/samples/Directory.Build.props @@ -0,0 +1,9 @@ + + + + https://api.nuget.org/v3/index.json;$(RestoreSources) + + $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\build\$(Configuration)'));$(RestoreSources) + + + diff --git a/src/Velopack.Build/Velopack.Build.csproj b/src/Velopack.Build/Velopack.Build.csproj index 562e4c4f..2e63d0e3 100644 --- a/src/Velopack.Build/Velopack.Build.csproj +++ b/src/Velopack.Build/Velopack.Build.csproj @@ -5,17 +5,21 @@ enable 12 false - + true - true - true $(NoWarn);NU5128 - false + + $(LocalAppData)\NuGet\v3-cache + true + $(UserProfile)\.nuget\packages + + + + + false $(TargetsForTfmSpecificContentInPackage);IncludeTfmDependenciesInPackage @@ -32,11 +36,8 @@ - - - + + @@ -47,28 +48,28 @@ - + - - - - - - + + + + + + - - - + + + - - - + + + @@ -79,61 +80,35 @@ - + + + + + + + + + \ No newline at end of file