This commit is contained in:
Chris Maddock 2016-04-16 19:20:36 +01:00
Родитель fc6ad040a0
Коммит 1b31cb8734
2 изменённых файлов: 11 добавлений и 21 удалений

Просмотреть файл

@ -3,14 +3,14 @@
Each of the sample solutions can be built individually within Visual Studio. To build and test all solutions, a **Cake** (http://cakebuild.net) script is provided.
The primary script that controls this is build.cake. We modify build.cake when we need to add new
targets or change the way the build is done. Normally build.cake is not invoked directly but through
build.ps1 (on Windows) or build.sh (on Linux). These two scripts are provided by the Cake project
and ensure that Cake is properly installed before trying to run the cake script. This helps the
build to work on CI servers using newly created agents to run the build and we generally run it
build.ps1. (Due to issues with mono's VBNC compiler, there is currently only a Windows build process.)
This script is provided by the Cake project and ensures that Cake is properly installed before trying to run the cake script. This helps the
build to work on CI servers using newly created agents to run the build. We generally run it
the same way on our own machines.
The build shell script and build.cmd script are provided as an easy way to run the above commands.
In addition to passing their arguments through to build.cake, they can supply added arguments
through the CAKE_ARGS environment variable. The rest of this document will assume use of these commands.
The build.cmd script is provided as an easy way to run build.ps1, from the command line.
In addition to passing the arguments through to build.cake, it can supply added arguments
through the CAKE_ARGS environment variable. The rest of this document will assume use of this script.
There is one case in which use of the CAKE_ARGS environment variable will be essential, if not necessary.
If you are running builds on a 32-bit Windows system, you must always supply the -Experimental argument

Просмотреть файл

@ -144,21 +144,11 @@ void CheckForError(ref List<string> errorDetail)
void BuildProject(string projPath, string configuration)
{
if (IsRunningOnWindows())
{
MSBuild(projPath, new MSBuildSettings()
.SetConfiguration(configuration)
.SetMSBuildPlatform(MSBuildPlatform.Automatic)
.SetVerbosity(Verbosity.Minimal)
.SetNodeReuse(false));
}
else
{
XBuild(projPath, new XBuildSettings()
.WithTarget("Build")
.WithProperty("Configuration", configuration)
.SetVerbosity(Verbosity.Minimal));
}
MSBuild(projPath, new MSBuildSettings()
.SetConfiguration(configuration)
.SetMSBuildPlatform(MSBuildPlatform.Automatic)
.SetVerbosity(Verbosity.Minimal)
.SetNodeReuse(false));
}
string DirFrom(string filePath)