Replies: 4 comments
-
So I found a workaround by adding:
into arg_OPTIONS:
and I am wondering if it shouldn't be enabled by default? |
Beta Was this translation helpful? Give feedback.
-
Hi @lukcz Thanks for posting this issue.
For your cases, you can use above workaround to solve your problems or download the NuGet package to your local. If the port has been added to vcpkg, you can also use it. |
Beta Was this translation helpful? Give feedback.
-
Hi,
In fact this plugin is just NuGet dependency which can be added into the project. Having prior defined additional NuGet package source (pointing to location where command "vcpkg integrate project" has written its output) this plugin could be easily restorred when project compilation starts. This approach was described here (in section "Linking NuGet file"): The error I mentioned at the beginning shows up when in following scenario. I have two projects: Project A (uses vcpkg in manifest mode, defined vcpkg.json) Project A, requires Project B as its dependency (declared in Project A's vcpkg.json). When I am compiling Project A, then vcpkg tries to resolve dependency to Project B, however it fails. Project B in its portile.cmake is calling vcpkg_install_msbuild.cmake(), but as I already mentioned vcpkg_install_msbuild scirpt is missing those two parameters to restore NuGet dependency:
Then NuGet Dependency is not restored for project B, and whole compilation fails. |
Beta Was this translation helpful? Give feedback.
-
@strega-nil Do you have any ideas about this issue? |
Beta Was this translation helpful? Give feedback.
-
I am preparing a custom port for my own library, but it fails during installation. In the log file, I can see that it is missing NuGet packages which it has dependencies to. How I can force them to be restored during installation, when calling:
??
Error message:
In script vcpkg_install_msbuild.cmake I can see that build is called with "/t:Rebuild". In order to make it work it would have to be called with "/t:Restore;Rebuild" parameter, right?
After changing it I can see that build is being called with:
instead of (semicolon is being removed somewhere along the way in vcpkg_execute_required_process.cmake)
Any ideas, how it can be solved?
Beta Was this translation helpful? Give feedback.
All reactions