I started getting the following error when trying to run MSBuild through a batch file on my machine.
C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ AppxPackage \ Microsoft.AppXPackage.Targets (283.22): error MSB4086: a numerical comparison was made on "10.0.11000.0", which instead of "number "evaluates to" 10.0.11000.0 ", condition" '$ (TargetPlatformVersion)'> = '10 .0.11000.0 '". [MyProject.csproj]
This happens in several different projects as part of the solution.
I am currently running VS2015 (Update 3). I upgraded from Update 2 on Friday. Therefore, it is possible that this may be related.
Based on various posts on the Internet (like this ), it seems like it was (at some point, at least in the past) caused by Resharper. However, I updated Resharper to the latest version and started the installation repair, but to no avail. I even tried to pause it in Visual Studio itself.
I also tried to repair the VS215 installation. But I still get the error.
How to solve this error?
Update
So, when I run this batch file, it works with VisualStudioVersion=12.0 . This seems to be part of the problem. When I draw it in 12.0 , the assembly is fine.
Check in the goals file that throws an exception, you can see this on line 283:
<PropertyGroup> <SdkIsRS1OrLater>False</SdkIsRS1OrLater> <SdkIsRS1OrLater Condition="'$(TargetPlatformVersion)' >= '10.0.11000.0'">True</SdkIsRS1OrLater> </PropertyGroup>
So, I'm not quite sure why this is so, but there seems to be a problem in the target file from MS?