Skip to content

Commit

Permalink
- target framework is now .NET 5 to be able to use init only setters …
Browse files Browse the repository at this point in the history
…in `DropActionContext`
  • Loading branch information
ViRuSTriNiTy committed Mar 9, 2021
1 parent 8e505f3 commit 2ae6d77
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Plk.Blazor.DragDrop.Demo/Plk.Blazor.DragDrop.Demo.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<UserSecretsId>f648770a-26a2-462b-87a0-17835ea631cb</UserSecretsId>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Plk.Blazor.DragDrop.Test/Plk.Blazor.DragDrop.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
</PropertyGroup>

Expand Down
10 changes: 5 additions & 5 deletions Plk.Blazor.DragDrop/DropActions/DropActionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ namespace Plk.Blazor.DragDrop.DropActions
{
public class DropActionContext<TItem>
{
public Dropzone<TItem> Sender { get; set; }
public TItem ActiveItem { get; set; }
public IList<TItem> SourceItems { get; set; }
public IList<TItem> TargetItems { get; set; }
public int? TargetItemIndex { get; set; }
public Dropzone<TItem> Sender { get; init; }
public TItem ActiveItem { get; init; }
public IList<TItem> SourceItems { get; init; }
public IList<TItem> TargetItems { get; init; }
public int? TargetItemIndex { get; init; }
}
}
4 changes: 2 additions & 2 deletions Plk.Blazor.DragDrop/Plk.Blazor.DragDrop.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<Version>2.2.2</Version>
<PackageId>blazor-dragdrop</PackageId>
Expand Down

0 comments on commit 2ae6d77

Please sign in to comment.