-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TargetFramework is not "undefined," but getting it is skipped for vcxproj #5565
Comments
I have a full C++ setup, so I can work on this. |
@BartoszKlonowski this is a pretty tricky area. Please check in after you get a repro and some idea of what to work on before sinking a bunch of time into it. |
@rainersigwald Thank you for that, I will. |
@Forgind I've tried to set the
And when I ran the MSBuild without any more parameters, the build was just fine... Please let me know if this is the reproduction scenario you were thinking about. (I've also attached the full configuration, so you can verify it. Hope that helps!) |
I don't remember all the context for this, but looking at the description, I think I fixed this in 16.9 and forgot about it: #5838 If rainersigwald and I both forgot about that PR in the intervening months and should have closed this—sorry! I'll look more next week to see if we should just close this. |
@Forgind No problem if you've already fixed it. Just let me know once you'll double check the status 👍 |
I just chatted with rainersigwald offline, and we agreed we'd just forgotten to chase this down. Thanks for the reminder! |
Issue Description
We SkipGetTargetFrameworkProperties on .vcxproj by default, but we're not adding TargetFramework to UndefineProperties. This means that with cross-targeting, MSBuild can be confused when building the exact same project, lock the dll as it writes, and fail.
Steps to Reproduce
I think this will work, although I haven't actually tested it, since I don't want to download C++ 😄 :
Create a .vcxproj as normal
Specify TargetFrameworks="net462"
Build
Expected Behavior
It builds for net462 alone.
Actual Behavior
CL : fatal error C1083: Cannot open compiler intermediate file: ...
Permission denied
The text was updated successfully, but these errors were encountered: