forked from autofac/Autofac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NuGet packages correctly build and place the output in the package fo…
…lder.
- Loading branch information
1 parent
f178ca4
commit 6e50867
Showing
12 changed files
with
229 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Stage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="Stage"> | ||
<Error Text="You must specify the project binary output directory." Condition="'$(BuildBinDirectory)' == ''" /> | ||
<Error Text="You must specify the Nuspec staging directory." Condition="'$(StagingDirectory)' == ''" /> | ||
<PropertyGroup> | ||
<!-- The name of the .nuspec file being staged, minus extension. --> | ||
<NuspecName>Autofac.Mef</NuspecName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!-- | ||
Staging goes in build_output\package\nuspec-staging\NuspecName so the | ||
master build script can run NuGet and package it all up. | ||
Select which assemblies from the root build_output folder get included. | ||
Everything else will get staged automatically. | ||
--> | ||
<LibFiles Include=" | ||
$(BuildBinDirectory)\**\Autofac.Integration.Mef.dll; | ||
$(BuildBinDirectory)\**\Autofac.Integration.Mef.xml" /> | ||
<ProjectFiles Include="$(MSBuildProjectDirectory)\**\*.*" Exclude="$(MSBuildProjectDirectory)\NuspecStaging.proj;$(MSBuildProjectDirectory)\*.nuspec" /> | ||
</ItemGroup> | ||
|
||
<!-- Copy the .nuspec, other project files in this folder, and requisite lib files into a staging area for packaging. --> | ||
<MakeDir Directories="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(NuspecName).nuspec" DestinationFolder="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="%(ProjectFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\%(ProjectFiles.RecursiveDir)%(ProjectFiles.Filename)%(ProjectFiles.Extension)" /> | ||
<Copy SourceFiles="%(LibFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\lib\%(LibFiles.RecursiveDir)%(LibFiles.Filename)%(LibFiles.Extension)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Stage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="Stage"> | ||
<Error Text="You must specify the project binary output directory." Condition="'$(BuildBinDirectory)' == ''" /> | ||
<Error Text="You must specify the Nuspec staging directory." Condition="'$(StagingDirectory)' == ''" /> | ||
<PropertyGroup> | ||
<!-- The name of the .nuspec file being staged, minus extension. --> | ||
<NuspecName>Autofac.Mvc3</NuspecName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!-- | ||
Staging goes in build_output\package\nuspec-staging\NuspecName so the | ||
master build script can run NuGet and package it all up. | ||
Select which assemblies from the root build_output folder get included. | ||
Everything else will get staged automatically. | ||
--> | ||
<LibFiles Include=" | ||
$(BuildBinDirectory)\**\Autofac.Integration.Mvc.dll; | ||
$(BuildBinDirectory)\**\Autofac.Integration.Mvc.xml" /> | ||
<ProjectFiles Include="$(MSBuildProjectDirectory)\**\*.*" Exclude="$(MSBuildProjectDirectory)\NuspecStaging.proj;$(MSBuildProjectDirectory)\*.nuspec" /> | ||
</ItemGroup> | ||
|
||
<!-- Copy the .nuspec, other project files in this folder, and requisite lib files into a staging area for packaging. --> | ||
<MakeDir Directories="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(NuspecName).nuspec" DestinationFolder="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="%(ProjectFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\%(ProjectFiles.RecursiveDir)%(ProjectFiles.Filename)%(ProjectFiles.Extension)" /> | ||
<Copy SourceFiles="%(LibFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\lib\%(LibFiles.RecursiveDir)%(LibFiles.Filename)%(LibFiles.Extension)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Stage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="Stage"> | ||
<Error Text="You must specify the project binary output directory." Condition="'$(BuildBinDirectory)' == ''" /> | ||
<Error Text="You must specify the Nuspec staging directory." Condition="'$(StagingDirectory)' == ''" /> | ||
<PropertyGroup> | ||
<!-- The name of the .nuspec file being staged, minus extension. --> | ||
<NuspecName>Autofac.Wcf</NuspecName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!-- | ||
Staging goes in build_output\package\nuspec-staging\NuspecName so the | ||
master build script can run NuGet and package it all up. | ||
Select which assemblies from the root build_output folder get included. | ||
Everything else will get staged automatically. | ||
--> | ||
<LibFiles Include=" | ||
$(BuildBinDirectory)\**\Autofac.Integration.Wcf.dll; | ||
$(BuildBinDirectory)\**\Autofac.Integration.Wcf.xml" /> | ||
<ProjectFiles Include="$(MSBuildProjectDirectory)\**\*.*" Exclude="$(MSBuildProjectDirectory)\NuspecStaging.proj;$(MSBuildProjectDirectory)\*.nuspec" /> | ||
</ItemGroup> | ||
|
||
<!-- Copy the .nuspec, other project files in this folder, and requisite lib files into a staging area for packaging. --> | ||
<MakeDir Directories="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(NuspecName).nuspec" DestinationFolder="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="%(ProjectFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\%(ProjectFiles.RecursiveDir)%(ProjectFiles.Filename)%(ProjectFiles.Extension)" /> | ||
<Copy SourceFiles="%(LibFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\lib\%(LibFiles.RecursiveDir)%(LibFiles.Filename)%(LibFiles.Extension)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Stage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="Stage"> | ||
<Error Text="You must specify the project binary output directory." Condition="'$(BuildBinDirectory)' == ''" /> | ||
<Error Text="You must specify the Nuspec staging directory." Condition="'$(StagingDirectory)' == ''" /> | ||
<PropertyGroup> | ||
<!-- The name of the .nuspec file being staged, minus extension. --> | ||
<NuspecName>Autofac.Web</NuspecName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!-- | ||
Staging goes in build_output\package\nuspec-staging\NuspecName so the | ||
master build script can run NuGet and package it all up. | ||
Select which assemblies from the root build_output folder get included. | ||
Everything else will get staged automatically. | ||
--> | ||
<LibFiles Include=" | ||
$(BuildBinDirectory)\**\Autofac.Integration.Web.dll; | ||
$(BuildBinDirectory)\**\Autofac.Integration.Web.xml" /> | ||
<ProjectFiles Include="$(MSBuildProjectDirectory)\**\*.*" Exclude="$(MSBuildProjectDirectory)\NuspecStaging.proj;$(MSBuildProjectDirectory)\*.nuspec" /> | ||
</ItemGroup> | ||
|
||
<!-- Copy the .nuspec, other project files in this folder, and requisite lib files into a staging area for packaging. --> | ||
<MakeDir Directories="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(NuspecName).nuspec" DestinationFolder="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="%(ProjectFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\%(ProjectFiles.RecursiveDir)%(ProjectFiles.Filename)%(ProjectFiles.Extension)" /> | ||
<Copy SourceFiles="%(LibFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\lib\%(LibFiles.RecursiveDir)%(LibFiles.Filename)%(LibFiles.Extension)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Stage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="Stage"> | ||
<Error Text="You must specify the project binary output directory." Condition="'$(BuildBinDirectory)' == ''" /> | ||
<Error Text="You must specify the Nuspec staging directory." Condition="'$(StagingDirectory)' == ''" /> | ||
<PropertyGroup> | ||
<!-- The name of the .nuspec file being staged, minus extension. --> | ||
<NuspecName>Autofac</NuspecName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!-- | ||
Staging goes in build_output\package\nuspec-staging\NuspecName so the | ||
master build script can run NuGet and package it all up. | ||
Select which assemblies from the root build_output folder get included. | ||
Everything else will get staged automatically. | ||
--> | ||
<LibFiles Include=" | ||
$(BuildBinDirectory)\**\Autofac.dll; | ||
$(BuildBinDirectory)\**\Autofac.xml; | ||
$(BuildBinDirectory)\**\Autofac.Configuration.dll; | ||
$(BuildBinDirectory)\**\Autofac.Configuration.xml" /> | ||
<ProjectFiles Include="$(MSBuildProjectDirectory)\**\*.*" Exclude="$(MSBuildProjectDirectory)\NuspecStaging.proj;$(MSBuildProjectDirectory)\*.nuspec" /> | ||
</ItemGroup> | ||
|
||
<!-- Copy the .nuspec, other project files in this folder, and requisite lib files into a staging area for packaging. --> | ||
<MakeDir Directories="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(NuspecName).nuspec" DestinationFolder="$(StagingDirectory)\$(NuspecName)" /> | ||
<Copy SourceFiles="%(ProjectFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\%(ProjectFiles.RecursiveDir)%(ProjectFiles.Filename)%(ProjectFiles.Extension)" /> | ||
<Copy SourceFiles="%(LibFiles.FullPath)" DestinationFiles="$(StagingDirectory)\$(NuspecName)\lib\%(LibFiles.RecursiveDir)%(LibFiles.Filename)%(LibFiles.Extension)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
@%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild Autofac.build %* | ||
@%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild default.proj %* |