mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Remove dependency to ASP.NET in the System.Web.cs stub file.
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
semmle-extractor-options: /nostdlib /noconfig
|
||||
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
|
||||
semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj
|
||||
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
|
||||
semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs
|
||||
semmle-extractor-options: /r:System.Collections.Specialized.dll /r:System.Xml.ReaderWriter.dll /r:System.Private.Xml.dll /r:System.Runtime.Extensions.dll
|
||||
|
||||
14
csharp/ql/test/resources/stubs/System.Web.Http.cs
Normal file
14
csharp/ql/test/resources/stubs/System.Web.Http.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace System.Web.Http
|
||||
{
|
||||
public class ApiController
|
||||
{
|
||||
public Microsoft.AspNetCore.Http.HttpContext Context => null;
|
||||
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect(Uri location) => null;
|
||||
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect(string location) => null;
|
||||
public virtual ResponseMessageResult ResponseMessage(System.Net.Http.HttpResponseMessage response) => null;
|
||||
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => null;
|
||||
public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; set; }
|
||||
}
|
||||
|
||||
public class ResponseMessageResult { }
|
||||
}
|
||||
@@ -60,21 +60,6 @@ namespace System.Web
|
||||
}
|
||||
}
|
||||
|
||||
namespace System.Web.Http
|
||||
{
|
||||
public class ApiController
|
||||
{
|
||||
public Microsoft.AspNetCore.Http.HttpContext Context => null;
|
||||
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect(Uri location) => null;
|
||||
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect(string location) => null;
|
||||
public virtual ResponseMessageResult ResponseMessage(System.Net.Http.HttpResponseMessage response) => null;
|
||||
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => null;
|
||||
public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; set; }
|
||||
}
|
||||
|
||||
public class ResponseMessageResult { }
|
||||
}
|
||||
|
||||
namespace System.Web.Mvc
|
||||
{
|
||||
public class Controller
|
||||
|
||||
Reference in New Issue
Block a user