-
-
Notifications
You must be signed in to change notification settings - Fork 85
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: Set UseEnv variable to true #151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ravenexp - Do you have any opinions on this?
These variables look like something the MSVC property files for C++ projects would set internally. Rather than overriding these globally, I'd first check if setting Does msbuild /p:UseEnv=true work for your project? |
For some reason default Windows headers and libraries can't be found in an older project without this variable being set
90254dd
to
adcc8b6
Compare
@ravenexp |
It's great that it works, but it should not be set by default because it effectively bypasses all configuration settings from the MSBuild project file. Can you share your MSBuild project file or maybe just the configuration properties part without the source file names? I'll try to figure out what is missing from the msvc-wine MSBuild environment. I want to try to get to the root cause of this issue. |
@ravenexp Here's the .vcxproj file: https://github.com/CookiePLMonster/SilentPatch/blob/dev/DDraw/DDraw.vcxproj |
Ah, this must be it: <PlatformToolset>v141_xp</PlatformToolset> I've never tried targeting Windows 7, much less XP. I'll try to figure out what env vars are required to support this platform. |
I'm currently setting |
I've opened #152 to address the root cause of this bug. With it applied, your project should now build with: msbuild /p:Platform=Win32 /p:PlatformToolset=v143 /p:WindowsTargetPlatformVersion=10.0
|
@ravenexp I can confirm that MR solves the issue too (with that extra |
Then I suggest closing this in favor of #152, which solves the actual problem that prevented the needed |
Superseeded by #152 |
For some reason default Windows headers and libraries can't be found in an older project without those variables being set