Exemplo n.º 1
0
 public WapBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
     : base(settings, propertyProvider, sourcePath, tempPath)
 {
     _projectPath = projectPath;
     _tempPath = tempPath;
     _solutionPath = solutionPath;
 }
Exemplo n.º 2
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
     var properties = propertyProvider.GetProperties();
     properties[WellKnownEnvironmentVariables.DnxVersion] = AspNet5Helper.GetAspNet5RuntimeVersion(sourcePath);
 }
Exemplo n.º 3
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath   = repositoryPath;
     _tempPath         = tempPath;
     _command          = command;
     _propertyProvider = propertyProvider;
 }
        public SiteBuilderFactoryDispatcher(IDeploymentSettingsManager settingsManager, IBuildPropertyProvider propertyProvider, IEnvironment environment)
        {
            _settingsManager = settingsManager;

            _originalSiteBuilderFactory = new SiteBuilderFactory(settingsManager, propertyProvider, environment);
            _generatorSiteBuilderFactory = new Generator.SiteBuilderFactory(settingsManager, propertyProvider, environment);
        }
Exemplo n.º 5
0
 public WapBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
     : base(settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath;
     _tempPath     = tempPath;
     _solutionPath = solutionPath;
 }
Exemplo n.º 6
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath = repositoryPath;
     _tempPath = tempPath;
     _command = command;
     _propertyProvider = propertyProvider;
 }
Exemplo n.º 7
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
 {
     _propertyProvider = propertyProvider;
     _msbuildExe = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory);
     _msbuildExe.EnvironmentVariables[NuGetCachePathKey] = nugetCachePath;
     _tempPath = tempPath;
 }
Exemplo n.º 8
0
 public WapBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string nugetCachePath, string solutionPath)
     : base(propertyProvider, sourcePath, tempPath, nugetCachePath)
 {
     _projectPath = projectPath;
     _tempPath = tempPath;
     _solutionPath = solutionPath;
 }
Exemplo n.º 9
0
 public WapBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string nugetCachePath, string solutionPath)
     : base(propertyProvider, sourcePath, tempPath, nugetCachePath)
 {
     _projectPath  = projectPath;
     _tempPath     = tempPath;
     _solutionPath = solutionPath;
 }
Exemplo n.º 10
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, bool isConsoleApp)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
     _sourcePath = sourcePath;
     _isConsoleApp = isConsoleApp;
 }
Exemplo n.º 11
0
 public OryxBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     this.environment      = environment;
     this.settings         = settings;
     this.propertyProvider = propertyProvider;
     this.sourcePath       = sourcePath;
 }
Exemplo n.º 12
0
        protected MsBuildSiteBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string workingDirectory)
        {
            _settings = settings;
            _propertyProvider = propertyProvider;
            _msbuildExe = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory, settings.GetCommandIdleTimeout());

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[WellKnownEnvironmentVariables.NuGetPackageRestoreKey] = "true";
        }
Exemplo n.º 13
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider, string homePath, IDeploymentSettingsManager settings)
 {
     _repositoryPath = repositoryPath;
     _tempPath = tempPath;
     _command = command;
     _propertyProvider = propertyProvider;
     _homePath = homePath;
     _settings = settings;
 }
Exemplo n.º 14
0
        protected MsBuildSiteBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string workingDirectory)
        {
            _settings         = settings;
            _propertyProvider = propertyProvider;
            _msbuildExe       = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory, settings.GetCommandIdleTimeout());

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[WellKnownEnvironmentVariables.NuGetPackageRestoreKey] = "true";
        }
Exemplo n.º 15
0
        public ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

            DeploymentSettings = settings;
            RepositoryPath = repositoryPath;
            PropertyProvider = propertyProvider;
            HomePath = environment.SiteRootPath;
        }
Exemplo n.º 16
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider, string homePath, string scriptPath, IDeploymentSettingsManager settings)
 {
     _repositoryPath   = repositoryPath;
     _tempPath         = tempPath;
     _command          = command;
     _propertyProvider = propertyProvider;
     _homePath         = homePath;
     _scriptPath       = scriptPath;
     _settings         = settings;
 }
Exemplo n.º 17
0
        protected ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

            DeploymentSettings = settings;
            RepositoryPath     = repositoryPath;
            PropertyProvider   = propertyProvider;

            ExternalCommandFactory = new ExternalCommandFactory(environment, settings, repositoryPath);
        }
Exemplo n.º 18
0
        protected ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

            DeploymentSettings = settings;
            RepositoryPath = repositoryPath;
            PropertyProvider = propertyProvider;

            ExternalCommandFactory = new ExternalCommandFactory(environment, settings, repositoryPath);
        }
