Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #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);
        }
Beispiel #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;
 }
Beispiel #6
0
 public CustomBuilder(string repositoryPath, string tempPath, string command, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath = repositoryPath;
     _tempPath = tempPath;
     _command = command;
     _propertyProvider = propertyProvider;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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";
        }
Beispiel #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;
 }
Beispiel #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";
        }
        public ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

            DeploymentSettings = settings;
            RepositoryPath = repositoryPath;
            PropertyProvider = propertyProvider;
            HomePath = environment.SiteRootPath;
        }
Beispiel #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;
 }
Beispiel #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);
        }
        protected ExternalCommandBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
        {
            Environment = environment;

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

            ExternalCommandFactory = new ExternalCommandFactory(environment, settings, repositoryPath);
        }
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #23
0
 public CustomBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string command)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     _command = command;
 }
Beispiel #24
0
 protected SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string solutionPath, IDeploymentSettingsManager settings)
     : base(settings, propertyProvider, repositoryPath)
 {
     SolutionPath = solutionPath;
 }
Beispiel #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;
 }
 public SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string solutionPath)
 {
     _propertyProvider = propertyProvider;
     SolutionPath = solutionPath;
     _msbuildExe = new Executable(ResolveMSBuildPath(), repositoryPath);
 }
Beispiel #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";
     }
 }
Beispiel #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;
 }
Beispiel #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")
 {
 }
Beispiel #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";
            }
        }
Beispiel #33
0
 public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _projectPath = projectPath;
 }
Beispiel #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;
 }
Beispiel #35
0
 public OryxBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath)
     : base(environment, settings, propertyProvider, sourcePath)
 {
 }
Beispiel #36
0
 public WapBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath)
     : this(propertyProvider, sourcePath, projectPath, tempPath, null)
 {
 }
Beispiel #37
0
 public SiteBuilderFactory(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _settings         = settings;
     _propertyProvider = propertyProvider;
     _environment      = environment;
 }
Beispiel #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;
 }
Beispiel #39
0
 public CustomBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string command)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
     _command = command;
 }
Beispiel #40
0
 public BasicConsoleBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
     : base(environment, settings, propertyProvider, sourcePath, projectPath)
 {
 }
Beispiel #41
0
 protected GeneratorSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
 }
Beispiel #42
0
 public NodeSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath)
     : base(environment, settings, propertyProvider, repositoryPath, projectPath, "--node")
 {
 }
Beispiel #43
0
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath, string nugetCachePath)
     : this(null, propertyProvider, workingDirectory, tempPath, nugetCachePath)
 {
 }
Beispiel #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);
 }
Beispiel #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";
     }
 }
Beispiel #47
0
 public SiteBuilderFactory(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _propertyProvider = propertyProvider;
     _environment = environment;
 }
Beispiel #48
0
 public GeneratorSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath)
     : base(environment, settings, propertyProvider, repositoryPath)
 {
 }
Beispiel #49
0
 public GoSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string repositoryPath, string projectPath)
     : base(environment, settings, propertyProvider, repositoryPath, projectPath, "--go")
 {
 }
Beispiel #50
0
 public CustomBuilder(string repositoryPath, string targetFile, IBuildPropertyProvider propertyProvider)
 {
     _repositoryPath = repositoryPath;
     _targetFile = targetFile;
     _propertyProvider = propertyProvider;
 }
Beispiel #51
0
 public SiteBuilderFactory(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _settings = settings;
     _propertyProvider = propertyProvider;
     _environment = environment;
 }
Beispiel #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);
 }
Beispiel #53
0
 public SiteBuilderFactory(IBuildPropertyProvider propertyProvider, IEnvironment environment)
 {
     _propertyProvider = propertyProvider;
     _environment      = environment;
 }
 public SolutionBasedSiteBuilder(IBuildPropertyProvider propertyProvider, string repositoryPath, string tempPath, string nugetCachePath, string solutionPath)
     : base(propertyProvider, repositoryPath, tempPath, nugetCachePath)
 {
     SolutionPath = solutionPath;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #57
0
 public WebSiteBuilder(IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
     : base(propertyProvider, sourcePath, tempPath, solutionPath)
 {
     _projectPath = projectPath;
 }
 public CustomGeneratorCommandSiteBuilder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string scriptGeneratorArgs)
     : base(environment, settings, propertyProvider, sourcePath)
 {
     _scriptGeneratorArgs = scriptGeneratorArgs;
 }
Beispiel #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);
        }
 public MsBuildSiteBuilder(IBuildPropertyProvider propertyProvider, string workingDirectory, string tempPath)
     : this(null, propertyProvider, workingDirectory, tempPath)
 {
 }