简体   繁体   中英

Impossible to fix references after cloning repository from Github C# Visual Studio

I forked and cloned a repository from github and each of the 7 projects have references missing. I restored packages for the solution and ran the Update-Packages -reinstall command in package manager console and still had 14 warnings about packages.

Package 'Validation 2.2.8' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.

Aswell as warnings not displaying but triangles displaying for clsa.analyzers.dll, I'm really confused as to what I have done wrong, can someone give me their step by step for restoring references after cloning a repository?

It loooks like that version v2.2.8 of the Validation package does not support .Net Standard 2.0. Looks like support was only added at v2.4.15. You could try updating to the latest version v2.4.18?

Presumably the original developer would have had the same issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM