Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to get information from .csproj file using xmlserialization

How to get information from .csproj file using xmlserialization

Scheduled Pinned Locked Moved C#
csharpxmltutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    samtam
    wrote on last edited by
    #1

    Hello! Can any body tel me abt the structure of .csproj file in solution of a .net project,As .csproj file is in xml format and xmlserializer class is used to serialize a class or deserialize an xml file back to the orignal class.i want to read and save information of .csproj file into my own class bt as i dont know vat is the structure of this file so i m unable to get information from this file using deserialize method of xmlserializer class coz it needs the class info to which it is to be serialized.If anyone have any info abt this plz share with me Thanks in advance! Sam

    S Y 2 Replies Last reply
    0
    • S samtam

      Hello! Can any body tel me abt the structure of .csproj file in solution of a .net project,As .csproj file is in xml format and xmlserializer class is used to serialize a class or deserialize an xml file back to the orignal class.i want to read and save information of .csproj file into my own class bt as i dont know vat is the structure of this file so i m unable to get information from this file using deserialize method of xmlserializer class coz it needs the class info to which it is to be serialized.If anyone have any info abt this plz share with me Thanks in advance! Sam

      S Offline
      S Offline
      shaz jazz
      wrote on last edited by
      #2

      i m also facing same kind of prolem!! can any1 tell us how 2 extract informaiton from .csproj using any way??:confused: May God help u solv ur problems as well,thx in advance!!

      1 Reply Last reply
      0
      • S samtam

        Hello! Can any body tel me abt the structure of .csproj file in solution of a .net project,As .csproj file is in xml format and xmlserializer class is used to serialize a class or deserialize an xml file back to the orignal class.i want to read and save information of .csproj file into my own class bt as i dont know vat is the structure of this file so i m unable to get information from this file using deserialize method of xmlserializer class coz it needs the class info to which it is to be serialized.If anyone have any info abt this plz share with me Thanks in advance! Sam

        Y Offline
        Y Offline
        Yuvi Panda
        wrote on last edited by
        #3

        Well, .csproj is an MSBuild file. MSBuild is an XML format for build files, used from VS 2005 onwards. I guess you'll be better off writing your own parser using System.XML to parse out the Stuff you need from the MSBuild file[.csproj]. More Information is available here. Yuvi Panda T 15 Year old Microsoft Student Partner Blogs at : http://yuvipanda.blogspot.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups