Cleanup samap files

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Cleanup samap files

Postby MartinH » Wed May 28, 2014 6:25 pm

I have a collection of over 3000 samap files and would like to clean some of these up, but the question is which ones?

If I have a project that I know has been updated in *all* my clients up to a specific version I would like to eliminate all samap files that a before that version, but how do I know which files these are?

Thanks,
Martin.
MartinH
 
Posts: 64
Joined: Fri Apr 15, 2005 9:13 am

Postby jessica.ramos » Thu May 29, 2014 7:25 pm

Hi Martin,

Thanks for your post!

Each build that you create via SmartAssembly gets a new 'AssemblyID' added to the 'Builds' table of the SmartAssembly database. And if error reporting has been applied to the build, a map file is also created for it in the maps folder, named with its 'AssemblyID' value.

It could be a lengthy (and risky) process, but you can look through the database--if you're confident you've found the appropriate ProjectID and AssemblyID of your specific version, you can look for all the other AssemblyID values created for the same ProjectID and delete any mapfiles with the same name.

If you go ahead with this, kindly make sure to backup your map files somewhere first! If any needed map files are accidentally deleted, you may not be able to receive/read incoming error reports anymore.

(If you have any further questions on this or accessing the SmartAssembly database in general, please let me know!)
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm

Postby MartinH » Fri May 30, 2014 9:19 am

Jessica:

Thanks for the information, that help me a lot and I have managed to identify the obsolete files and manually remove them.

It might be worth including a utility to do this cleanup in a future version, as I'm sure many users could benefit from it.

Once again, thanks for your detailed help.

Martin.
MartinH
 
Posts: 64
Joined: Fri Apr 15, 2005 9:13 am

Postby jessica.ramos » Fri May 30, 2014 4:31 pm

Hi Martin,

I'm glad to hear that helped!

And many thanks for that suggestion, I'll pass it on to our development team. :)
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm

Postby DanielRose » Mon Jun 02, 2014 12:43 pm

I have over 42000 samap files, of which I only need a couple hundred. With that amount of files, any manual search and delete won't work in any reasonable amount of time.

So please add me to the list of people who could really use such a tool!
DanielRose
 
Posts: 16
Joined: Fri Oct 30, 2009 9:29 am
Location: Aachen, Germany

Postby jessica.ramos » Tue Jun 10, 2014 6:56 pm

Thanks for the feedback, Daniel! I've gone ahead and +1'd the request (logged internally as SA-1835)
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests