Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are we getting ".XML.OLD" files when compiling?

A large number of our projects (all of which have XML documentation turned on) generate <assemblyname>.XML files (as expected) and ALSO a copy of that file called <assemblyname>.XML.OLD

Not all of our projects which have XML documentation turned on generate this ".XML.OLD" file, but many of them do. There seems no rhyme or reason why some do and some don't...

Does anyone know why this is happening? And how to stop it happening?

This is with Visual Studio 2012. I also have Resharper 8 installed (a colleague has resharper 7, but still sees the ".xml.old" files).

like image 388
Matthew Watson Avatar asked Jul 27 '26 05:07

Matthew Watson


1 Answers

This occurs when you are using Code Contracts and you have selected the option to Emit contracts into XML doc file.

I expect that the Code Contracts rewriter is simply making a backup of the XML doc file because it is changing it.

like image 155
Matthew Watson Avatar answered Jul 29 '26 20:07

Matthew Watson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!