File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- $nugetServer = " https://www.nuget.org"
2- if ($IsMacOS ) {
3- $msbuild = " msbuild"
4- } else {
5- $vswhere = ' C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe'
6- $msbuild = & $vswhere - latest - products * - requires Microsoft.Component.MSBuild - property installationPath
7- $msbuild = join-path $msbuild ' MSBuild\Current\Bin\MSBuild.exe'
8- }
9- $version = " 2.1.0"
101$versionSuffix = " "
112
123# ####################
134# Build release config
145cd $PSScriptRoot
156del * .nupkg
16- & $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
7+
8+ & dotnet pack - c Release -- version- suffix " $versionSuffix " ../ src/ SQLite.Net/ SQLite.Net2.csproj - o .
9+
1710if ($lastexitcode -ne 0 ) { exit $lastexitcode ; }
1811
19- nuget push " sqlite-net2.$version$versionSuffix .nupkg" - Source $nugetServer
20- # copy "sqlite-net2.$version$versionSuffix.nupkg" "D:\repos\localnugets"
12+ dotnet nuget push " sqlite-net2.*$versionSuffix .nupkg"
Original file line number Diff line number Diff line change 1414
1515 <!-- nuget configurable properties -->
1616 <PropertyGroup >
17- <Version >2.0.6 </Version >
17+ <Version >2.1.0 </Version >
1818 <VersionSuffix ></VersionSuffix >
1919 <DefineConstants >$(DefineConstants);</DefineConstants >
20- <NugetPackageId ></NugetPackageId >
2120 </PropertyGroup >
2221
2322
You can’t perform that action at this time.
0 commit comments