Hi,
It appears that after the input file is transformed the srcReader is not closed, this doesn't affect the command line app. But when using the msbuild task this prevents you from modifying the original file until the msbuild project is completed.
I just added a call to the close method of the reader and all seems to be fixed!
NxsltMain.cs:131-147
ThanksJulian