Commit 70bbb472 authored by m0sa's avatar m0sa

moar build tweaks

parent e5cc3ccf
...@@ -38,9 +38,9 @@ ...@@ -38,9 +38,9 @@
This is a temporary workaround for Nuget Issue #4853 - https://github.com/NuGet/Home/issues/4853#issuecomment-292719597 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 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> <PropertyGroup>
<_NuSpecPrefix>$(RestoreOutputAbsolutePath)$(_RestoreProjectName).$(_RestoreProjectVersion)</_NuSpecPrefix> <_NuSpecPrefix>$(MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)$(MSBuildProjectName).$(PackageVersion)</_NuSpecPrefix>
<_NuSpec>$(_NuSpecPrefix).nuspec</_NuSpec> <_NuSpec>$(_NuSpecPrefix).nuspec</_NuSpec>
<_NuSpecPatched>$(_NuSpecPrefix).patched.nuspec</_NuSpecPatched> <_NuSpecPatched>$(_NuSpecPrefix).patched.nuspec</_NuSpecPatched>
</PropertyGroup> </PropertyGroup>
......
...@@ -6,16 +6,8 @@ param( ...@@ -6,16 +6,8 @@ param(
$packageOutputFolder = "$PSScriptRoot\.nupkgs" $packageOutputFolder = "$PSScriptRoot\.nupkgs"
# Restore packages and build product # 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" 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 # Run tests
if ($SkipTests) if ($SkipTests)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment