diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 7610a81c..d5c9d9a4 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -17,6 +17,10 @@ Velopack Installer and automatic update framework for cross-platform desktop applications + $(LocalAppData)\NuGet\v3-cache + true + $(UserProfile)\.nuget\packages + true ..\..\Velopack.snk latest diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index b3006e9f..5573fd45 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -48,5 +48,36 @@ + + + + <_ExistingPackage Include="$(PackageOutputPath)\$(PackageId)*.nupkg" /> + <_PackageToDelete Include="@(_ExistingPackage)" + Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('%(Filename)', '$(PackageId)\.\d\.\d\.\d.*'))" /> + + + + + + + + + + $(NuGetCache)\$(PackageId.ToLowerInvariant()) + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Velopack.Build/Velopack.Build.csproj b/src/Velopack.Build/Velopack.Build.csproj index e9b6d087..810068ae 100644 --- a/src/Velopack.Build/Velopack.Build.csproj +++ b/src/Velopack.Build/Velopack.Build.csproj @@ -5,8 +5,6 @@ enable 12 false - - true $(NoWarn);NU5128 @@ -14,19 +12,11 @@ Velopack.Build true true - - - - - $(LocalAppData)\NuGet\v3-cache - true - $(UserProfile)\.nuget\packages - - - false $(TargetsForTfmSpecificContentInPackage);IncludeTfmDependenciesInPackage + + true @@ -51,35 +41,4 @@ - - - <_ExistingPackage Include="$(PackageOutputPath)\$(PackageId)*.nupkg" /> - <_PackageToDelete Include="@(_ExistingPackage)" - Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('%(Filename)', '$(PackageId)\.\d\.\d\.\d.*'))" /> - - - - - - - - - - $(NuGetCache)\$(PackageId.ToLowerInvariant()) - - - - - - - - - - - - - \ No newline at end of file