-
-
Notifications
You must be signed in to change notification settings - Fork 233
Expand file tree
/
Copy pathBuildProperties.cs
More file actions
26 lines (23 loc) · 866 Bytes
/
BuildProperties.cs
File metadata and controls
26 lines (23 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Sentry.Internal.Extensions;
namespace Sentry.CompilerServices;
/// <summary>
/// This class is not meant for external usage
/// </summary>
public static class BuildProperties
{
/// <summary>
/// The Build Variables generated from you csproj file and initialized by the Sentry Source Generated Module Initializer
/// </summary>
internal static IReadOnlyDictionary<string, string>? Values { get; set; }
/// <summary>
/// This is called by a Sentry Source-Generator module initializers to help us determine things like
/// Is your app AOT
/// Has your application been trimmed
/// What build configuration is being used
/// </summary>
/// <param name="properties"></param>
public static void Initialize(Dictionary<string, string> properties)
{
Values ??= properties.AsReadOnly();
}
}