Skip to content

Commit

Permalink
2.1.0 net8
Browse files Browse the repository at this point in the history
  • Loading branch information
softlion committed Feb 26, 2024
1 parent f7d0024 commit 0dc2a4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
16 changes: 4 additions & 12 deletions nuget/pack.ps1
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 1 addition & 2 deletions src/SQLite.Net/SQLite.Net2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@

<!-- nuget configurable properties -->
<PropertyGroup>
<Version>2.0.6</Version>
<Version>2.1.0</Version>
<VersionSuffix></VersionSuffix>
<DefineConstants>$(DefineConstants);</DefineConstants>
<NugetPackageId></NugetPackageId>
</PropertyGroup>


Expand Down

0 comments on commit 0dc2a4f

Please sign in to comment.