XNA Creators Club Online
Page 1 of 1 (5 items)
Sort Posts: Previous Next

Web Reference and XNA (howto)

Last post 05/07/2009 1:54 by Aoris. 4 replies.
  • 03/07/2009 22:16

    Web Reference and XNA (howto)

    Hi everyone,
       after hours and hours and hours I understand how to add web reference to XNA Project (I will hope if this howto can help anybody).

    In my solution explorer I have 3 project:
    1) XNA project
    2) ASP .NET project
    3) Windows Forms project

    Follow these steps:
    - Develop and Build your XNA project;
    - Delete all files in Windows Forms project,
    - Copy all classes from XNA project to Windows Form project;
    - Copy Content (with xnb!!!!!) from XNA project to debug/deployment Windows Forms project directory (bin/debug...);
    - In proprieties of Windows Forms project set CPU to x86;
    - Build Windows Forms project and;
    - Add web reference to Windows Forms project;
    - Develop your XNA Client.

    This works!!!!!

    But I have one question:
    Why XNA team does not add support for web reference? It is so hard?

    Bye bye
    Paolo
  • 04/07/2009 14:52 In reply to

    Re: Web Reference and XNA (howto)

    Its not supported on xbox, so my guess would be for consistency

    EDIT:

    By the way I just checked, you can add a class library to the solution, and add a service referance to that. Isnt that a simpler way, or have I missed the point?
  • 04/07/2009 18:44 In reply to

    Re: Web Reference and XNA (howto)

    I'll have to see how I did this, but I had absolutely no issues integrating a web reference with a standard Windows XNA 2.0 game project. I wish I had more details but it was almost a year ago that I did it. But you definitely don't need to do all those crazy steps to get it working. I'll see if I still have the project around for me to take a look.
  • 04/07/2009 18:48 In reply to

    Re: Web Reference and XNA (howto)

    The only issue I ran into was that there is no option for a service reference when you left like on references in an XNA project. But by adding a windows library it worked fine for me, like I said above
  • 05/07/2009 1:54 In reply to

    Re: Web Reference and XNA (howto)

    Ops,
    yes it is more simple add windows library to the solution then follow my "crazy steps"... I forget that I can use web reference in windows library... 

    Thanks everybody for help.
Page 1 of 1 (5 items) Previous Next