Reloading .proj files on build
-
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.
-
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.
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/[^]
-
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/[^]
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.