Main.xaml is gone - is there anywhere I can get it back

Studio 2024.10.8

New project, local. I had it 99% done. Doing some final cleanup and Studio froze when saving Main.xaml. So I had to open Task Manager to kill it. I went back to the project folder and Main.xaml is GONE.

I had run it multiple times in Studio before this. Isn’t the package published somewhere when it runs? Where would that file be, so I can hopefully recover the file from the .nupkg?

@postwick

If you have published then you can if the include source is checked

Also did you check in recycle bin the first place if at all it happened to be deleted

Also checking event viewer logs might help to see where it would have gone

Cheers

I had not published to Orchestrator, but it publishes locally somewhere when it runs in Studio, doesn’t it?

This is awful. On what planet do you write an app that deletes files when it crashes?!

@postwick

May be this helps

How to Check Windows crash logs | ManageEngine EventLog Analyzer.

You can know if writes anything ..on any planet with windows platform ..or atleast on earth

Even if package is created ideally on windows compatibility you wont be able to see xamls..so I doubt..

Cheers

I’m not trying to find out what it did when it crashed. I’m trying to find out where it publishes to locally when running a process in Studio so I can see if I can get Main.xaml back from the .nupkg file.

@postwick

Because of above reason I am asking you to check logs if at all the main.xaml is deleted and if a log is there then it might help..But if you dont want that and just need to location…then I agree you need not check anything

Any common temp files are present under user profile folder under local and UiPath can check there

It’s possible to recover the xaml files from inside the dlls that are in the nupkg file. So AGAIN…do you know where it publishes to locally when running in Studio?

I dont think it publishes the full package when you do a run Paul :confused:

As I understand it, it will compile the .dll’s you need for the workflows you need, but not make the full nuget, so it builds the code but not the package.
The code doesn’t actually need the .xamls at all, and so there is no nuget built containing them.

I could be wrong, but I think you are out of luck here.
Really bad news if so, thats an awful crash indeed.

Only hope I could suggest is maybe there is a hidden file (dunno if you have them visible by default) called ~Main.xaml as Studio can make a temp version when its being edited.

1 Like

@postwick

this is the temp location for studio files as mentioned already and echoing what @Jon_Smith explained as well

C:\Users\username\AppData\Local\Programs\UiPath\Studio

All the best

cheers

Yeah I looked for a hidden file, nothing.

I think you’re right that it doesn’t do an actual publish when running in Studio. So I’m screwed.