Exemplo n.º 19
0
        public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
        {
            _propertyProvider = propertyProvider;
            _msbuildExe = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory);

            // Disable this for now
            // _msbuildExe.EnvironmentVariables[NuGetCachePathKey] = nugetCachePath;

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[NuGetPackageRestoreKey] = "true";

            _tempPath = tempPath;
        }
Exemplo n.º 20
0
        public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
        {
            _propertyProvider = propertyProvider;
            _msbuildExe       = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory);

            // Disable this for now
            // _msbuildExe.EnvironmentVariables[NuGetCachePathKey] = nugetCachePath;

            // NuGet.exe 1.8 will require an environment variable to make package restore work
            _msbuildExe.EnvironmentVariables[WellKnownEnvironmentVariables.NuGetPackageRestoreKey] = "true";

            _tempPath = tempPath;
        }
Exemplo n.º 21
0
        public SolutionBuilder(IBuildFolderPathProvider buildFolderPathProvider, IBuildPropertyProvider buildPropertyProvider)
        {
            if (buildFolderPathProvider == null)
            {
                throw new ArgumentNullException("buildFolderPathProvider");
            }

            if (buildPropertyProvider == null)
            {
                throw new ArgumentNullException("buildPropertyProvider");
            }

            this.buildFolder = buildFolderPathProvider.GetBuildFolderPath();
            this.buildPropertyProvider = buildPropertyProvider;
        }
        public MSBuild14SolutionBuilder(IBuildFolderPathProvider buildFolderPathProvider, IBuildPropertyProvider buildPropertyProvider, IUserInterface userInterface)
        {
            if (buildFolderPathProvider == null)
            {
                throw new ArgumentNullException("buildFolderPathProvider");
            }

            if (buildPropertyProvider == null)
            {
                throw new ArgumentNullException("buildPropertyProvider");
            }

            this.buildFolder = buildFolderPathProvider.GetBuildFolderPath();
            this.buildPropertyProvider = buildPropertyProvider;
            this.userInterface = userInterface;
        }
Exemplo n.º 23
0
 public CustomBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string command)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     _command = command;
 }
Exemplo n.º 24
0
 protected SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string solutionPath, IDeploymentSettingsManager settings)
     : base(settings, propertyProvider, repositoryPath)
 {
     SolutionPath = solutionPath;
 }
Exemplo n.º 25
0
 public WapBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
     _solutionPath = solutionPath;
 }
Exemplo n.º 26
0
 public SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string solutionPath)
 {
     _propertyProvider = propertyProvider;
     SolutionPath = solutionPath;
     _msbuildExe = new Executable(ResolveMSBuildPath(), repositoryPath);
 }
Exemplo n.º 27
0
 public AspNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath = null)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath; // either xproj, csproj or project.json
     _solutionPath = solutionPath;
     if (_projectPath.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase))
     {
         _version = "csproj";
     }
     else if (_projectPath.EndsWith(".xproj", StringComparison.OrdinalIgnoreCase))
     {
         _version = "xproj";
     }
     else
     {
         _version = "project.json";
     }
 }
Exemplo n.º 28
0
 public BaseBasicBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath, string commandArgument)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     ProjectPath = CleanPath(projectPath);
     _commandArgument = commandArgument;
 }
 public CustomGeneratorCommandSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string scriptGeneratorArgs)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _scriptGeneratorArgs = scriptGeneratorArgs;
 }
Exemplo n.º 30
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory)
 {
     _propertyProvider = propertyProvider;
     _msbuildExe = new Executable(ResolveMSBuildPath(), workingDirectory);
 }
 public DotNetConsoleMSBuild1607Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--dotNetConsoleMSBuild1607")
 {
 }
Exemplo n.º 32
0
        public AspNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath, string targetFramework)
            : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--aspNetCore", targetFramework)
        {
            if (projectFilePath.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase))
            {
                _version = "CSPROJ";
            }
            else if (projectFilePath.EndsWith(".xproj", StringComparison.OrdinalIgnoreCase))
            {
                // if it's xproj, throw invalidOperationException
                throw new InvalidOperationException(@"Building Asp.Net Core .xproj is no longer supported in Azure, please move to .csproj
For more information, please visit https://go.microsoft.com/fwlink/?linkid=850964");
            }
            else
            {
                _version = "PROJECT.JSON";
            }
        }
Exemplo n.º 33
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
 }
Exemplo n.º 34
0
 protected BaseBasicBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath, string commandArgument)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     ProjectPath      = CleanPath(projectPath);
     _commandArgument = commandArgument;
 }
Exemplo n.º 35
0
 public OryxBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
 }
