Permalink
Browse files

Resorting to nuspec because of nuget weirdness

  • Loading branch information...
1 parent 6c68534 commit acf06fdf1734d1e4be6cca4b6b5c4ba34210656a @jbogard jbogard committed Jul 22, 2016
Showing with 43 additions and 39 deletions.
  1. +1 −0 .gitignore
  2. +34 −36 AutoMapper.nuspec
  3. +5 −1 default.ps1
  4. BIN src/.nuget/NuGet.exe
  5. +3 −2 src/AutoMapper.sln
View
@@ -1,6 +1,7 @@
build/
release/
scripts/
+artifacts/
.dotnet
TestResults/
*.suo
View
@@ -1,51 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
-<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>AutoMapper</id>
- <version>0.0.0</version>
+ <version>$version$</version>
<authors>Jimmy Bogard</authors>
<owners>Jimmy Bogard</owners>
<licenseUrl>https://github.com/AutoMapper/AutoMapper/blob/master/LICENSE.txt</licenseUrl>
- <projectUrl>http://automapper.org</projectUrl>
+ <projectUrl>http://automapper.org/</projectUrl>
<iconUrl>https://s3.amazonaws.com/automapper/icon.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <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.</description>
<summary>A convention-based object-object mapper</summary>
- <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 geared towards 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.</description>
+ <tags></tags>
<dependencies>
- <group targetFramework="net45" />
- <group targetFramework="portable45-net45+win8+wpa81"/>
- <group targetFramework="netstandard1.1">
- <dependency id="System.Collections" version="4.0.11" />
- <dependency id="System.Collections.Concurrent" version="4.0.12" />
- <dependency id="System.Diagnostics.Debug" version="4.0.11" />
- <dependency id="System.Globalization" version="4.0.11" />
- <dependency id="System.Linq" version="4.1.0" />
- <dependency id="System.Linq.Expressions" version="4.1.0" />
- <dependency id="System.Linq.Queryable" version="4.0.1" />
- <dependency id="System.ObjectModel" version="4.0.12" />
- <dependency id="System.Reflection" version="4.1.0" />
- <dependency id="System.Reflection.Extensions" version="4.0.1" />
- <dependency id="System.Runtime" version="4.1.0" />
- <dependency id="System.Runtime.Extensions" version="4.1.0" />
- <dependency id="System.Text.RegularExpressions" version="4.1.0" />
- <dependency id="System.Threading.Tasks" version="4.0.11" />
+ <group targetFramework=".NETFramework4.5" />
+ <group targetFramework=".NETPortable4.5-Profile111" />
+ <group targetFramework=".NETStandard1.1">
+ <dependency id="NETStandard.Library" version="[1.6.0, )" />
+ <dependency id="System.Linq.Queryable" version="[4.0.1, )" />
+ <dependency id="System.ComponentModel.TypeConverter" version="[4.1.0, )" />
+ <dependency id="System.Dynamic.Runtime" version="[4.0.11, )" />
+ <dependency id="Microsoft.CSharp" version="[4.0.1, )" />
</group>
- <group targetFramework="netstandard1.3">
- <dependency id="System.Collections" version="4.0.11" />
- <dependency id="System.Collections.Concurrent" version="4.0.12" />
- <dependency id="System.Diagnostics.Debug" version="4.0.11" />
- <dependency id="System.Globalization" version="4.0.11" />
- <dependency id="System.Linq" version="4.1.0" />
- <dependency id="System.Linq.Expressions" version="4.1.0" />
- <dependency id="System.Linq.Queryable" version="4.0.1" />
- <dependency id="System.ObjectModel" version="4.0.12" />
- <dependency id="System.Reflection" version="4.1.0" />
- <dependency id="System.Reflection.Extensions" version="4.0.1" />
- <dependency id="System.Runtime" version="4.1.0" />
- <dependency id="System.Runtime.Extensions" version="4.1.0" />
- <dependency id="System.Text.RegularExpressions" version="4.1.0" />
- <dependency id="System.Threading.Tasks" version="4.0.11" />
+ <group targetFramework=".NETStandard1.3">
+ <dependency id="NETStandard.Library" version="[1.6.0, )" />
+ <dependency id="System.Linq.Queryable" version="[4.0.1, )" />
+ <dependency id="System.Collections.Specialized" version="[4.0.1, )" />
+ <dependency id="System.ComponentModel.TypeConverter" version="[4.1.0, )" />
+ <dependency id="System.Dynamic.Runtime" version="[4.0.11, )" />
+ <dependency id="Microsoft.CSharp" version="[4.0.1, )" />
</group>
</dependencies>
</metadata>
+ <files>
+ <file src="src\AutoMapper\bin\Release\net45\AutoMapper.dll" target="lib\net45" />
+ <file src="src\AutoMapper\bin\Release\net45\AutoMapper.pdb" target="lib\net45" />
+ <file src="src\AutoMapper\bin\Release\net45\AutoMapper.xml" target="lib\net45" />
+ <file src="src\AutoMapper\bin\Release\netstandard1.1\AutoMapper.dll" target="lib\netstandard1.1" />
+ <file src="src\AutoMapper\bin\Release\netstandard1.1\AutoMapper.pdb" target="lib\netstandard1.1" />
+ <file src="src\AutoMapper\bin\Release\netstandard1.1\AutoMapper.xml" target="lib\netstandard1.1" />
+ <file src="src\AutoMapper\bin\Release\netstandard1.3\AutoMapper.dll" target="lib\netstandard1.3" />
+ <file src="src\AutoMapper\bin\Release\netstandard1.3\AutoMapper.pdb" target="lib\netstandard1.3" />
+ <file src="src\AutoMapper\bin\Release\netstandard1.3\AutoMapper.xml" target="lib\netstandard1.3" />
+ <file src="src\AutoMapper\bin\Release\portable45-net45+win8+wpa81\AutoMapper.dll" target="lib\portable-net45+win8+wpa81" />
+ <file src="src\AutoMapper\bin\Release\portable45-net45+win8+wpa81\AutoMapper.pdb" target="lib\portable-net45+win8+wpa81" />
+ <file src="src\AutoMapper\bin\Release\portable45-net45+win8+wpa81\AutoMapper.xml" target="lib\portable-net45+win8+wpa81" />
+ </files>
</package>
View
@@ -30,12 +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.0-alpha-" + $version
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 }
- exec { dotnet pack $source_dir\AutoMapper -c $config --version-suffix $version}
+ 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}
}
task benchmark {
View
Binary file not shown.
View
@@ -1,10 +1,11 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
-VisualStudioVersion = 14.0.25123.0
+VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0691ABF2-B3C7-43BF-9862-2D8D1299CE58}"
ProjectSection(SolutionItems) = preProject
- AutoMapper.targets = AutoMapper.targets
+ ..\appveyor.yml = ..\appveyor.yml
+ ..\AutoMapper.nuspec = ..\AutoMapper.nuspec
..\default.ps1 = ..\default.ps1
..\global.json = ..\global.json
NuGet.config = NuGet.config

0 comments on commit acf06fd

Please sign in to comment.