Skip to content

Commit

Permalink
Merge pull request #23 from csu-chhs/remove-dependency-on-razor-library
Browse files Browse the repository at this point in the history
Remove dependency on razor library
  • Loading branch information
dstegelman authored Dec 5, 2024
2 parents 2718866 + 4e29695 commit 14026e5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
10 changes: 0 additions & 10 deletions CsuChhs.Blazor/Components/Forms/InputSelectEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,9 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Components.Rendering;
using Microsoft.AspNetCore.Razor.TagHelpers;

namespace CsuChhs.Blazor.Components.Forms
{
// You may need to install the Microsoft.AspNetCore.Razor.Runtime package into your project
[HtmlTargetElement("tag-name")]
public class InputSelectEnum : TagHelper
{
public override void Process(TagHelperContext context, TagHelperOutput output)
{

}
}

// Code for this found here: https://www.meziantou.net/creating-a-inputselect-component-for-enumerations-in-blazor.htm

Expand Down
11 changes: 0 additions & 11 deletions CsuChhs.Blazor/Components/Forms/InputSelectEnumOptionGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,9 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Components.Rendering;
using Microsoft.AspNetCore.Razor.TagHelpers;

namespace CsuChhs.Blazor.Components.Forms
{
// You may need to install the Microsoft.AspNetCore.Razor.Runtime package into your project
[HtmlTargetElement("tag-name")]
public class InputSelectEnumOptionGroup : TagHelper
{
public override void Process(TagHelperContext context, TagHelperOutput output)
{

}
}

// Code for this found here: https://www.meziantou.net/creating-a-inputselect-component-for-enumerations-in-blazor.htm

// Inherit from InputBase so the hard work is already implemented 😊
Expand Down
4 changes: 1 addition & 3 deletions CsuChhs.Blazor/CsuChhs.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>CHHS Application Development Team</Authors>
<Version>1.0.10</Version>
<Version>1.0.11</Version>
<PackageProjectUrl>https://github.com/csu-chhs/CsuChhs.Blazor</PackageProjectUrl>
<Company>College of Health and Human Sciences</Company>
<PackageId>CsuChhs.Blazor</PackageId>
Expand All @@ -27,8 +27,6 @@
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.*" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.*" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="8.*" />
<PackageReference Include="Microsoft.AspNetCore.Razor" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Runtime" Version="2.2.0" />
<None Include="../README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

Expand Down

0 comments on commit 14026e5

Please sign in to comment.