Image
This article will summarize the development of Add-Ins for Outlook.  Use the basic template using Yeoman and Yeoman Generator. Development environment OS: Windows 11 .Net version: 8.0 Development tool: Visual Studio Code Node.js version: 18.20.4 Yeoman version: 5.0.0 Development language: React, Typescript

[NU1100] Unable to resolve 'Swashbuckle.AspNetCore.Swagger (>= 6.*.*)' for 'net8.0'

■ Issue

In my case, when I update the OS from Windows 10 to 11 and create or build a project, the error message below appears.

Unable to resolve 'Swashbuckle.AspNetCore.Swagger (>= 6.4.0)' for 'net8.0'

   Reinstalling the .Net 8.0 sdk did not solve the problem, but after Googling, I found that the problem was caused by not properly recognizing the nuget.org information included in the nuget.config file.


■ Solution

1) First, run the command below in the project folder, and if the problem is not resolved, proceed to 2).

\> dotnet nuget locals all --clear

2) Delete the NuGet.config file that exists in the folder below and rerun it.
 C:\Users\{User}\AppData\Roaming\NuGet


3) Run the command below

\> dotnet restore

 


Comments

Popular posts from this blog

Setting up Windows Powershell with Oh-My-Posh

[NETSDK1136] the target platform must be set to windows