File tree 2 files changed +5
-14
lines changed
2 files changed +5
-14
lines changed 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"
10
1
$versionSuffix = " "
11
2
12
3
# ####################
13
4
# Build release config
14
5
cd $PSScriptRoot
15
6
del * .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
+
17
10
if ($lastexitcode -ne 0 ) { exit $lastexitcode ; }
18
11
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 14
14
15
15
<!-- nuget configurable properties -->
16
16
<PropertyGroup >
17
- <Version >2.0.6 </Version >
17
+ <Version >2.1.0 </Version >
18
18
<VersionSuffix ></VersionSuffix >
19
19
<DefineConstants >$(DefineConstants);</DefineConstants >
20
- <NugetPackageId ></NugetPackageId >
21
20
</PropertyGroup >
22
21
23
22
You can’t perform that action at this time.
0 commit comments