Wednesday, November 11, 2009 #

Cleanup your Features…

Many times, your coding, etc. SharePoint features.  You’ll code something up, deploy, activate, etc. 

Using WSP builder, while a convenient tool, it also leaves some orphans around.  It forcibly deletes the solution leaving any place it’s activate with some “broken features”.

Fortunately, there’s a tool to help you cleanup those orphans.

http://featureadmin.codeplex.com/

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, November 11, 2009 8:34 AM | Feedback (0)

Minor update to the WSS Command Prompt…

 

Take the following and paste into a VBS file – then run.

Still need to choose the Link, then set the “Run as administrator” when UAC is on…

 

Set Shell = CreateObject("WScript.Shell") 
Set Env = Shell.Environment("PROCESS") 
DesktopPath = Shell.SpecialFolders("Desktop") 
Set link = Shell.CreateShortcut(DesktopPath & "\WSS CMD.lnk") 

cssHive = Env("CommonProgramFiles") & "\Microsoft Shared\web server extensions\12" 
currentPath = RTrim(Replace(WScript.ScriptFullName, WScript.ScriptName, "")) 
envBatFile = "setWssPath.cmd" 

CreateBatFile currentPath & setWssPath & envBatFile, cssHive 

link.Arguments = "/k " & " " & Chr(34) & currentPath & envBatFile & Chr(34) 
link.Description = "WSS Command Prompt" 
link.HotKey = "CTRL+SHIFT+W" 
link.IconLocation = "%SystemRoot%\system32\SHELL32.dll,94" 
link.TargetPath = "%comspec%" 
link.WindowStyle = 1 
link.WorkingDirectory = cssHive 
link.Save 
Sub CreateBatFile(fileName, cssHive) 
    Set fso = CreateObject("Scripting.FileSystemObject") 
    Set file = fso.CreateTextFile(fileName, True) 
    file.WriteLine("@SET PATH=%PATH%;" & cssHive & "\bin") 
    file.WriteLine("@ECHO WSS CMD Shell - Shawn Cicoria") 
    file.WriteLine("CD " & cssHive)

End Sub
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, November 11, 2009 7:59 AM | Feedback (0)

SharePoint 2010 Developer | Learn | Channel 9

Ted Pattison and Andrew Connell have a bunch of Learning SharePoint 2010 content up on Channel 9.

I can say, having attended Ted’s classes in the past, he’s one of the best to learn SharePoint development from.  He’s been at the forefront of getting to the reality of how to build things while working with the guidelines, rules, constraints of a “managed” platform such as SharePoint. 

If you get a chance take a look at these videos – even better, if you can attend in person, check out http://www.criticalpathtraining.com/ for classes.

SharePoint 2010 Developer | Learn | Channel 9

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, November 11, 2009 4:36 AM | Feedback (0)