Defect Fix: MAGN-3373 Passing xlsx file to Import.csv crashes Dynamo

Crash happened because the same file that was opened in Excel was being read from, using File.OpenText.  You can't use File.OpenText for this, OpenText tries to open the file in "shared read" mode which fails if another application/thread has the file open for writing. We have to use the FileStream class and open the file
for reading with sharing mode set to ReadWrite.