mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-17 05:12:13 +08:00
moar build tweaks
This commit is contained in:
@@ -38,9 +38,9 @@
|
||||
This is a temporary workaround for Nuget Issue #4853 - https://github.com/NuGet/Home/issues/4853#issuecomment-292719597
|
||||
Ideally this belongs into Directory.build.targets, but that doesn't work either - https://github.com/Microsoft/msbuild/issues/1721
|
||||
-->
|
||||
<Target Name="_CleanNuSpec" DependsOnTargets="_GenerateProjectRestoreGraph">
|
||||
<Target Name="_CleanNuSpec">
|
||||
<PropertyGroup>
|
||||
<_NuSpecPrefix>$(RestoreOutputAbsolutePath)$(_RestoreProjectName).$(_RestoreProjectVersion)</_NuSpecPrefix>
|
||||
<_NuSpecPrefix>$(MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)$(MSBuildProjectName).$(PackageVersion)</_NuSpecPrefix>
|
||||
<_NuSpec>$(_NuSpecPrefix).nuspec</_NuSpec>
|
||||
<_NuSpecPatched>$(_NuSpecPrefix).patched.nuspec</_NuSpecPatched>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -6,16 +6,8 @@ param(
|
||||
$packageOutputFolder = "$PSScriptRoot\.nupkgs"
|
||||
|
||||
# Restore packages and build product
|
||||
Write-Host "Restoring..." -ForegroundColor "Green"
|
||||
& dotnet restore -v Minimal # Restore all packages
|
||||
if ($LASTEXITCODE -ne 0)
|
||||
{
|
||||
throw "dotnet restore failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
# Build all
|
||||
Write-Host "Building..." -ForegroundColor "Green"
|
||||
msbuild "$PSScriptRoot\Dapper.sln" /m /v:m /nologo /t:Build /p:Configuration=Debug "/p:PackageVersionSuffix=$PreReleaseSuffix"
|
||||
msbuild "$PSScriptRoot\Dapper.sln" /m /v:m /nologo "/t:Restore;Build" /p:Configuration=Debug "/p:PackageVersionSuffix=$PreReleaseSuffix"
|
||||
|
||||
# Run tests
|
||||
if ($SkipTests)
|
||||
|
||||
Reference in New Issue
Block a user