Missing deps on building from source #23602

Closed
opened 2026-01-31 08:46:53 +00:00 by claunia · 6 comments
Owner

Originally created by @michalshy on GitHub (Sep 10, 2025).

I tried building app from source, yet I cannot done it with following build process from attached guide.
The steps for me are:

  1. Cloning repo
  2. Init submodules
  3. Running winget configure .config\configuration.winget
  4. When I am opening solution I get
C:\Dev\Projects\terminal\src\host\exe\Host.EXE.vcxproj : error  : The imported project "C:\Dev\Projects\terminal\dep\vcpkg\scripts\buildsystems\msbuild\vcpkg.props" was not found. Confirm that the expression in the Import declaration "$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.props", which evaluated to "C:\Dev\Projects\terminal\\dep\vcpkg/scripts/buildsystems/msbuild/vcpkg.props", is correct, and that the file exists on disk.  C:\Dev\Projects\terminal\src\common.build.pre.props


C:\Dev\Projects\terminal\src\host\exe\Host.EXE.vcxproj : error  : The imported project "C:\Dev\Projects\terminal\dep\vcpkg\scripts\buildsystems\msbuild\vcpkg.props" was not found. Confirm that the expression in the Import declaration "$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.props", which evaluated to "C:\Dev\Projects\terminal\\dep\vcpkg/scripts/buildsystems/msbuild/vcpkg.props", is correct, and that the file exists on disk.  C:\Dev\Projects\terminal\src\common.build.pre.props


C:\Dev\Projects\terminal\src\host\ft_fuzzer\Host.FuzzWrapper.vcxproj : error  : The imported project "C:\Dev\Projects\terminal\dep\vcpkg\scripts\buildsystems\msbuild\vcpkg.props" was not found. Confirm that the expression in the Import declaration "$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.props", which evaluated to "C:\Dev\Projects\terminal\\dep\vcpkg/scripts/buildsystems/msbuild/vcpkg.props", is correct, and that the file exists on disk.  C:\Dev\Projects\terminal\src\common.build.pre.props


This is only snippet but afaik all of the projects are not found. It is probably my bad since I am not aware of some action. Also I am running all of the software required to run this app.
I installed packages manually and tried to build via cmd and pwsh and those are also popping errors.

C:\Dev\Projects\terminal>.\tools\razzle.cmd
Setting up dev environment...
Invalid input 'OpenConsole.slnx'. The file type was not recognized.
\Microsoft was unexpected at this time.

and

Dev environment variables set
Wersja programu MSBuild 17.14.18+a338add32 dla .NET Framework
MSBUILD : error MSB1009: plik projektu nie istnieje.
Przełącznik: C:\Dev\Projects\terminal\OpenConsole.sln

Any idea what I am doing wrong, what could I include and why following building guide does not work for me?

Originally created by @michalshy on GitHub (Sep 10, 2025). I tried building app from source, yet I cannot done it with following build process from attached guide. The steps for me are: 1. Cloning repo 2. Init submodules 3. Running winget configure .config\configuration.winget 4. When I am opening solution I get ``` C:\Dev\Projects\terminal\src\host\exe\Host.EXE.vcxproj : error : The imported project "C:\Dev\Projects\terminal\dep\vcpkg\scripts\buildsystems\msbuild\vcpkg.props" was not found. Confirm that the expression in the Import declaration "$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.props", which evaluated to "C:\Dev\Projects\terminal\\dep\vcpkg/scripts/buildsystems/msbuild/vcpkg.props", is correct, and that the file exists on disk. C:\Dev\Projects\terminal\src\common.build.pre.props C:\Dev\Projects\terminal\src\host\exe\Host.EXE.vcxproj : error : The imported project "C:\Dev\Projects\terminal\dep\vcpkg\scripts\buildsystems\msbuild\vcpkg.props" was not found. Confirm that the expression in the Import declaration "$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.props", which evaluated to "C:\Dev\Projects\terminal\\dep\vcpkg/scripts/buildsystems/msbuild/vcpkg.props", is correct, and that the file exists on disk. C:\Dev\Projects\terminal\src\common.build.pre.props C:\Dev\Projects\terminal\src\host\ft_fuzzer\Host.FuzzWrapper.vcxproj : error : The imported project "C:\Dev\Projects\terminal\dep\vcpkg\scripts\buildsystems\msbuild\vcpkg.props" was not found. Confirm that the expression in the Import declaration "$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.props", which evaluated to "C:\Dev\Projects\terminal\\dep\vcpkg/scripts/buildsystems/msbuild/vcpkg.props", is correct, and that the file exists on disk. C:\Dev\Projects\terminal\src\common.build.pre.props ``` This is only snippet but afaik all of the projects are not found. It is probably my bad since I am not aware of some action. Also I am running all of the software required to run this app. I installed packages manually and tried to build via cmd and pwsh and those are also popping errors. ``` C:\Dev\Projects\terminal>.\tools\razzle.cmd Setting up dev environment... Invalid input 'OpenConsole.slnx'. The file type was not recognized. \Microsoft was unexpected at this time. ``` and ``` Dev environment variables set Wersja programu MSBuild 17.14.18+a338add32 dla .NET Framework MSBUILD : error MSB1009: plik projektu nie istnieje. Przełącznik: C:\Dev\Projects\terminal\OpenConsole.sln ``` Any idea what I am doing wrong, what could I include and why following building guide does not work for me?
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 08:46:54 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 10, 2025):

