Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating NuGet package creation for CLR2 and CLR4 projects

Since we now have the framework-specific Machine.Specifications.Clr4.dll we need to have lib/net20 without the CLR4 assembly and lib/net40 that contains both Machine.Specifications.dll and Machine.Specifications.Clr4.dll
  • Loading branch information...
commit 4ba871808f66c6663732094b445157930145af04 1 parent ffd672e
@agross agross authored
View
4 Source/Machine.Specifications.Clr4/Machine.Specifications.Clr4.csproj
@@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>..\..\Build\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
+ <OutputPath>..\..\Build\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
View
1  mspec.nuspec.template
@@ -16,6 +16,7 @@
<tags>test unit testing context specification bdd tdd mspec</tags>
<references>
<reference file="Machine.Specifications.dll" />
+ <reference file="Machine.Specifications.Clr4.dll" />
</references>
</metadata>
</package>
View
16 rakefile.rb
@@ -175,13 +175,19 @@ def build (msbuild_options, config)
end
namespace :package do
- def framework_files(root = '.')
+ def net_20_framework_files(root = '.')
FileList.new("#{root}/Machine.Specifications.dll") \
.include("#{root}/Machine.Specifications.pdb") \
.include("#{root}/Machine.Specifications.dll.tdnet") \
.include("#{root}/Machine.Specifications.TDNetRunner.*")
end
+ def net_40_framework_files(root = '.')
+ net_20_framework_files(root) \
+ .include("#{root}/Machine.Specifications.Clr4.dll") \
+ .include("#{root}/Machine.Specifications.Clr4.pdb")
+ end
+
def source_files(root = '.')
FileList.new("#{root}/**/*.cs") \
.exclude('**/*Example*') \
@@ -224,9 +230,13 @@ def create_package
namespace :nuget do
desc "Package build artifacts as a NuGet package and a symbols package"
task :create => :zip do
- framework_files(configatron.out_dir).copy_hierarchy \
+ net_20_framework_files(configatron.out_dir).copy_hierarchy \
+ :source_dir => configatron.out_dir,
+ :target_dir => "#{configatron.out_dir}NuGet/lib/net20"
+
+ net_40_framework_files(configatron.out_dir).copy_hierarchy \
:source_dir => configatron.out_dir,
- :target_dir => "#{configatron.out_dir}NuGet/lib/"
+ :target_dir => "#{configatron.out_dir}NuGet/lib/net40"
source_files('Source').copy_hierarchy \
:source_dir => 'Source',
Please sign in to comment.
Something went wrong with that request. Please try again.