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. Visual Studio
  4. Reloading .proj files on build

Reloading .proj files on build

Scheduled Pinned Locked Moved Visual Studio
visual-studioquestion
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.
  • T Offline
    T Offline
    Tristan Rhodes
    wrote on last edited by
    #1

    Hi Guys - I've created a .target file for my MSBuild tasks that i have included in my project, and referenced from the .csproj file. This works very nicely, in that i can edit the file without unloading the project, however, the project will only use the new .target file once the project has been unloaded and loaded again. This kind of defeats the purpose of seperating my tasks. Is there any way around this so that the project will reload when i build it? Regards Tris

    ------------------------------- Carrier Bags - 21st Century Tumbleweed.

    I 1 Reply Last reply
    0
    • T Tristan Rhodes

      Hi Guys - I've created a .target file for my MSBuild tasks that i have included in my project, and referenced from the .csproj file. This works very nicely, in that i can edit the file without unloading the project, however, the project will only use the new .target file once the project has been unloaded and loaded again. This kind of defeats the purpose of seperating my tasks. Is there any way around this so that the project will reload when i build it? Regards Tris

      ------------------------------- Carrier Bags - 21st Century Tumbleweed.

      I Offline
      I Offline
      i i i
      wrote on last edited by
      #2

      sorry could not understand exactly what you want you can rebuild as well as can clean a solution try these links for Extended Visual Studio Build Process http://msdn.microsoft.com/en-us/library/ms366724(VS.80).aspx[^] or use this linkhttp://visualstudiohacks.com/articles/visual-studio-net-platform-target-explained/[^]

      T 1 Reply Last reply
      0
      • I i i i

        sorry could not understand exactly what you want you can rebuild as well as can clean a solution try these links for Extended Visual Studio Build Process http://msdn.microsoft.com/en-us/library/ms366724(VS.80).aspx[^] or use this linkhttp://visualstudiohacks.com/articles/visual-studio-net-platform-target-explained/[^]

        T Offline
        T Offline
        Tristan Rhodes
        wrote on last edited by
        #3

        Hi, In order to modify a projects MSBuild script (In the IDE), it has to be unloaded first, then it can be edited and re-loaded. In order to get around this, I moved my custom MSBuild tasks into a separate .target file so that it would not be necessary to unload the project in order to edit the file in the development environment. However, even with the separate .target file, it still requires that the project be reloaded. This is not a component of the application in development, it is a component of the build process. I've tried cleaning the build but this does not have the desired effect. Regards Tris

        ------------------------------- Carrier Bags - 21st Century Tumbleweed.

        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