Skip to content

Commit

Permalink
dotnet pack or nuget is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogard committed Aug 12, 2016
1 parent beba155 commit d856694
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build_script:
- cmd: .\psake.bat ci
test: off
artifacts:
- path: src\AutoMapper\bin\release\*.nupkg
- path: artifacts\*.nupkg
name: NuGet
deploy:
- provider: NuGet
Expand Down
5 changes: 5 additions & 0 deletions default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ task release {
task compile -depends clean {
$version = if ($env:APPVEYOR_BUILD_NUMBER -ne $NULL) { $env:APPVEYOR_BUILD_NUMBER } else { '0' }
$version = "{0:D5}" -f [convert]::ToInt32($version, 10)
$version = "5.1.1-alpha-" + $version
$version = "5.1.1"

exec { & $source_dir\.nuget\Nuget.exe restore $source_dir\AutoMapper.sln }

exec { msbuild /t:Clean /t:Build /p:Configuration=$config /v:q /p:NoWarn=1591 /nologo $source_dir\AutoMapper.sln }

New-Item -ItemType Directory -Force .\artifacts

exec { & $source_dir\.nuget\Nuget.exe pack AutoMapper.nuspec -Version $version -Symbols -OutputDirectory .\artifacts }
exec { dotnet pack $source_dir\AutoMapper -c $config --version-suffix $version}
}

Expand Down
2 changes: 1 addition & 1 deletion src/AutoMapper/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.1.0",
"version": "5.1.1",
"authors": [ "Jimmy Bogard" ],
"description": "A convention-based object-object mapper. AutoMapper uses a fluent configuration API to define an object-object mapping strategy. AutoMapper uses a convention-based matching algorithm to match up source to destination values. Currently, AutoMapper is designed for model projection scenarios to flatten complex object models to DTOs and other simple objects, whose design is better suited for serialization, communication, messaging, or simply an anti-corruption layer between the domain and application layer.",
"packOptions": {
Expand Down

0 comments on commit d856694

Please sign in to comment.