Flecko1

Ever since I moved to C# express 2005 for XNA, every project in my solution gets rebuilt every time I build, even if nothing has changed. If I build and then immediately build again without changing anything, it still rebuilds the entire project. Why is this happening, and how do I stop it

If it's of any significance, this project was migrated from Visual Studio 2003. Before the conversion it was fine.


Re: XNA Framework Viz rebuilding unnecessarily?

Joel Martinez

I must unfortunately report that I am seeing the same thing. And it's particularly bad for me because I've got a long content build, even though none of the assets are changing in between builds. If I can't figure it out, I'm going to have to resort to using the XNA Content Builder (XCB) put out by the xnadev.ru guys ... that way I can separate the content build from the code build.





Re: XNA Framework Viz rebuilding unnecessarily?

drawle

I'm not seeing that at all. I get "<...> is already up to date" messages. Have you checked the time stamps of your files Could they have a later stamp than your system clock Perhaps it is a particular file type Does it happen with new projects such as a new starter project





Re: XNA Framework Viz rebuilding unnecessarily?

ClydeCoulter

yeah, I see the same thing here. It makes it take quite some time to see some small enhancement run...:(




Re: XNA Framework Viz rebuilding unnecessarily?

Shawn Hargreaves - MSFT

If you delete your obj directory, does that fix the problem I'm wondering if that could somehow have gotten stuck with a stale file.





Re: XNA Framework Viz rebuilding unnecessarily?

ClydeCoulter

I'm not sure....

I deleted the obj directories in each of 3 projects in a single solution. I don't see the status line indicating that multiple builds are being done, but it appears that at least one is....without any changes since the last build....only hitting run (debug run) arrow.






Re: XNA Framework Viz rebuilding unnecessarily?

waruwaru

A shot in the dark. Remove all 3 project's dependencies on the other projects, and build them one by one and see what happens. You might have somehow created circuler reference/dependencies. As in the one of the projects build after the other one somehow recompile/recreate a file/resource the other projects uses.




Re: XNA Framework Viz rebuilding unnecessarily?

ClydeCoulter

I checked for circular dependencies the other day, no problems there. I'll have to try removing the dependecies altogether and which should stop it, since it should no longer check date/time stamps on the other projects. But I really do want them to rebuild if a project that it uses changes.




Re: XNA Framework Viz rebuilding unnecessarily?

sugrhigh

well go into the properties pane for all your assets (all at once even) and set "Copy To Output Directory" to "Copy If Newer"... that will help your problem of it always building...





Re: XNA Framework Viz rebuilding unnecessarily?

waruwaru

I found this setting in Tools->Options that I didn't notice before that may be causing everything to compile. Try turning this on if your projects appear to build for no reasons:

Tools->Options->Show All Settings check box in lower left->Project and Solutions->Build and Run->make sure the "Only build startup projects and dependencies on Run" check box is checked.