Microsoft Developer Network > Forenhomepage > Visual Studio Source Control and SourceSafe > Where to find the Microsoft.VisualStudio.SourceSafe.Interop.dll
Stellen Sie eine FrageStellen Sie eine Frage
 

BeantwortetWhere to find the Microsoft.VisualStudio.SourceSafe.Interop.dll

  • Sonntag, 14. Januar 2007 15:54fengchao TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    Hello:

    I used the ssapi.dll which included in vc6.0 to redo the Addin test in the msdn, but the dll name does not appear to be Microsoft.VisualStudio.SourceSafe.Interop, I don't know where to find the proper dll.

    Thanks a lot

Antworten

Alle Antworten

  • Montag, 15. Januar 2007 20:29Barry MSFTModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    I did a search on my computer and found "Microsoft.VisualStudio.SourceSafe.Interop.dll" at location path "C:\Program Files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies". However, VC 6.0 did not have this DLL. "Microsoft.VisualStudio.SourceSafe.Interop.dll" did not exist until Visual Studio .NET. I'm not sure if there is a equivalent DLL in VC 6.0.
  • Montag, 15. Januar 2007 22:19Richard BergModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet

    Correct, the Interop DLL is a managed wrapper around the IVSS COM interface exported from ssapi.dll.  Managed (.Net) code didn't exist until VS 2002. 

    You can write VSS automation in native code by calling the COM interface directly.  Here are some references: http://www.codeproject.com/samples/SSBrowser.asp#OtherResources

  • Freitag, 30. März 2007 06:48Prasad Honrao TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    Thanks a lot Richard.

    The link was really helpful.

  • Mittwoch, 24. Juni 2009 17:07gerard_odonnell TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Enthält Code

    Just copy Microsoft.VisualStudio.SourceSafe.Interop.dll from:
     C:\Program Files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies
    to
     C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies

    It then shows up in the macros ide in Visual Studio 2008, under Project | Add Reference...

    Once you've added the reference, you can import it into your macro project and the Intellisense will show the constants e.g. for VSSFLAG_GETYES:

    Imports Microsoft.VisualStudio.SourceSafe.Interop
    
    ...
    
    sourceSafeFile.Get(csLocalFilePath, VSSFlags.VSSFLAG_GETYES + VSSFlags.VSSFLAG_TIMENOW)
    Haven't tried creating an object using the interop DLL, but it probably also works.
  • Donnerstag, 25. Juni 2009 03:00Catherine Sea TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Thanks for the information.

    Catherine Sea
    http://www.scmsoftwareconfigurationmanagement.com