-
Notifications
You must be signed in to change notification settings - Fork 8.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
Unrecognized Flag '-Yu' in 'p2' #1031
Comments
Could you give some more context on that error text? I've never seen it before. |
The same. Debug x64 build passed but Release x64 failed with same issue. 1>------ Build started: Project: TerminalConnection, Configuration: Release x64 ------ |
I also saw this.
This is the Error that I get
|
i have the same Error... |
Right click solution -->retarget solution,change to latest |
I had the same error. VS2019/tools v142, and every build failed with at least two modules returning the "Unrecognized flag -Yu in p2" error. Re-targeted after clone, and individually re-targeted the UWP projects that didn't move from 141 to 142 during the initial re-target. Still got the errors during every build. Tried HimiSaber's solution -- after another failed build, right-clicked the OpenConsole.sln and clicked Re-target solution. That finished, so I built again. No errors! Launching the WindowsTerminal.exe still didn't work (would appear, then disappear after a few seconds), but I deployed anyway. Only took a few seconds, as the solution had been properly built. Checked Start Menu, and Windows Terminal (Dev Build) was there and working! Thank you HimiSaber! I almost didn't try it, as I'd already re-targeted several times. |
@HimiSaber and @boldcronie, thank you so much this works. I have successful built WindowsTerminal and deploy. Its working and fast. |
This will be fixed by #1012. |
I still have this error. |
@NycuRO did you try @HimiSaber's solution? Worked for me |
i fixed. but when i use ubuntuu profile i've got gray screen only. |
I had a similar issue in a completely unrelated project. Going into my project properties and setting Linker -> General -> Show Progress to /VERBOSE gave me a clue -- it showed a library of mine that it was searching for. A stack overflow comment suggested this was caused by this library being built with a different version of visual studio. I rebuilt both using the same version of visual studio (being mindful to build the appropriate architecture & release) and this error went away. |
Trying to build from Windows 10 x64 using Visual Studio 2019 and got his error message.
unrecognized flag '-Yu' in 'p2'
. This is from the current master branch. How do I resolve this? Is it something to do with UTF-8? What is the workaround then? Can't be applied to the whole repo? I have tried to search related issues without success with proposed solutions.The text was updated successfully, but these errors were encountered: