In the .razor file I had to add a script tag with type "text/template" and I moved the file to the 'scripts' folder as well.
<script src="scripts/MTD.xml" type="text/template"></script>
Interesting tidbit, for this to work the extension has to be .xml (albeit there may be other extensions that work but custom extensions I tried did not work).