Skip to content

Instantly share code, notes, and snippets.

View theorigin's full-sized avatar

Andy Robinson theorigin

View GitHub Profile
@nathonius
nathonius / Startup.cs
Last active May 15, 2020 14:32
UseWebpackDevMiddleware
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
if (Dependencies.DevOptions.UseWebpackDevMiddleware) // comes from appsettings
{
#pragma warning disable CS0618 // Type or member is obsolete
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
{
@mocella
mocella / azure-pipelines.yml
Created November 9, 2022 13:37
Azure Pipeline Step to Scan for .NET Dependency CVEs
- task: PowerShell@2
displayName: "NuGet packages vulnerabilities scan"
continueOnError: false
inputs:
filePath: '$(Build.SourcesDirectory)/nuget-vunerability-build-fail-report.ps1'
arguments: '''$(Build.SourcesDirectory)'' ''$(SolutionName)'''
pwsh: true