From 0dc2a4f395aabed3472d5f77482c30f5fb9d3676 Mon Sep 17 00:00:00 2001 From: Benjamin Mayrargue Date: Mon, 26 Feb 2024 16:08:10 +0100 Subject: [PATCH] 2.1.0 net8 --- nuget/pack.ps1 | 16 ++++------------ src/SQLite.Net/SQLite.Net2.csproj | 3 +-- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/nuget/pack.ps1 b/nuget/pack.ps1 index 3c12844f..3dbdda26 100644 --- a/nuget/pack.ps1 +++ b/nuget/pack.ps1 @@ -1,20 +1,12 @@ -$nugetServer="https://www.nuget.org" -if ($IsMacOS) { - $msbuild = "msbuild" -} else { - $vswhere = 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' - $msbuild = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath - $msbuild = join-path $msbuild 'MSBuild\Current\Bin\MSBuild.exe' -} -$version="2.1.0" $versionSuffix="" ##################### #Build release config cd $PSScriptRoot del *.nupkg -& $msbuild "../SQLite.Net.sln" /restore /p:Configuration=Release /p:Platform="Any CPU" /p:Version="$version" /p:VersionSuffix="$versionSuffix" /p:Deterministic=false /p:PackageOutputPath="$PSScriptRoot" --% /t:Clean;Build;Pack + +& dotnet pack -c Release --version-suffix "$versionSuffix" ../src/SQLite.Net/SQLite.Net2.csproj -o . + if ($lastexitcode -ne 0) { exit $lastexitcode; } -nuget push "sqlite-net2.$version$versionSuffix.nupkg" -Source $nugetServer -#copy "sqlite-net2.$version$versionSuffix.nupkg" "D:\repos\localnugets" +dotnet nuget push "sqlite-net2.*$versionSuffix.nupkg" diff --git a/src/SQLite.Net/SQLite.Net2.csproj b/src/SQLite.Net/SQLite.Net2.csproj index 4f2a3ec8..09fc32c8 100644 --- a/src/SQLite.Net/SQLite.Net2.csproj +++ b/src/SQLite.Net/SQLite.Net2.csproj @@ -14,10 +14,9 @@ - 2.0.6 + 2.1.0 $(DefineConstants); -