Skip to content

Commit

Permalink
Mitigate all warnings in the build
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkStega committed Jan 26, 2024
1 parent 848bbbe commit 1b81478
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/GithubActionsRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ jobs:
- name: Use dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
include-prerelease: true
dotnet-version: '8.x'

- name: Build HttpSecurity.AspNet 🔧
run: dotnet build ${{env.projectCSFB}} --configuration ${{env.buildConfiguration}} -p:Version=${{env.version}}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/GithubActionsWIP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ jobs:
- name: Use dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
include-prerelease: true
dotnet-version: '8.x'

- name: Build HttpSecurity.AspNet 🔧
run: dotnet build ${{env.projectCSFB}} --configuration ${{env.buildConfiguration}} --version-suffix ${{env.ciSuffix}}
Expand Down
2 changes: 1 addition & 1 deletion HttpSecurity.AspNet/Services/HttpSecurityOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed class HttpSecurityOptions
/// <summary>
/// The built content security policy.
/// </summary>
internal ContentSecurityPolicyOptions ContentSecurityPolicy { get; set; } = null;
internal ContentSecurityPolicyOptions? ContentSecurityPolicy { get; set; } = null;


/// <summary>
Expand Down
10 changes: 5 additions & 5 deletions HttpSecurity.Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
}

// Added for debugging purposes - do not include this in your project
//app.Use(async (context, next) =>
//{
// // Call the next delegate/middleware in the pipeline.
// await next(context);
//});
app.Use(async (context, next) =>
{
// Call the next delegate/middleware in the pipeline.
await next(context);
});

app.UseHttpsRedirection();

Expand Down
2 changes: 2 additions & 0 deletions SourceGenerator/SourceGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>11</LangVersion>

<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>

<!-- Uncomment the line below to debug the source generator -->

<!--<DefineConstants>GENERATOR_DEBUG</DefineConstants>-->
Expand Down

0 comments on commit 1b81478

Please sign in to comment.