ClearCase‎ > ‎UCM FAQ‎ > ‎

How do I stop Visual Studio from creating ~sak files in ClearCase

Visual studio intergrates with the sourcecontrol system (ClearCase in this case) through the SCC interface.

In the older version of the inteface (which is the one ClearCase supports in version 6.x) it involves a bunch of (potential) control files:

~sak*.tmp
~sak*.webproj
~sak*.csproj
~sak*.vcproj
~sak*.sln
*.vssscc
*.vspscc
*.ccscc
*.vsscc


Some of these files are NOT IMPORTANT for your project.
Please NOTE that the *.*scc should not be deleted, they play a valid part in the Source Control integration but the ~sak files are simply files created to test the SCC capabilites  - they are an old legacy from Microsoft Visual SourceSafe incapabilities ...they should not be in ClearCase!

The files are created automatically when you - inside Visual Studio - type in a file that is checked into ClearCase. The VS will check out the file for you "on-the-fly" and it's in that process the ~sak file is created.

Question

How do I stop Visual Studio from creating ~sak files in ClearCase

Answer

You can prevent them from being created by setting the Windows registry key:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\SourceControl]
"DoNotCreateTemporaryFilesInSourceControl"=dword:00000001

The default value is "FALSE" so the key might not exist on your system, you'll have to create it.

We've a created a .reg file for you - you can download and run it (if you trust us ;-)

The *ssc files are only supposed to be in the source control database, but these files are pretty harmless, since they aren't updated by VC or the SCC interface. Both Microsoft and IBM agreen in various technotes that these files should not be checked into the source control system. They should be kept as view private and disregarded by the developer.

However - due to some internal logic know only to Microsoft - they chose to make it the defuault option that these files are added to source control automatically by Visual Studio!

References:
http://support.microsoft.com/default.aspx?scid=kb;en-us;317709
http://social.msdn.microsoft.com/Forums/en/tfsgeneral/thread/9920911d-1a7e-4ada-90cd-b1b910586cf4
http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21117869
http://support.microsoft.com/kb/839582


Set the registry setting above in order to make them go away entirely.

Read about about Sumedh A. Kanetkar (SAK!!!!)
ċ
DoNotCreateTemporaryFilesInSourceControl.reg
(0k)
Lars Kruse,
5 Mar 2010, 05:47
Comments