Created
January 16, 2011 16:59
-
-
Save vquaiato/781948 to your computer and use it in GitHub Desktop.
MSBuild file for the MVCTestsEx 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="default"> | |
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)\..\lib\NuGetTasks\NuGet.MSBuild.dll" TaskName="NuGet.MSBuild.NuGet" /> | |
<PropertyGroup> | |
<Configuration Condition="'$(Configuration)'==''" >Release</Configuration> | |
<BaseDir>$(MSBuildProjectDirectory)\..</BaseDir> | |
<BuildDir>$(BaseDir)\build</BuildDir> | |
<BuildDirBin>$(BaseDir)\build\bin</BuildDirBin> | |
<NuGetSpecDir>$(BaseDir)\buildscripts\</NuGetSpecDir> | |
<PackageDir>$(BuildDir)\Packages</PackageDir> | |
<NuGetSpecTempDir>$(PackageDir)\temp\MVCTestsEx\</NuGetSpecTempDir> | |
<SolutionFile>$(BaseDir)\src\mvctestsex\MVCTestsExSolution.sln</SolutionFile> | |
<MSBuildExtensions>$(BaseDir)\lib\MSBuildCommunityTasks\msbuild.community.tasks.dll</MSBuildExtensions> | |
</PropertyGroup> | |
<UsingTask AssemblyFile="$(MSBuildExtensions)" TaskName="MSBuild.Community.Tasks.XmlUpdate" /> | |
<Target Name="default" DependsOnTargets="Compile; Copy; Package; Clean" /> | |
<Target Name="Compile"> | |
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(Configuration)" /> | |
</Target> | |
<Target Name="Copy"> | |
<ItemGroup> | |
<MainBinaries Include="$(BaseDir)\src\MVCTestsEx\MVCTestsEx\bin\$(Configuration)\**\*.*" /> | |
</ItemGroup> | |
<Copy SourceFiles="@(MainBinaries)" DestinationFolder="$(BuildDirBin)" /> | |
<Copy SourceFiles="@(MainBinaries)" DestinationFolder="$(NuGetSpecTempDir)\bin" /> | |
<Copy SourceFiles="$(NuGetSpecDir)\MVCTestsEx.nuspec" DestinationFolder="$(NuGetSpecTempDir)" /> | |
</Target> | |
<Target Name="Package"> | |
<GetAssemblyIdentity AssemblyFiles="$(BuildDirBin)\MVCTestsEx.dll"> | |
<Output TaskParameter="Assemblies" ItemName="AsmInfo" /> | |
</GetAssemblyIdentity> | |
<XmlUpdate Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" | |
XmlFileName="$(PackageDir)\temp\MVCTestsEx\MVCTestsEx.nuspec" | |
XPath="/package/metadata/version" | |
Value="%(AsmInfo.Version)" /> | |
<Message Text="Creating the package"/> | |
<NuGet PackageDir="$(PackageDir)" SpecFile="$(NuGetSpecTempDir)\MVCTestsEx.nuspec" /> | |
</Target> | |
<Target Name="Clean"> | |
<RemoveDir Directories="$(NuGetSpecTempDir)..\" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment