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