Interesting...

What specific version of Visual Studio are you using?

Can you go to the optional components for VS and install vcpkg?

Image
@DHowett commented on GitHub (Sep 10, 2025): Interesting... What specific version of Visual Studio are you using? Can you go to the optional components for VS and install vcpkg? <img width="300" height="96" alt="Image" src="https://github.com/user-attachments/assets/aff817e7-9e4f-4759-aae5-6b3128a76b2e" />
Author
Owner

@michalshy commented on GitHub (Sep 10, 2025):

Visual Studio Community 2022 - 17.14.12 and i havbe vcpkg installed

@michalshy commented on GitHub (Sep 10, 2025): Visual Studio Community 2022 - 17.14.12 and i havbe vcpkg installed
Author
Owner

@DHowett commented on GitHub (Sep 10, 2025):

That's really unexpected! Would you mind sharing the output of... (powershell)

gci "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg"
gci "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg" *.exe -rec

I can't explain the razzle issues; I just think the scripts probably broke slightly in the migration to the new VS solution format.

The vcpkg thing, though, is weird. Terminal tries to use the version from VCPKG_ROOT (environment variable) first, then the one that came with VS (global), and only falls back to dep/vcpkg (the local copy) if both of those fail.

@DHowett commented on GitHub (Sep 10, 2025): That's really unexpected! Would you mind sharing the output of... (powershell) ```powershell gci "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg" gci "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg" *.exe -rec ``` I can't explain the `razzle` issues; I just think the scripts probably broke slightly in the migration to the new VS solution format. The vcpkg thing, though, is weird. Terminal tries to use the version from `VCPKG_ROOT` (environment variable) first, then the one that came with VS (global), and only falls back to `dep/vcpkg` (the local copy) if both of those fail.
Author
Owner

@michalshy commented on GitHub (Sep 11, 2025):

Image
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          16.07.2025    21:56                scripts
d----          16.07.2025    21:56                triplets
d----          16.07.2025    21:56                vcpkg-artifacts
-a---          16.07.2025    21:56              0 .vcpkg-root
-a---          16.07.2025    21:56           1073 LICENSE.txt
-a---          16.07.2025    21:56          47767 NOTICE.txt
-a---          16.07.2025    21:56            172 vcpkg-bundle.json
-a---          16.07.2025    21:56            573 vcpkg-cmd.cmd
-a---          16.07.2025    21:56           3389 vcpkg-init
-a---          16.07.2025    21:56          18722 vcpkg-init.cmd
-a---          16.07.2025    21:56          18722 vcpkg-init.ps1
-a---          16.07.2025    21:56             10 vcpkg-version.txt
-a---          16.07.2025    21:56        8357928 vcpkg.exe

PS C:\Dev\Projects\terminal> gci "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg" *.exe -rec

    Directory: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          16.07.2025    21:56        8357928 vcpkg.exe
@michalshy commented on GitHub (Sep 11, 2025): <img width="979" height="511" alt="Image" src="https://github.com/user-attachments/assets/4beeda3d-5a97-4b26-b685-52687ae75200" /> ``` Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 16.07.2025 21:56 scripts d---- 16.07.2025 21:56 triplets d---- 16.07.2025 21:56 vcpkg-artifacts -a--- 16.07.2025 21:56 0 .vcpkg-root -a--- 16.07.2025 21:56 1073 LICENSE.txt -a--- 16.07.2025 21:56 47767 NOTICE.txt -a--- 16.07.2025 21:56 172 vcpkg-bundle.json -a--- 16.07.2025 21:56 573 vcpkg-cmd.cmd -a--- 16.07.2025 21:56 3389 vcpkg-init -a--- 16.07.2025 21:56 18722 vcpkg-init.cmd -a--- 16.07.2025 21:56 18722 vcpkg-init.ps1 -a--- 16.07.2025 21:56 10 vcpkg-version.txt -a--- 16.07.2025 21:56 8357928 vcpkg.exe PS C:\Dev\Projects\terminal> gci "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg" *.exe -rec Directory: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 16.07.2025 21:56 8357928 vcpkg.exe ```
Author
Owner

@michalshy commented on GitHub (Sep 11, 2025):

I am so sorry for taking your time, I looked at your answer and checked my environment variables. My VCPKG_ROOT was pointing to old directory i deleted... So i guess it tried to take one from there and when it failed it must've fallen to dep... I changed dir and now its working. Closing issue

@michalshy commented on GitHub (Sep 11, 2025): I am so sorry for taking your time, I looked at your answer and checked my environment variables. My VCPKG_ROOT was pointing to old directory i deleted... So i guess it tried to take one from there and when it failed it must've fallen to dep... I changed dir and now its working. Closing issue
Author
Owner

@DHowett commented on GitHub (Sep 11, 2025):

Oh no, sorry about that! We should see if we can add an informational message

@DHowett commented on GitHub (Sep 11, 2025): Oh no, sorry about that! We should see if we can add an informational message
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23602