Skip to content

Commit

Permalink
Merge pull request #2 from NikRimington/Net-8-support
Browse files Browse the repository at this point in the history
Update HCS.Meta.Robots.csproj
  • Loading branch information
NikRimington authored Apr 19, 2024
2 parents fa46d42 + 7607185 commit fab84d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup .NET
- name: Setup .NET 6
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

- name: Setup .NET 8
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x

- name: Build project
run: dotnet build src\HCS.Meta.Robots\HCS.Meta.Robots.csproj --configuration Release
Expand Down
15 changes: 10 additions & 5 deletions src/HCS.Meta.Robots/HCS.Meta.Robots.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<StaticWebAssetBasePath>App_Plugins</StaticWebAssetBasePath>
Expand All @@ -12,7 +12,7 @@
<PackageTags>umbraco;umbraco-marketplace</PackageTags>
<RootNamespace>HCS.Meta.Robots</RootNamespace>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<Authors>Nik Rimington</Authors>
<Copyright>$([System.DateTime]::UtcNow.ToString(`yyyy`)) © Nik Rimington</Copyright>
<PackageProjectUrl>https://github.com/NikRimington/HCS.Meta.Robots</PackageProjectUrl>
Expand All @@ -22,9 +22,14 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Umbraco.Cms.Web.Website" Version="10.0.0" />
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="10.0.0" />
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Umbraco.Cms.Web.Website" Version="10.*" />
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="10.*" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Umbraco.Cms.Web.Website" Version="13.*" />
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="13.*" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit fab84d3

Please sign in to comment.