PutFullFileName exception

Top  Previous  Next

It seems to me that if you do a PutFullFileName on an assembly that has already been saved you'll get an exception.


This is because once set FullFileName cannot be altered after a save.


"The FullFileName property can only be set on a file if the file has never been saved. If a file has been saved, the FullFileName property becomes read-only. In order to perform the copy operation that you are talking about, you will need to do a file copy (using FileManager.CopyFile or Document.SaveAs), followed by FileDescriptor.ReplaceReference in order to fix up the references on the copied file.."



Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)