The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Incorrect compiler error or missing error.

Last post 06-22-2010, 2:27 AM by kimo. 2 replies.
Sort Posts: Previous Next
  •  06-21-2010, 9:55 PM 9684

    Incorrect compiler error or missing error.

    When having a WMC Plugin installed using “devinstall /debug” and changes some of the code referenced by one of the mcml files. You can experience that your project incorrectly can build or incorrectly not build. This is due to the Visual Studio is validating the mcml files against the currently running binaries installed in WMC and not your code in “Bin\Debug”.

    To get the correct compile error or being able to build you need to uninstall the plugin “devinstall /u”.

    Is there any other way to have VS to check against the right binaries? Or address this issue in next version of this SDK?

    Thanks

    Kim
  •  06-21-2010, 11:37 PM 9685 in reply to 9684

    Re: Incorrect compiler error or missing error.

    The easiest way around this is to ruin VS elevated and put devinstall /u in your pre-build commands and devinstall /debug in your post build commands. That way you will always compile against the correct one.

    btw it's not the currently running binaries in WMC that it validates against, it's the assembly installed in the Global Assembly Cache (GAC).

    Cheers,
    Andrew
  •  06-22-2010, 2:27 AM 9686 in reply to 9685

    Re: Incorrect compiler error or missing error.

    Yes, that i a good workaround

    Sure it is in the GAC, the same as WMC is using.

    Thanks

    Still this would be nice to have fixed in vNext
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems