Skip to content

Commit

Permalink
A few warning notifications resolved.
Browse files Browse the repository at this point in the history
  • Loading branch information
impworks committed Jan 14, 2024
1 parent 319c12a commit 0b570fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ListEnumFilterComponent: ViewComponent
public async Task<IViewComponentResult> InvokeAsync(ListRequestVM request, string propName)
{
if (request == null || propName == null)
throw new ArgumentNullException();
throw new ArgumentNullException(nameof(request), "Either request or propName must be specified!");

var prop = request.GetType().GetProperty(propName);
if (prop == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class PageTitleExtendedVM: PageTitleVM, IMapped
/// </summary>
public DateTimeOffset CreationDate { get; set; }

public void Configure(TypeAdapterConfig config)
public override void Configure(TypeAdapterConfig config)
{
config.NewConfig<Data.Models.Page, PageTitleExtendedVM>()
.Map(x => x.Id, x => x.Id)
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai/Areas/Front/ViewModels/Page/PageTitleVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class PageTitleVM: IMapped
/// </summary>
public PageType Type { get; set; }

public void Configure(TypeAdapterConfig config)
public virtual void Configure(TypeAdapterConfig config)
{
config.NewConfig<Data.Models.Page, PageTitleVM>()
.Map(x => x.Id, x => x.Id)
Expand Down
8 changes: 8 additions & 0 deletions src/Bonsai/Bonsai.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;1998;8524</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;1998;8524</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Remove="Data\Utils\Seed\Media\1.jpg" />
<None Remove="Data\Utils\Seed\Media\1.mp4" />
Expand Down

0 comments on commit 0b570fc

Please sign in to comment.