SPMetal - how to add parameters to VS 2010 project

Sep 30, 2011 at 5:30 PM

I am new to CKSDEV and SPMEtal. Please tell me how to add SPMetal parameters.xml to my VS 2010 project. i could not find documentation on this.

  • SP Metal Definition - Adds an SPMetal parameter XML file to the project and auto-generates the code based on that configuration using a Visual Studio Custom Tool (like resx files).
  • Oct 28, 2011 at 11:00 AM

    i try to use spmetal definition and found that it work not yet good..

    but with some magic it may be used =)

    after adding new spmetal definition item , code tries to generate by default url from project deploy location,

    to manual start generate, select <name>/<name>.xml file , where name is a  spmetal definition item name, right click -> run custom tool

    if your have some lucky, code generates, else - none and throw exception. then your need delete  spmetal definition item and add it again

    Coordinator
    Nov 2, 2011 at 10:32 PM

    The SPMetal custom tool executes the native command line application to create the code classes, therefore if you experience problems with the xml settings try and run the command tool directly. This will help us understand if the cksdev wrapper is functioning the same. Providing the xml will also help us diagnose any issues. As you can appreciate we can't possibly cover every combination of settings that the community may wish to use so we need your help to improve the functions when they fail by helping us replicate the issues :)

    Here are some useful links about the xml:

    http://msdn.microsoft.com/en-us/library/ee535056.aspx

    http://msdn.microsoft.com/en-us/library/ee535058.aspx