Skip to content

Commit

Permalink
Resorting to nuspec because of nuget weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogard committed Jul 22, 2016
1 parent 6c68534 commit acf06fd
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 39 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
build/ build/
release/ release/
scripts/ scripts/
artifacts/
.dotnet .dotnet
TestResults/ TestResults/
*.suo *.suo
Expand Down
70 changes: 34 additions & 36 deletions AutoMapper.nuspec
@@ -1,51 +1,49 @@
<?xml version="1.0" encoding="utf-8"?> <?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> <metadata>
<id>AutoMapper</id> <id>AutoMapper</id>
<version>0.0.0</version> <version>$version$</version>
<authors>Jimmy Bogard</authors> <authors>Jimmy Bogard</authors>
<owners>Jimmy Bogard</owners> <owners>Jimmy Bogard</owners>
<licenseUrl>https://github.com/AutoMapper/AutoMapper/blob/master/LICENSE.txt</licenseUrl> <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> <iconUrl>https://s3.amazonaws.com/automapper/icon.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <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> <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> <dependencies>
<group targetFramework="net45" /> <group targetFramework=".NETFramework4.5" />
<group targetFramework="portable45-net45+win8+wpa81"/> <group targetFramework=".NETPortable4.5-Profile111" />
<group targetFramework="netstandard1.1"> <group targetFramework=".NETStandard1.1">
<dependency id="System.Collections" version="4.0.11" /> <dependency id="NETStandard.Library" version="[1.6.0, )" />
<dependency id="System.Collections.Concurrent" version="4.0.12" /> <dependency id="System.Linq.Queryable" version="[4.0.1, )" />
<dependency id="System.Diagnostics.Debug" version="4.0.11" /> <dependency id="System.ComponentModel.TypeConverter" version="[4.1.0, )" />
<dependency id="System.Globalization" version="4.0.11" /> <dependency id="System.Dynamic.Runtime" version="[4.0.11, )" />
<dependency id="System.Linq" version="4.1.0" /> <dependency id="Microsoft.CSharp" version="[4.0.1, )" />
<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> </group>
<group targetFramework="netstandard1.3"> <group targetFramework=".NETStandard1.3">
<dependency id="System.Collections" version="4.0.11" /> <dependency id="NETStandard.Library" version="[1.6.0, )" />
<dependency id="System.Collections.Concurrent" version="4.0.12" /> <dependency id="System.Linq.Queryable" version="[4.0.1, )" />
<dependency id="System.Diagnostics.Debug" version="4.0.11" /> <dependency id="System.Collections.Specialized" version="[4.0.1, )" />
<dependency id="System.Globalization" version="4.0.11" /> <dependency id="System.ComponentModel.TypeConverter" version="[4.1.0, )" />
<dependency id="System.Linq" version="4.1.0" /> <dependency id="System.Dynamic.Runtime" version="[4.0.11, )" />
<dependency id="System.Linq.Expressions" version="4.1.0" /> <dependency id="Microsoft.CSharp" version="[4.0.1, )" />
<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> </group>
</dependencies> </dependencies>
</metadata> </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> </package>
6 changes: 5 additions & 1 deletion default.ps1
Expand Up @@ -30,12 +30,16 @@ task release {
task compile -depends clean { task compile -depends clean {
$version = if ($env:APPVEYOR_BUILD_NUMBER -ne $NULL) { $env:APPVEYOR_BUILD_NUMBER } else { '0' } $version = if ($env:APPVEYOR_BUILD_NUMBER -ne $NULL) { $env:APPVEYOR_BUILD_NUMBER } else { '0' }
$version = "{0:D5}" -f [convert]::ToInt32($version, 10) $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 { & $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 { 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 { task benchmark {
Expand Down
Binary file modified src/.nuget/NuGet.exe
Binary file not shown.
5 changes: 3 additions & 2 deletions src/AutoMapper.sln
@@ -1,10 +1,11 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.25123.0 VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0691ABF2-B3C7-43BF-9862-2D8D1299CE58}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0691ABF2-B3C7-43BF-9862-2D8D1299CE58}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
AutoMapper.targets = AutoMapper.targets ..\appveyor.yml = ..\appveyor.yml
..\AutoMapper.nuspec = ..\AutoMapper.nuspec
..\default.ps1 = ..\default.ps1 ..\default.ps1 = ..\default.ps1
..\global.json = ..\global.json ..\global.json = ..\global.json
NuGet.config = NuGet.config NuGet.config = NuGet.config
Expand Down

0 comments on commit acf06fd

Please sign in to comment.