All reference is yellow triangle
Hello, i'm new to C#, when i'm loading the project, all my reference cannot be loaded, Even tho in ../packages/... i have all the library, other PC i can load the project normally but this PC cannot, how to fix it?

18 Replies
Properties:

have you tried to build the project yet? or at least run a nuget restore?
(building the project will implicitly run a nuget restore)
or, actually, is this project targeting Framework 4.x? I'd like to see 1) the TargetFramework listed in your csproj, and 2) what Framework stuff you have installed in the Visual Studio Installer. You could be missing an SDK or something like that.
also if this csproj hasn't been converted to the new "sdk-style" yet I bet that would take care of any project reference issues.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
Sorry for the late response, yes i did, and the error still same
It's 4.7.1, and i did installed it in VS Installer
https://paste.mod.gg/mzrryangdser/0
Here is mine csproj file
BlazeBin - mzrryangdser
A tool for sharing your source code with the world!
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
This is what i have installed

Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Maintaining already running system, so i cannot upgrade it
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
So i cannot building the system on new computer anymore? only mine old one?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
No, when i press restore nuget package it's only said that "All packages are already installed and there is nothing to restore."
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I would like to suggest you try updating the csproj format to the new sdk-style using https://learn.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-install. you can continue targeting net471, you don't need to move to net9 with this. but this should help take care of any stupid build issues that come from the old format.
I already do all the things, it's still "All packages are already installed and there is nothing to restore."
1. delete /vs
2. delete bin, obj in each project
3. open
4. restore nuget package

I'll try