Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
70bbb472
Commit
70bbb472
authored
Apr 10, 2017
by
m0sa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moar build tweaks
parent
e5cc3ccf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
Directory.build.props
Directory.build.props
+2
-2
build.ps1
build.ps1
+1
-9
No files found.
Directory.build.props
View file @
70bbb472
...
@@ -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).$(_RestoreProject
Version)</_NuSpecPrefix>
<_NuSpecPrefix>$(
MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)$(MSBuildProjectName).$(Package
Version)</_NuSpecPrefix>
<_NuSpec>$(_NuSpecPrefix).nuspec</_NuSpec>
<_NuSpec>$(_NuSpecPrefix).nuspec</_NuSpec>
<_NuSpecPatched>$(_NuSpecPrefix).patched.nuspec</_NuSpecPatched>
<_NuSpecPatched>$(_NuSpecPrefix).patched.nuspec</_NuSpecPatched>
</PropertyGroup>
</PropertyGroup>
...
...
build.ps1
View file @
70bbb472
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment