TCNOco / TcNo-Acc-Switcher

A Super-fast account switcher for Steam, Battle.net, Epic Games, Origin, Riot, Ubisoft and many others!
GNU General Public License v3.0
1.74k stars 121 forks source link

Cannot restore the vcpkg nuget #253

Closed XECTRA-RAW closed 1 year ago

XECTRA-RAW commented 2 years ago

Please help me with installing this issue as I've tried but not working!

TCNOco commented 2 years ago

I have never heard of this error. Are you building the project from source?

XECTRA-RAW commented 2 years ago

Yes! The nuget package in the source won't restore says it missing from sdk folder

TCNOco commented 2 years ago

The Installed needs VCPKG installed, as it uses some C++ packages which you can easily build using that tool.

XECTRA-RAW commented 2 years ago

I have it installed but still saying it's missing!

TCNOco commented 2 years ago

You will need to relink it with the C++ project. I'm looking for the command, but I don't remember it. There is vcpkg integrate, but there's a command to integrate with project files as well as far as I remember

TCNOco commented 2 years ago

In TcNo-Acc-Switcher\Installer\Installer.vcxproj, there are the following that you can change. I'm not sure how to go about improving this for general use:

The lines with Link and vcpkg paths: Ln 88 Ln 133

Both being paths to the static libcurl library. Built with x64-windows-static as far as I remember.

I don't think these need to be changed at all. Ln 3 Ln 137-139 Ln 144-145

There must be an easier way.

XECTRA-RAW commented 2 years ago

Would you be able to add me on discord and send the folder over then I can just drag to my dev folder please! As i can't of installed it completely as I don't have the installed folder in my vcpkg

TCNOco commented 2 years ago

Unfortunately not, but the following command will build libcurl for you to include: ./vcpkg install curl:x64-windows-static

I would then say just edit the project file to point as follows:

C:\dev\vcpkg\installed\x64-windows-static\debug\lib\libcurl-d.lib
==> <where vcpkg is>\installed\x64-windows-static\debug\lib\libcurl-d.lib

C:\dev\vcpkg\installed\x64-windows-static\lib\libcurl.lib
==> <where vcpkg is>\installed\x64-windows-static\lib\libcurl.lib
XECTRA-RAW commented 2 years ago

What vcpkg package is used in the source?

TCNOco commented 2 years ago

https://vcpkg.io/en/index.html

As far as I remember, you only need curl to be compiled. This is for building the installer. Nothing else requires this package as far as I understand. You can probably build and run the project without ever needing to compile the installer.