TcNo-Acc-Switcher icon indicating copy to clipboard operation
TcNo-Acc-Switcher copied to clipboard

Cannot restore the vcpkg nuget

Open RAWXR opened this issue 3 years ago • 10 comments

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

RAWXR avatar Sep 01 '22 17:09 RAWXR

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

TCNOco avatar Sep 01 '22 17:09 TCNOco

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

RAWXR avatar Sep 01 '22 17:09 RAWXR

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

TCNOco avatar Sep 01 '22 17:09 TCNOco

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

RAWXR avatar Sep 01 '22 17:09 RAWXR

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 avatar Sep 01 '22 18:09 TCNOco

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.

TCNOco avatar Sep 01 '22 18:09 TCNOco

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

RAWXR avatar Sep 01 '22 18:09 RAWXR

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

TCNOco avatar Sep 01 '22 18:09 TCNOco

What vcpkg package is used in the source?

RAWXR avatar Sep 01 '22 18:09 RAWXR

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.

TCNOco avatar Sep 01 '22 18:09 TCNOco