46 instantiations of BannedApi
Microsoft.Build.TaskAuthoring.Analyzer (46)
BannedApiDefinitions.cs (46)
51
new
BannedApi
("M:System.Environment.Exit(System.Int32)",
53
new
BannedApi
("M:System.Environment.FailFast(System.String)",
55
new
BannedApi
("M:System.Environment.FailFast(System.String,System.Exception)",
57
new
BannedApi
("M:System.Environment.FailFast(System.String,System.Exception,System.String)",
61
new
BannedApi
("M:System.Diagnostics.Process.Kill",
63
new
BannedApi
("M:System.Diagnostics.Process.Kill(System.Boolean)",
67
new
BannedApi
("M:System.Threading.ThreadPool.SetMinThreads(System.Int32,System.Int32)",
69
new
BannedApi
("M:System.Threading.ThreadPool.SetMaxThreads(System.Int32,System.Int32)",
73
new
BannedApi
("P:System.Globalization.CultureInfo.DefaultThreadCurrentCulture",
75
new
BannedApi
("P:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture",
79
new
BannedApi
("M:System.IO.Directory.SetCurrentDirectory(System.String)",
87
new
BannedApi
("P:System.Environment.CurrentDirectory",
91
new
BannedApi
("M:System.IO.Directory.GetCurrentDirectory",
95
new
BannedApi
("M:System.Environment.GetEnvironmentVariable(System.String)",
97
new
BannedApi
("M:System.Environment.GetEnvironmentVariable(System.String,System.EnvironmentVariableTarget)",
99
new
BannedApi
("M:System.Environment.GetEnvironmentVariables",
101
new
BannedApi
("M:System.Environment.SetEnvironmentVariable(System.String,System.String)",
103
new
BannedApi
("M:System.Environment.SetEnvironmentVariable(System.String,System.String,System.EnvironmentVariableTarget)",
105
new
BannedApi
("M:System.Environment.ExpandEnvironmentVariables(System.String)",
109
new
BannedApi
("M:System.Environment.GetFolderPath(System.Environment.SpecialFolder)",
111
new
BannedApi
("M:System.Environment.GetFolderPath(System.Environment.SpecialFolder,System.Environment.SpecialFolderOption)",
115
new
BannedApi
("M:System.IO.Path.GetFullPath(System.String)",
117
new
BannedApi
("M:System.IO.Path.GetFullPath(System.String,System.String)",
121
new
BannedApi
("M:System.IO.Path.GetTempPath",
123
new
BannedApi
("M:System.IO.Path.GetTempFileName",
127
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String)",
129
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String,System.String)",
131
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String,System.Collections.Generic.IEnumerable{System.String})",
133
new
BannedApi
("M:System.Diagnostics.Process.Start(System.Diagnostics.ProcessStartInfo)",
135
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String,System.String,System.String,System.Security.SecureString,System.String)",
139
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor",
141
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor(System.String)",
143
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor(System.String,System.String)",
145
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor(System.String,System.Collections.Generic.IEnumerable{System.String})",
153
new
BannedApi
("M:System.Reflection.Assembly.LoadFrom(System.String)",
155
new
BannedApi
("M:System.Reflection.Assembly.LoadFile(System.String)",
157
new
BannedApi
("M:System.Reflection.Assembly.Load(System.String)",
159
new
BannedApi
("M:System.Reflection.Assembly.Load(System.Byte[])",
161
new
BannedApi
("M:System.Reflection.Assembly.Load(System.Byte[],System.Byte[])",
163
new
BannedApi
("M:System.Reflection.Assembly.LoadWithPartialName(System.String)",
165
new
BannedApi
("M:System.Activator.CreateInstanceFrom(System.String,System.String)",
167
new
BannedApi
("M:System.Activator.CreateInstance(System.String,System.String)",
171
new
BannedApi
("M:System.AppDomain.Load(System.String)",
173
new
BannedApi
("M:System.AppDomain.Load(System.Byte[])",
175
new
BannedApi
("M:System.AppDomain.CreateInstanceFrom(System.String,System.String)",
177
new
BannedApi
("M:System.AppDomain.CreateInstance(System.String,System.String)",
4 references to BannedApi
Microsoft.Build.TaskAuthoring.Analyzer (4)
BannedApiDefinitions.cs (3)
38
private static readonly ImmutableArray<
BannedApi
> s_all = CreateAll();
40
public static ImmutableArray<
BannedApi
> GetAll() => s_all;
42
private static ImmutableArray<
BannedApi
> CreateAll()
SharedAnalyzerHelpers.cs (1)
285
foreach (
var
def in definitions)