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. Linking files to a project

Linking files to a project

Scheduled Pinned Locked Moved C#
question
3 Posts 2 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.
  • P Offline
    P Offline
    PozzaVecia
    wrote on last edited by
    #1

    I linked some file to my project (console project). I have two questions: 1) Is there a way to edit the link, without doing it manually? (is there the link path written somewhere in the project?) 2) Can I commute the link in a local copy of the linked file quickly? Thanks Germoz

    P 1 Reply Last reply
    0
    • P PozzaVecia

      I linked some file to my project (console project). I have two questions: 1) Is there a way to edit the link, without doing it manually? (is there the link path written somewhere in the project?) 2) Can I commute the link in a local copy of the linked file quickly? Thanks Germoz

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I'm unsure exactly what you are asking, but maybe I can shed some light for you anyway. The project file is just XML and a regular included source file may look like this:

      <Compile Include="CompileException.cs" />
      

      A linked (Add as link) file may look like this:

      <Compile Include="..\\PIEBALD\\Types\\XmlNode.cs">
        <Link>XmlNode.cs</Link>
      </Compile>
      

      Because it's XML, you can edit it, but you should make a backup and be careful. I use linked files a lot.

      P 1 Reply Last reply
      0
      • P PIEBALDconsult

        I'm unsure exactly what you are asking, but maybe I can shed some light for you anyway. The project file is just XML and a regular included source file may look like this:

        <Compile Include="CompileException.cs" />
        

        A linked (Add as link) file may look like this:

        <Compile Include="..\\PIEBALD\\Types\\XmlNode.cs">
          <Link>XmlNode.cs</Link>
        </Compile>
        

        Because it's XML, you can edit it, but you should make a backup and be careful. I use linked files a lot.

        P Offline
        P Offline
        PozzaVecia
        wrote on last edited by
        #3

        You get perfectly the point! Very helpful Thanks a lot

        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