main
cs 38 lines 1.18 KB
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace WixToolset.Core
4 {
5 using System;
6 using System.Collections.Generic;
7 using System.Threading;
8 using System.Xml.Linq;
9 using WixToolset.Data;
10 using WixToolset.Extensibility;
11 using WixToolset.Extensibility.Data;
12
13 internal class CompileContext : ICompileContext
14 {
15 internal CompileContext(IServiceProvider serviceProvider)
16 {
17 this.ServiceProvider = serviceProvider;
18 }
19
20 public IServiceProvider ServiceProvider { get; }
21
22 public string CompilationId { get; set; }
23
24 public IReadOnlyCollection<ICompilerExtension> Extensions { get; set; }
25
26 public string IntermediateFolder { get; set; }
27
28 public string OutputPath { get; set; }
29
30 public Platform Platform { get; set; }
31
32 public bool IsCurrentPlatform64Bit => this.Platform == Platform.ARM64 || this.Platform == Platform.X64;
33
34 public XDocument Source { get; set; }
35
36 public CancellationToken CancellationToken { get; set; }
37 }
38 }