48 instantiations of BannedApi
Microsoft.Build.TaskAuthoring.Analyzer (48)
BannedApiDefinitions.cs (48)
53
new
BannedApi
("M:System.Environment.Exit(System.Int32)",
55
new
BannedApi
("M:System.Environment.FailFast(System.String)",
57
new
BannedApi
("M:System.Environment.FailFast(System.String,System.Exception)",
59
new
BannedApi
("M:System.Environment.FailFast(System.String,System.Exception,System.String)",
63
new
BannedApi
("M:System.Diagnostics.Process.Kill",
65
new
BannedApi
("M:System.Diagnostics.Process.Kill(System.Boolean)",
69
new
BannedApi
("M:System.Threading.ThreadPool.SetMinThreads(System.Int32,System.Int32)",
71
new
BannedApi
("M:System.Threading.ThreadPool.SetMaxThreads(System.Int32,System.Int32)",
75
new
BannedApi
("P:System.Globalization.CultureInfo.DefaultThreadCurrentCulture",
77
new
BannedApi
("P:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture",
81
new
BannedApi
("M:System.IO.Directory.SetCurrentDirectory(System.String)",
89
new
BannedApi
("P:System.Environment.CurrentDirectory",
93
new
BannedApi
("M:System.IO.Directory.GetCurrentDirectory",
97
new
BannedApi
("M:System.Environment.GetEnvironmentVariable(System.String)",
99
new
BannedApi
("M:System.Environment.GetEnvironmentVariable(System.String,System.EnvironmentVariableTarget)",
101
new
BannedApi
("M:System.Environment.GetEnvironmentVariables",
103
new
BannedApi
("M:System.Environment.SetEnvironmentVariable(System.String,System.String)",
105
new
BannedApi
("M:System.Environment.SetEnvironmentVariable(System.String,System.String,System.EnvironmentVariableTarget)",
107
new
BannedApi
("M:System.Environment.ExpandEnvironmentVariables(System.String)",
111
new
BannedApi
("M:System.Environment.GetFolderPath(System.Environment.SpecialFolder)",
113
new
BannedApi
("M:System.Environment.GetFolderPath(System.Environment.SpecialFolder,System.Environment.SpecialFolderOption)",
117
new
BannedApi
("M:System.IO.Path.GetFullPath(System.String)",
119
new
BannedApi
("M:System.IO.Path.GetFullPath(System.String,System.String)",
123
new
BannedApi
("M:System.IO.Path.GetTempPath",
127
new
BannedApi
("M:System.IO.Path.GetTempFileName",
129
new
BannedApi
("M:System.IO.Directory.CreateTempSubdirectory(System.String)",
131
new
BannedApi
("M:System.CodeDom.Compiler.TempFileCollection.#ctor",
135
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String)",
137
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String,System.String)",
139
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String,System.Collections.Generic.IEnumerable{System.String})",
141
new
BannedApi
("M:System.Diagnostics.Process.Start(System.Diagnostics.ProcessStartInfo)",
143
new
BannedApi
("M:System.Diagnostics.Process.Start(System.String,System.String,System.String,System.Security.SecureString,System.String)",
147
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor",
149
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor(System.String)",
151
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor(System.String,System.String)",
153
new
BannedApi
("M:System.Diagnostics.ProcessStartInfo.#ctor(System.String,System.Collections.Generic.IEnumerable{System.String})",
161
new
BannedApi
("M:System.Reflection.Assembly.LoadFrom(System.String)",
163
new
BannedApi
("M:System.Reflection.Assembly.LoadFile(System.String)",
165
new
BannedApi
("M:System.Reflection.Assembly.Load(System.String)",
167
new
BannedApi
("M:System.Reflection.Assembly.Load(System.Byte[])",
169
new
BannedApi
("M:System.Reflection.Assembly.Load(System.Byte[],System.Byte[])",
171
new
BannedApi
("M:System.Reflection.Assembly.LoadWithPartialName(System.String)",
173
new
BannedApi
("M:System.Activator.CreateInstanceFrom(System.String,System.String)",
175
new
BannedApi
("M:System.Activator.CreateInstance(System.String,System.String)",
179
new
BannedApi
("M:System.AppDomain.Load(System.String)",
181
new
BannedApi
("M:System.AppDomain.Load(System.Byte[])",
183
new
BannedApi
("M:System.AppDomain.CreateInstanceFrom(System.String,System.String)",
185
new
BannedApi
("M:System.AppDomain.CreateInstance(System.String,System.String)",
4 references to BannedApi
Microsoft.Build.TaskAuthoring.Analyzer (4)
BannedApiDefinitions.cs (3)
40
private static readonly ImmutableArray<
BannedApi
> s_all = CreateAll();
42
public static ImmutableArray<
BannedApi
> GetAll() => s_all;
44
private static ImmutableArray<
BannedApi
> CreateAll()
SharedAnalyzerHelpers.cs (1)
483
foreach (
var
def in definitions)