Thanks very much, Sean!
We are still targeting .NET 8, for now. I installed .NET 10 for a different project.
Yes, I did add a global.json file today, after I encountered the issue:
{
"sdk": {
"version": "8.0.206",
"rollForward": "latestPatch"
}
}
I tested this by checking the dotnet --version before and after. Once I added the file, it properly returned 8.0.206.
Then I cleaned and rebuilt the project, but still had the same error.
**The target framework is explicitly listed as net8.0 in .Web, .Admin, and .Entities csproj files within this app.
Some other things I tried:
- Cleaned and rebuilt the project several times
- Closed and re-opened VS2022
- Deleted the
.vs file
- Cleared bin/obj and NuGet package cache
- Ran
npm install and npm run start on the .Admin project
- Cloned a fresh version of the repo
But, I'm still getting the error.
**Just to clarify, we had no build errors since we launched this project on production a few weeks ago and made no updates since. Production and QA are still working without issue.
Thanks so much for your help!
Here is my Admin .csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework Condition="'$(TargetFramework)' == ''">net8.0</TargetFramework>
<AdminOrgName>travelwisconsinmultisite</AdminOrgName>
</PropertyGroup>
<ItemGroup>
<AdminClientPath Include="Client\dist\**">
<ProjectName>web-admin</ProjectName>
</AdminClientPath>
</ItemGroup>
<ItemGroup>
<Compile Remove="Client\node_modules\**" />
<EmbeddedResource Remove="Client\node_modules\**" />
<None Remove="Client\node_modules\**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Configuration\RichTextEditor\CustomRichTextEditorConfiguration.json" />
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="kentico.xperience.admin" Version="30.12.1" />
</ItemGroup>
</Project>