error MSB4086 on install
Thomas101 opened this issue · comments
Thomas Beverley commented
Hi, I'm running npm-install and seeing the following error...
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(94,27): error MSB4086: A numeric comparison was
attempted on "$(TargetPlatformVersion)" that evaluates to "10.0.10586.0" instead of a number, in condition "'$(UseOSWin
MdReferences)' == '' and ('$(TargetPlatformWinMDLocation)' == '' and '$(TargetPlatformIdentifier)' == 'Windows' and $(
TargetPlatformVersion)' > '7.0')". [C:\Users\Tom\Dev\app\node_modules\.staging\electron-
windows-interactive-notification-906feb04'InteractiveNotifications\InteractiveNotifications.vcxproj]
I was wondering if you could point me in the right direction. I have VSCode 2015 installed and build tools 2015. I've also set my VisualStudioVersion
environment variable to 14.0
as was mentioned in #3 just in case this has any impact on what's happening.
Thanks!
Syed Umair commented
I am also facing the problem
>msbuild .\InteractiveNotifications.sln /p:Configuration=Release /p:Platform=x64
Microsoft (R) Build Engine version 4.7.2556.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 07-12-2017 06:14:13 PM.
Project "C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
ValidateProjects:
The project "InteractiveManagedTest" is not selected for building in solution configuration "Release|x64".
Project "C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications.sln" (1) is building "C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications\InteractiveNotifications.vcxproj" (2) on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(94,27): error MSB4086: A numeric comparison was attempted on "$(TargetPlatformVersion)" that evaluates to "10.0.10586.0" instead of a number, in condition "'$(UseOSWinMdReferences)' == '' and ('$(TargetPlatformWinMDLocation)' == '' and '$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)'
> '7.0')". [C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications\InteractiveNotifications.vcxproj]
Done Building Project "C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications\InteractiveNotifications.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications.sln" (default targets) -- FAILED.
Build FAILED.
"C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications.sln" (default target) (1) ->
"C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications\InteractiveNotifications.vcxproj" (default target) (2) ->
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(94,27): error MSB4086: A numeric comparison was attempted on "$(TargetPlatformVersion)" that evaluates to "10.0.10586.0" instead of a number, in condition "'$(UseOSWinMdReferences)' == '' and ('$(TargetPlatformWinMDLocation)' == '' and '$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' > '7.0')". [C:\Users\Syed\MyFiles\MyWorkspace\FULLClient-Electron\node_modules\electron-windows-interactive-notifications\InteractiveNotifications\InteractiveNotifications.vcxproj]
0 Warning(s)
1 Error(s)
Syed Umair commented
I solved this problem
Install this sdk