none
VS2013Pre WDK8.1Pre XPSDrvSmpl WDKKitVersion RRS feed

  • Question

  • Need to get started learning how to build XPS printer drivers.  Found the XPSDrvSmpl.  That lead to downloading and installing VS2013 Preview and then WDK 8.1 Preview.  VS2013 Preview won't load the XPSDrvSmpl project files due to the complaint:

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v120\Platforms\Win32\ImportAfter\Microsoft.Cpp.WDK.props(10,11): A numeric comparison was attempted on "$(WDKKitVersion)" that evaluates to "" instead of a number, in condition "'$(WDKKitVersion)' >= '8.1'".

    From "the old days" this feels like an WDKKitVersion environment variables needs setting or something, but I'm not finding any suggestion about need to run a file to set any environment variables.

    What am I missing here?

    Thanks!


    -- kburgoyne

    Sunday, July 14, 2013 9:48 PM

Answers

  • We were able to reproduce the issue: turns out this only occurs when you have VS2010 installed along with VS2013 (having VS2012 installed or not doesn't change anything). This is caused by a small bug in VS2013 Preview, not in the WDK 8.1 Preview.

    We are currently investigating for a fix and will let you know as soon as we have something.

    In the meantime, uninstalling VS2010 should fix the issue.


    Max -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by kburgoyne Monday, July 15, 2013 10:17 PM
    Monday, July 15, 2013 9:04 PM

All replies

  • I have the same problem - in fact, it occurs for me with both drivers and with ordinary console applications as well.

    My forum thread about the same issue, to which nobody has replied:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/0862d3d2-5323-4324-b2d4-057b42ead631/error-message-trying-to-open-projects-in-vc-2013-preview

    Connect bug that someone else filed (you should click that you can reproduce it, and maybe comment):
    http://connect.microsoft.com/VisualStudio/feedback/details/791885/wdk-8-1-breaks-visual-c

    Monday, July 15, 2013 4:10 AM
  • We were able to reproduce the issue: turns out this only occurs when you have VS2010 installed along with VS2013 (having VS2012 installed or not doesn't change anything). This is caused by a small bug in VS2013 Preview, not in the WDK 8.1 Preview.

    We are currently investigating for a fix and will let you know as soon as we have something.

    In the meantime, uninstalling VS2010 should fix the issue.


    Max -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by kburgoyne Monday, July 15, 2013 10:17 PM
    Monday, July 15, 2013 9:04 PM
  • Had VS2010 installed.

    Had VS2012 installed.

    Installed VS2013Pre.

    Installed WDK8.1Pre.

    Installed XPSDrvSmpl.

    Unable to load XPSDrvSmpl as documented above.

    Uninstalled everything under "Programs and Features" (Win7) that started with "Microsoft Visual Studio 2010" except "Microsoft Visual Studio 2010 Tool for Office Runtime".  Did NOT uninstalled anything like "Microsoft Visual C++ 2010...".

    Did NOT reboot.

    Ran VS2013Pre.

    Loaded XPSDrvSmpl without incident.

    Conclude that conflict with VS2010 was the problem.

    Note that VS2012 remains installed and does not appear to be causing a problem.


    -- kburgoyne


    • Edited by kburgoyne Monday, July 15, 2013 10:22 PM Typo
    Monday, July 15, 2013 10:21 PM
  • Thanks.  I did stumble upon the second thread you list before making my posting.  It was marked as "closed", although I believe I voted it up.  I think I also stumbled upon your thread after other poking around, and by that time I think I confused your thread with the first one.


    -- kburgoyne

    Monday, July 15, 2013 10:24 PM
  • Just received confirmation that this bug will be fixed in VS 2013 RTM. In the meantime, the workaround is to avoid having VS 2010 and VS 2013 Preview installed on the same machine.


    Max -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, July 15, 2013 10:44 PM
  • That's good news.  Of course, for everyone that needs to get started using the previews, the bug will REALLY be fixed by everyone uninstalling VS2010 prior to that point.  :-)

    -- kburgoyne

    Monday, July 15, 2013 10:49 PM