Reference Error While rebuild Project

1 Answer 10 Views
Installer and VS Extensions
Rahul
Top achievements
Rank 1
Rahul asked on 09 Feb 2026, 12:27 PM

Unable to find package Telerik.UI.for.AspNet.Core with version (>= 2021.3.1109)
  - Found 1 version(s) in nuget.org [ Nearest version: 2016.3.914 ]
  - Found 0 version(s) in Microsoft Visual Studio Offline Packages

 

 

Duplicate 'Content' items were included. The .NET SDK includes 'Content' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultContentItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'nlog.config'

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 12 Feb 2026, 07:07 AM

Hi Rahul,

Thank you for the details provided.

The error indicates that your build cannot locate the correct version of the Telerik.UI.for.AspNet.Core package. This usually happens because the environment does not have access to your custom NuGet source or the NuGet.Config file is missing or not properly configured.

To resolve this:

  • Ensure a NuGet.Config file exists in your solution folder and points to your local Telerik package source.
  • During Docker build, copy NuGet.Config into the Docker image before running dotnet restore.(if using Docker)
  • Run the restore command with the config file:
    dotnet restore --configfile ./NuGet.Config
    
  • Verify that the NuGet.Config references the correct path and version for your package.

For the duplicate 'Content' items warning:

  • Remove explicit <Content Include="nlog.config" /> entries from your project file, or
  • Add <EnableDefaultContentItems>false</EnableDefaultContentItems> to your project file to manage content items manually.

I hope this information helps.


    Kind Regards,
    Anton Mironov
    Progress Telerik

    Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

    Tags
    Installer and VS Extensions
    Asked by
    Rahul
    Top achievements
    Rank 1
    Answers by
    Anton Mironov
    Telerik team
    Share this question
    or