Develop #221

Closed
wants to merge 24 commits into
from
Commits
Jump to file
+3,064 −7,148
Split
View
@@ -15,4 +15,4 @@ First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget).
PM> Install-Package AutoMapper
-AutoMapper is Copyright © 2008-2011 [Jimmy Bogard](http://jimmybogard.lostechies.com) and other contributors under the [MIT license](LICENSE.txt).
+AutoMapper is Copyright © 2008-2012 [Jimmy Bogard](http://jimmybogard.lostechies.com) and other contributors under the [MIT license](LICENSE.txt).
View
@@ -31,7 +31,7 @@ task release {
}
task compile -depends clean {
- exec { msbuild /t:Clean /t:Build /p:Configuration=Automated$config /v:q /nologo $source_dir\AutoMapper.sln }
+ exec { msbuild /t:Clean /t:Build /p:Configuration=Automated$config /v:q /p:NoWarn=1591 /nologo $source_dir\AutoMapper.sln }
}
task commonAssemblyInfo {
@@ -42,14 +42,13 @@ task commonAssemblyInfo {
task test {
create_directory "$build_dir\results"
exec { & $tools_dir\nunit\nunit-console-x86.exe $build_dir/$config/UnitTests/AutoMapper.UnitTests.dll /nologo /nodots /xml=$result_dir\AutoMapper.xml }
- exec { & $tools_dir\nunit\nunit-console-x86.exe $build_dir/$config/UnitTests.Silverlight/AutoMapper.UnitTests.Silverlight.dll /nologo /nodots /xml=$result_dir\AutoMapper.Silverlight.xml }
}
task dist {
create_directory $dist_dir
copy_files "$build_dir\$config\AutoMapper" "$dist_dir\net40-client"
- copy_files "$build_dir\$config\AutoMapper.Silverlight" "$dist_dir\sl4" "mscorlib.dll"
- create-nuspec "$buildNumber"
+ create-nuspec "$version" "AutoMapper.nuspec"
+ create-nuspec "$version-ci" "AutoMapper-CI.nuspec"
}
# -------------------------------------------------------------------------------------------------------------
@@ -122,7 +121,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyInformationalVersionAttribute(""$version"")]" | out-file $filename -encoding "ASCII"
}
-function global:create-nuspec()
+function global:create-nuspec($version, $fileName)
{
"<?xml version=""1.0""?>
<package xmlns=""http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"">
@@ -142,11 +141,8 @@ function global:create-nuspec()
<file src=""$dist_dir\net40-client\AutoMapper.dll"" target=""lib\net40"" />
<file src=""$dist_dir\net40-client\AutoMapper.pdb"" target=""lib\net40"" />
<file src=""$dist_dir\net40-client\AutoMapper.xml"" target=""lib\net40"" />
- <file src=""$dist_dir\sl4\AutoMapper.dll"" target=""lib\sl4"" />
- <file src=""$dist_dir\sl4\AutoMapper.pdb"" target=""lib\sl4"" />
- <file src=""$dist_dir\sl4\AutoMapper.xml"" target=""lib\sl4"" />
<file src=""**\*.cs"" target=""src"" />
</files>
-</package>" | out-file $build_dir\AutoMapper.nuspec -encoding "ASCII"
+</package>" | out-file $build_dir\$fileName -encoding "ASCII"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.