Skip to content

Fix build errors due to merge of PR #16991#17176

Merged
nul800sebastiaan merged 1 commit intocontribfrom
chore/fix-warn-as-erros-problems-preventing-build
Oct 2, 2024
Merged

Fix build errors due to merge of PR #16991#17176
nul800sebastiaan merged 1 commit intocontribfrom
chore/fix-warn-as-erros-problems-preventing-build

Conversation

@nul800sebastiaan
Copy link
Copy Markdown
Member

Prerequisites

  • I have added steps to test this contribution in the description below

Description

Makes the project build and fixes newly introduced errors that are no longer treated as warnings any more.

Note: LocalFileSystemTemporaryFileRepository had a ArgumentNullException.ThrowIfNull(nameof(model)); at the start which is treated as error now, so it's been removed.

Note2: IUmbracoContext had a commented out ForcedPreview method in it, the comments above it were treated as an error as there were no methods. As per usual, I completely removed commented out code (that's what Git is for 😅)

…ts.csproj and Umbraco.Core.csproj

LocalFileSystemTemporaryFileRepository: Don't pass null to a method that doesn't accept nullable argument - https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2264
Fix remaining warning marked as error
@nul800sebastiaan nul800sebastiaan merged commit 4090829 into contrib Oct 2, 2024
@nul800sebastiaan nul800sebastiaan deleted the chore/fix-warn-as-erros-problems-preventing-build branch October 2, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant