Beispiel #1
0
 /// <summary>
 /// Sets the tool version.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <param name="version">The version.</param>
 /// <returns>The same <see cref="XBuildSettings"/> instance so that multiple calls can be chained.</returns>
 public static XBuildSettings UseToolVersion(this XBuildSettings settings, XBuildToolVersion version)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     settings.ToolVersion = version;
     return(settings);
 }
Beispiel #2
0
        public static FilePath GetXBuildPath(IFileSystem fileSystem, ICakeEnvironment environment, XBuildToolVersion version)
        {
            _environment = environment;
            _fileSystem  = fileSystem;

            if (_environment.IsUnix())
            {
                return(GetWhichXBuild());
            }
            else
            {
                return(GetWindowsXBuild());
            }
        }