It appears to work if I have VS 2010 files installed in both 2012 and 2013 versions. As a workaround to avoid installing unnecessary programs, one could copy the .props and .targets files which are installed in MSBuild for VS 2010. This will not work however because VS 2013 checks whether previous versions are really installed. One way to overcome this is editing the default .props and .targets files (to remove this check).
A version of these files for VS 2013 would still be better though. VS 2012 and 2013 are very similar (their .props and .targets in MSBuild are almost identical, just in different directory) too. So it is very likely that a ported version of these files would work for both latest VS versions and probably those released in the future.
A version of these files for VS 2013 would still be better though. VS 2012 and 2013 are very similar (their .props and .targets in MSBuild are almost identical, just in different directory) too. So it is very likely that a ported version of these files would work for both latest VS versions and probably those released in the future.