aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/PreprocessContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/PreprocessContext.cs')
-rw-r--r--src/WixToolset.Core/PreprocessContext.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/WixToolset.Core/PreprocessContext.cs b/src/WixToolset.Core/PreprocessContext.cs
new file mode 100644
index 00000000..c0acc31e
--- /dev/null
+++ b/src/WixToolset.Core/PreprocessContext.cs
@@ -0,0 +1,36 @@
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
3namespace WixToolset.Core
4{
5 using System;
6 using System.Collections.Generic;
7 using WixToolset.Data;
8 using WixToolset.Extensibility;
9
10 /// <summary>
11 /// The preprocessor core.
12 /// </summary>
13 internal class PreprocessContext : IPreprocessContext
14 {
15 internal PreprocessContext(IServiceProvider serviceProvider)
16 {
17 this.ServiceProvider = serviceProvider;
18 }
19
20 public IServiceProvider ServiceProvider { get; }
21
22 public Messaging Messaging { get; set; }
23
24 public IEnumerable<IPreprocessorExtension> Extensions { get; set; }
25
26 public Platform Platform { get; set; }
27
28 public IList<string> IncludeSearchPaths { get; set; }
29
30 public string SourceFile { get; set; }
31
32 public IDictionary<string, string> Variables { get; set; }
33
34 public SourceLineNumber CurrentSourceLineNumber { get; set; }
35 }
36}