Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSBuild integration broken #18805

Closed
autoantwort opened this issue Jul 4, 2021 · 9 comments
Closed

MSBuild integration broken #18805

autoantwort opened this issue Jul 4, 2021 · 9 comments
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) requires:repro The issue is not currently repro-able

Comments

@autoantwort
Copy link
Contributor

I am using the msbuild integration and have updated to the latest master, but now I am getting the following error when I try to build the project:

Error MSB3371
The file "F:\src2\vcpkg\scripts\buildsystems\msbuild\..\..\..\installed\.msbuildstamp-x86-windows..stamp" cannot be created. Could not find a part of the path 'F:\src2\vcpkg\installed\.msbuildstamp-x86-windows..stamp'.
From
F:\src2\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets:110

PS: I am using your workaround for different installed dirs from #16083

@JackBoosY JackBoosY added the requires:repro The issue is not currently repro-able label Jul 5, 2021
@JackBoosY
Copy link
Contributor

@vicroms Can you please take a look?

Thanks.

@JackBoosY
Copy link
Contributor

JackBoosY commented Jul 5, 2021

<Touch Files="$(_ZVcpkgMSBuildStampFile)" AlwaysCreate="true" />

<_ZVcpkgMSBuildStampFile>$(VcpkgInstalledDir).msbuildstamp-$(VcpkgTriplet).$(VcpkgHostTriplet).stamp</_ZVcpkgMSBuildStampFile>

VcpkgInstalledDir and (VcpkgTriplet or VcpkgHostTriplet) is empty.

<VcpkgInstalledDir Condition="'$(VcpkgInstalledDir)' == '' and '$(VcpkgEnableManifest)' != 'true'">$([System.IO.Path]::Combine($(VcpkgRoot), 'installed'))</VcpkgInstalledDir>
<VcpkgInstalledDir Condition="'$(VcpkgInstalledDir)' == '' and '$(VcpkgEnableManifest)' == 'true'">$([System.IO.Path]::Combine($(VcpkgManifestRoot), 'vcpkg_installed'))</VcpkgInstalledDir>
<VcpkgInstalledDir Condition="!$(VcpkgInstalledDir.EndsWith('\'))">$(VcpkgInstalledDir)\</VcpkgInstalledDir>

@JackBoosY JackBoosY added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Jul 5, 2021
@JackBoosY
Copy link
Contributor

Can you please provide your Visual Studio version and install location?

Thanks.

@JackBoosY JackBoosY added the requires:more-information This Issue requires more information to solve label Jul 5, 2021
@autoantwort
Copy link
Contributor Author

I am using Visual Studio 2015 installed at C:\Program Files (x86)\Microsoft Visual Studio 14.0 (should be the default location)

@JackBoosY JackBoosY removed the requires:more-information This Issue requires more information to solve label Jul 5, 2021
@PhoebeHui
Copy link
Contributor

@autoantwort, could you provide us the repro steps, I didn't repro this issue with VS2015 update3 with latest vcpkg, do you have custom settings?

@autoantwort
Copy link
Contributor Author

I have updated my bug report repo: https://github.com/autoantwort/VcpkgBug/tree/vcpkg_bug_18805 :D

  1. git clone --recurse-submodules https://github.com/autoantwort/VcpkgBug.git
  2. git checkout vcpkg_bug_18805
  3. bootstrap stuff + integrate install
  4. build the project

It maybe worked for you because you have an existing folder at $(VcpkgRoot)/installed. Delete that folder and try again, then it should fail

strega-nil-ms pushed a commit to strega-nil/vcpkg that referenced this issue Jul 6, 2021
@strega-nil-ms
Copy link
Contributor

@autoantwort
Copy link
Contributor Author

I still getting the same error

@autoantwort
Copy link
Contributor Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) requires:repro The issue is not currently repro-able
Projects
None yet
5 participants