Exemplo n.º 36
0
 public WapBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath)
     : this(propertyProvider, sourcePath, projectPath, tempPath, null)
 {
 }
Exemplo n.º 37
0
 public SiteBuilderFactory(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _settings         = settings;
     _propertyProvider = propertyProvider;
     _environment      = environment;
 }
Exemplo n.º 38
0
 protected MicrosoftSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath, string commandArgument, string targetFramework = "")
     : base(environment, settings, propertyProvider, sourcePath)
 {
     ProjectFilePath = CleanPath(projectFilePath);
     SolutionPath    = CleanPath(solutionPath);
     CommandArgument = commandArgument;
     TargetFramework = targetFramework;
 }
Exemplo n.º 39
0
 public CustomBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string command)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     _command = command;
 }
Exemplo n.º 40
0
 public BasicConsoleBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath, projectPath)
 {
 }
Exemplo n.º 41
0
 protected GeneratorSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
 }
Exemplo n.º 42
0
 public NodeSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath)
     : base(environment, settings, propertyProvider, repositoryPath, projectPath, "--node")
 {
 }
Exemplo n.º 43
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
     : this(null, propertyProvider, workingDirectory, tempPath, nugetCachePath)
 {
 }
Exemplo n.º 44
0
 public FunctionMsbuildBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--functionApp")
 {
 }
 public SiteBuilderFactoryDispatcher(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _originalSiteBuilderFactory = new SiteBuilderFactory(propertyProvider, environment);
     _generatorSiteBuilderFactory = new Generator.SiteBuilderFactory(propertyProvider, environment);
 }
Exemplo n.º 46
0
 public AspNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath = null)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath; // either xproj, csproj or project.json
     _solutionPath = solutionPath;
     if (_projectPath.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase))
     {
         _version = "csproj";
     }
     else if (_projectPath.EndsWith(".xproj", StringComparison.OrdinalIgnoreCase))
     {
         // if it's xproj, throw invalidOperationException
         throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture,
                                                           Resources.Error_ProjectNotDeployable,
                                                           projectPath));
     }
     else
     {
         _version = "project.json";
     }
 }
Exemplo n.º 47
0
 public SiteBuilderFactory(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _propertyProvider = propertyProvider;
     _environment = environment;
 }
Exemplo n.º 48
0
 public GeneratorSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
 }
Exemplo n.º 49
0
 public GoSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath)
     : base(environment, settings, propertyProvider, repositoryPath, projectPath, "--go")
 {
 }
Exemplo n.º 50
0
 public CustomBuilder(string repositoryPath, string targetFile, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath = repositoryPath;
     _targetFile = targetFile;
     _propertyProvider = propertyProvider;
 }
Exemplo n.º 51
0
 public SiteBuilderFactory(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _settings = settings;
     _propertyProvider = propertyProvider;
     _environment = environment;
 }
Exemplo n.º 52
0
 public FunctionDotNetCoreBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectFilePath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath, projectFilePath, solutionPath, "--dotNetCoreFunctionApp")
 {
     FunctionAppHelper.ThrowsIfVersionMismatch(projectFilePath);
 }
Exemplo n.º 53
0
 public SiteBuilderFactory(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _propertyProvider = propertyProvider;
     _environment      = environment;
 }
Exemplo n.º 54
0
 public SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string tempPath, string nugetCachePath, string solutionPath)
     : base(propertyProvider, repositoryPath, tempPath, nugetCachePath)
 {
     SolutionPath = solutionPath;
 }
Exemplo n.º 55
0
 public WebSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string solutionPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath  = projectPath;
     _solutionPath = solutionPath;
 }
Exemplo n.º 56
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IFileFinder fileFinder, string sourcePath, string projectPath, bool isConsoleApp)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _fileFinder   = fileFinder;
     _projectPath  = projectPath;
     _sourcePath   = sourcePath;
     _isConsoleApp = isConsoleApp;
 }
Exemplo n.º 57
0
 public WebSiteBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
     : base(propertyProvider, sourcePath, tempPath, solutionPath)
 {
     _projectPath = projectPath;
 }
Exemplo n.º 58
0
 public CustomGeneratorCommandSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string scriptGeneratorArgs)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _scriptGeneratorArgs = scriptGeneratorArgs;
 }
Exemplo n.º 59
0
        public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
            : base(environment, settings, propertyProvider, sourcePath)
        {
            _projectPath = projectPath;
            var properties = propertyProvider.GetProperties();

            properties[WellKnownEnvironmentVariables.KreVersion] = AspNet5Helper.GetAspNet5RuntimeVersion(sourcePath);
        }
Exemplo n.º 60
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath)
     : this(null, propertyProvider, workingDirectory, tempPath)
 {
 }