示例#1
0
 public RestoreTask(
     IMSBuildService msBuildService,
     string projectFilePath)
     : base(msBuildService)
 {
     ProjectFilePath = projectFilePath;
 }
 public ProjectLoader(ILoggingService <MethodRunner> loggingService, IPathService pathService, IMSBuildService msbuildService,
                      IDirectoryService directoryService, IAssemblyLoadContextFactory assemblyLoadContextFactory)
 {
     _loggingService             = loggingService;
     _pathService                = pathService;
     _msBuildService             = msbuildService;
     _directoryService           = directoryService;
     _assemblyLoadContextFactory = assemblyLoadContextFactory;
 }
示例#3
0
        public PublishTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            string publishOutputPath)
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            _properties = new Dictionary <string, string>();
            _properties.Add("PublishDir", publishOutputPath);
        }
示例#4
0
        public PackTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            string packageOutputPath)
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            _properties = new Dictionary <string, string>();
            _properties.Add("PackageOutputPath", packageOutputPath);
        }
示例#5
0
        public BuildTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            string outputPath,
            string vsixOutputPath)
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            _properties = new Dictionary <string, string>();
            _properties.Add("OutputPath", outputPath);
            _properties.Add("VsixOutputPath", vsixOutputPath);
        }
示例#6
0
        public BuildTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            string outputPath,
            string vsixOutputPath) // vsixBuild triggers if the vsix value is set, causing IL2CPU.Debug.Symbols to target net48
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            _properties = new Dictionary <string, string>()
            {
                ["OutputPath"]     = outputPath,
                ["VsixOutputPath"] = vsixOutputPath
            };
        }
示例#7
0
        public BuildTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            string outputPath,
            string vsixOutputPath)
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            _properties = new Dictionary <string, string>()
            {
                ["OutputPath"]     = outputPath,
                ["VsixOutputPath"] = vsixOutputPath
            };
        }
示例#8
0
        public PackTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            string packageOutputPath,
            string packageVersionLocalBuildSuffix)
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            _properties = new Dictionary <string, string>
            {
                ["PackageOutputPath"] = packageOutputPath,
                ["PackageVersionLocalBuildSuffix"] = packageVersionLocalBuildSuffix
            };
        }
示例#9
0
        public CosmosBuildDefinition(
            IInnoSetupService innoSetupService,
            IMSBuildService msBuildService,
            ISetupInstance2 visualStudioInstance)
        {
            _innoSetupService     = innoSetupService;
            _msBuildService       = msBuildService;
            _visualStudioInstance = visualStudioInstance;

            _cosmosDir = Path.GetFullPath(Directory.GetCurrentDirectory());

            if (!Directory.Exists(Path.Combine(_cosmosDir, "source", "Cosmos.Build.Builder")))
            {
                _cosmosDir = Path.GetFullPath(Path.Combine(_cosmosDir, "..", "..", "..", "..", ".."));
            }
        }
示例#10
0
        public RestoreTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            bool vsixBuild = false)
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            if (vsixBuild)
            {
                _properties = new Dictionary <string, string>
                {
                    ["Net48"] = "True"
                };
            }
        }
示例#11
0
        public PackTask(
            IMSBuildService msBuildService,
            string projectFilePath,
            string packageOutputPath,
            string packageVersionLocalBuildSuffix,
            bool vsixBuild = false)
            : base(msBuildService)
        {
            ProjectFilePath = projectFilePath;

            _properties = new Dictionary <string, string>
            {
                ["PackageOutputPath"] = packageOutputPath,
                ["PackageVersionLocalBuildSuffix"] = packageVersionLocalBuildSuffix
            };

            if (vsixBuild)
            {
                _properties["Net48"] = "True";
            }
        }
示例#12
0
 protected MSBuildTargetBuildTaskBase(IMSBuildService msBuildService)
     : base(true, false)
 {
     _msBuildService = msBuildService;
 }