none
Can't publish to Azure website using Visual Studio 2013 TargetPlatformVersion error

    問題

  • When I try to publish to Azure Website I receive the following message:

    Invoke build failed due to exception 'A numeric comparison was attempted on "$(TargetPlatformVersion)" that evaluates to "" instead of a number, in condition "'$(TargetPlatformVersion)' > '8.0'".  C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets'.

    2014年4月20日 下午 01:19

所有回覆

  • Hi Michel,

    I am moving your thread into the Azure Web Sites Forum for dedicated support. Thanks for your understanding.

    Best Regard,

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年4月21日 上午 02:53
  • Hi Michel,

    It seems like a mismatched version issue. Please make sure your MSBulid version matched to .NetFrameWork version. I suggest you could refer to this blog for more details ( http://blogs.msdn.com/b/visualstudio/archive/2013/07/24/msbuild-is-now-part-of-visual-studio.aspx ).

    Hope this helps.

    Will


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年4月28日 上午 06:27
    版主
  • Michel,

    did you find out what was causing this and how to fix it? Every now and then it happens in one of my solutions, too.. more precisely - in my case its a Cloud Services project that throws that error.

    Thanks,

    -Jörg

    2014年4月28日 下午 06:54
  • Just a quick Update, I found a WorkItem / Issue over at the NuGet tracker that mentions R# being the culprit: http://nuget.codeplex.com/workitem/3996 and if you check Resharper's public issue tracking system, you find the particular issue here:

    http://youtrack.jetbrains.com/issue/RSRP-408376

    .. which is fixed with 8.2.1 (which is currently available as a RC).

    Hope that helps!

    -J

    2014年4月28日 下午 07:23