Der-Albert.com;17409 wrote:
Not sure what you can do about that, this is more just for information.
Thanks for sharing this. Having spent a good deal of time staring at this problem and trying to find ways of dealing with it, I'm going to reluctantly need to pass the buck here.
The design of the platform has really walled us in with this. We
need to create temporary files to reliably load projects. Any other way is going to involve rebuilding MSBuild itself, which would be impossible to maintain even if we could justify doing it. We are, actually, not the only ones that do this either. Temporary file creation is commonplace in dev tools. VS itself makes about half a dozen file system changes every time you CTRL+S on a single source file.
We go to some pretty insane lengths to work around limitations in other software, but to me this problem feels like it belongs in dotnet watch. Any tool that monitors file system activity to trigger actions should have a reliable way to provide exclusions, otherwise this kind of problem is inevitable, regardless of whether NCrunch is being used or not.
I realise this is probably the answer everyone expects from me here anyway, so I'm not exactly adding anything useful ... but we really can't take responsibility for this one.