Fixed: Nuget Package Build, Artifacts

This commit is contained in:
Qstick 2018-04-22 22:23:49 -04:00
parent 9f60954f07
commit e8ca56d6b0
4 changed files with 12 additions and 12 deletions

View File

@ -19,6 +19,6 @@
</dependencies> </dependencies>
</metadata> </metadata>
<files> <files>
<file src="..\src\IF.Lastfm.SQLite\bin\Release\IF.Lastfm.SQLite.dll" target="lib\portable-win8+net45+wp8+wpa81"/> <file src="..\src\IF.Lastfm.SQLite\bin\Release\netstandard1.1\IF.Lastfm.SQLite.dll" target="lib\portable-win8+net45+wp8+wpa81"/>
</files> </files>
</package> </package>

View File

@ -17,6 +17,6 @@
</dependencies> </dependencies>
</metadata> </metadata>
<files> <files>
<file src="..\src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll" target="lib\netstandard1.1"/> <file src="..\src\IF.Lastfm.Core\bin\Release\netstandard1.1\IF.Lastfm.Core.dll" target="lib\netstandard1.1"/>
</files> </files>
</package> </package>

View File

@ -18,7 +18,7 @@ function CompileNuspec([string]$dllPath, [string]$nuspecname)
$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..' $root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..'
$dllPath = "$root\src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll" $dllPath = "$root\src\IF.Lastfm.Core\bin\Release\netstandard1.1\IF.Lastfm.Core.dll"
$version = [System.Reflection.AssemblyName]::GetAssemblyName($dllPath).Version $version = [System.Reflection.AssemblyName]::GetAssemblyName($dllPath).Version
if ($versionSuffix) { if ($versionSuffix) {
@ -35,7 +35,7 @@ if ([string]::IsNullOrEmpty($sqliteVersion)){
} }
else { else {
if ($versionStr.endswith("prerelease") -or $versionStr.startswith($sqliteVersion)) { if ($versionStr.endswith("prerelease") -or $versionStr.startswith($sqliteVersion)) {
CompileNuspec "$root\src\IF.Lastfm.SQLite\bin\Release\IF.Lastfm.SQLite.dll" "Inflatable.Lastfm.SQLite" CompileNuspec "$root\src\IF.Lastfm.SQLite\bin\Release\netstandard1.1\IF.Lastfm.SQLite.dll" "Inflatable.Lastfm.SQLite"
} }
else { else {
Write-Host "Skipping SQLite package, build version is not $sqliteVersion" -Foreground yellow Write-Host "Skipping SQLite package, build version is not $sqliteVersion" -Foreground yellow

View File

@ -36,9 +36,9 @@
- ps: cp .\.nuget\*.nupkg . - ps: cp .\.nuget\*.nupkg .
artifacts: artifacts:
- path: src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll - path: src\IF.Lastfm.Core\bin\Release\netstandard1.1\IF.Lastfm.Core.dll
name: IF.Lastfm.Core.dll name: IF.Lastfm.Core.dll
- path: src\IF.Lastfm.SQLite\bin\Release\IF.Lastfm.SQLite.dll - path: src\IF.Lastfm.SQLite\bin\Release\netstandard1.1\IF.Lastfm.SQLite.dll
name: IF.Lastfm.SQLite.dll name: IF.Lastfm.SQLite.dll
- path: '\*-prerelease.nupkg' - path: '\*-prerelease.nupkg'
@ -85,9 +85,9 @@
- ps: cp .\.nuget\*.nupkg . - ps: cp .\.nuget\*.nupkg .
artifacts: artifacts:
- path: src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll - path: src\IF.Lastfm.Core\bin\Release\netstandard1.1\IF.Lastfm.Core.dll
name: IF.Lastfm.Core.dll name: IF.Lastfm.Core.dll
- path: src\IF.Lastfm.SQLite\bin\Release\IF.Lastfm.SQLite.dll - path: src\IF.Lastfm.SQLite\bin\Release\netstandard1.1\IF.Lastfm.SQLite.dll
name: IF.Lastfm.SQLite.dll name: IF.Lastfm.SQLite.dll
- path: '\*-prerelease.nupkg' - path: '\*-prerelease.nupkg'
@ -135,9 +135,9 @@
- ps: cp .\.nuget\*.nupkg . - ps: cp .\.nuget\*.nupkg .
artifacts: artifacts:
- path: src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll - path: src\IF.Lastfm.Core\bin\Release\netstandard1.1\IF.Lastfm.Core.dll
name: IF.Lastfm.Core.dll name: IF.Lastfm.Core.dll
- path: src\IF.Lastfm.SQLite\bin\Release\IF.Lastfm.SQLite.dll - path: src\IF.Lastfm.SQLite\bin\Release\netstandard1.1\IF.Lastfm.SQLite.dll
name: IF.Lastfm.SQLite.dll name: IF.Lastfm.SQLite.dll
- path: '\*.nupkg' - path: '\*.nupkg'
@ -189,9 +189,9 @@
- ps: cp .\.nuget\*.nupkg . - ps: cp .\.nuget\*.nupkg .
artifacts: artifacts:
- path: src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll - path: src\IF.Lastfm.Core\bin\Release\netstandard1.1\IF.Lastfm.Core.dll
name: IF.Lastfm.Core.dll name: IF.Lastfm.Core.dll
- path: src\IF.Lastfm.SQLite\bin\Release\IF.Lastfm.SQLite.dll - path: src\IF.Lastfm.SQLite\bin\Release\netstandard1.1\IF.Lastfm.SQLite.dll
name: IF.Lastfm.SQLite.dll name: IF.Lastfm.SQLite.dll
- path: '\*.nupkg' - path: '\*.nupkg'