I am trying to set the required namespaces and Assembly references for microsoft operations to work in my external code using invoke code activity.
After I set manually the references and namespaces , they disappear everytime after we run the bot or edit the activity.So we need to set them again everytime time before we run.
Steps to reproduce:
- open any project/xaml file in notepad.
2.For eg : add <x:String>Microsoft.Office.Interop.Excel</x:String> under
xmlns:moie=“clr-namespace:Microsoft.Office.Interop.Excel;assembly=Microsoft.Office.Interop.Excel” in the namespaces.
3.After we save and run the bot, execution is successful.
- Now open the same xaml file in notepad , the references are missing.
I would like to know if there is anyway to achieve the above process as a one time process instead of doing it manually everytime.
Note: I am using a Community Version in Uipath.