SharePoint Software Factory goes Visual Studio 2010 (Preview)

 

The first Beta versions of Guidance Automation Toolkit and Guidance Automation Extensions vor VS2010 are now available and we managed to migrate our SharePoint Software Factory to it quite easily.

SharePoint Software Factory 2010 (or possibly V3.0) will be made available asap. It will allow you to create SharePoint 2007 (MOSS/WSS3.0) applications in VS2010 and also migrate existing projects of SPSF in VS2008 to VS2010.

There are still some minor issues to be solved, but to give you a preview I added some screenshots.

Download current release (2.4.3) from CodePlex for free »spsf.codeplex.com

 

SPALM Presentation on MS InfoDays SharePoint

 

My colleague Torsten Mandelkow ( » Blog )performed several sessions in Germany together with Microsoft Germany regarding SharePoint development with Visual Studio 2010. Now 3 movies have been published by Microsoft and his session, which describes our SharePoint Application LifeCycle methodology (SPALM) is also available (unfortunately only in German, but I think you get the idea): » View movie

 

Announcing:SPSF SharePoint Software Factory at Codeplex

 

My team and I at Steria Mummert Consulting in Germany are specialized in establishing SharePoint development processes in companies, starting with SharePoint SPSF SharePoint Software Factory Guidancerequirements engineering, architecture, SharePoint code analysis, SharePoint testing and deployment processes. To automate this process we have developed several tools.

One of these tools is SPSF SharePoint Software Factory. This tool is an extension for Microsoft Visual Studio and helps developers to create SharePoint code much more faster and easier.

We are proud to release SPSF to the public. It can now be found as a project at Codeplex.com. You can download the tool and use it for your SharePoint projects. Source code is available.

We would be happy if you comment on codeplex and report issues you have with the solution.

SPSF Download: http://spsf.codeplex.com
SPSF Online Documentation http://spsf.spalmblogger.de/documentation
SPALM Blog: Information and Downloads http://www.spalmblogger.de
SPALM Forum on XING Social Network (currently only geman) https://www.xing.com/net/prifbf0efx/spalm/

Screenshots:
SPSF Integration in Visual Studio 2010
SPSF Integration in Visual Studio 2010
Example Recipe: Wizard to create sharepoint content types
Example Recipe: Wizard to create sharepoint content types

Available Recipes

Features
Empty Feature This recipe creates an empty farm, web application, site or web feature.
List and DocLib
Content Type Adds a content type to the current selected feature
List Definition Adds a list definition based on a local installed list definition
Content Type Binding Adds a binding between a content type and a list
Module Adds a module to the current selected feature to provision files
List Instance Adds a list instance definition to a feature.
Site Column Adds a site column to the current selected feature
Field Types
Simple Field Type Adds a field type to the project
Field Type with a complex value Adds a custom field type to store complex objects
Field Type with multiple columns Sample to store a address with multiple columns.
Field Type Choice Sample to store an employee status
Field Type Sample ISBN10 (Sample) Sample from MSDN for a custom field type to store a ISBN10 number including validation rule
Field Type Social Security Number (Sample) Sample from Ted Pattison for a custom field type to store social security number
Field Type for Flash Movie (Sample) Sample for a custom field type to render a flash movie
Field Type for Ratings (Sample) Sample for a custom field type to show a rating with graphics
Custom Actions
Custom Action for Content Type Adds a custom action to content type menu (ECB)
Custom Action for File Extension Adds a custom action for a specific extension (e.g. .docx)
Custom Action for ProgID (Document Type) Adds a custom action to a document type e.g. “InfoPath.Document”
Custom Action for List Adds a custom action to existing menus in a list view (Settings, Actions etc.)
Custom Action for List Toolbar Adds a custom action to a toolbar in a list (View, Edit, Display etc.)
Custom Action for Site Adds a custom action to a site
Custom Action for SiteActions menu Adds a custom action to the SiteActions menu
Custom Action Group Adds a custom action to a site
Hide Custom Action Hides an action of an item
Event Receivers
Item Event Handler Adds a event handler to react of event like ItemAdded, ItemUpdating etc.
List Event Handler Adds a event handler to handle events like FieldAdded, FieldUpdating etc.
Web Event Handler Adds a event handler to webs
Email Event Handler Adds a event handler to handle events like EmailReceived
Webs and Sites
Team Site Definition Adds a custom team site definition
Blank Site Definition Adds a custom blank site definition
Feature Stapling Adds a FeatureSitetemplateAssocation to the selected feature
Theme Adds a theme to the project
Theme Activation Adds code to activate a theme with a web feature
Publishing
Publishing Site Definition Adds a standard publishing site definition along with the required features.
Master Page Adds a master page current selected project.
Page Layout Adds a page layout to the current selected project.
Import
Import List Instance Import list instance
Import .wsp solution from local farm Imports an existing WSP solution from the local SharePoint farm into the project
Import Site Column Import a site column from the local SharePoint into the current selected feature
Import List Template Import list template
Import Content Imports content from SharePoint into the project
Import Content Type Imports an existing content type from a given SharePoint site
Import .wsp solution Imports an existing WSP solution file into the project
Application Pages
Application Page Add a layouts page to the project inherited from LayoutsPageBase
Administration Page Add an administration page to the project inherited from LayoutsPageBase
Unrestricted Layouts Page Add a unsecured layouts page to the project inherited from LayoutsPageBase
ASP.NET
Create WSDL and DISCO Creates the wsdl and disco file
Webservice Adds a ASP.NET web service
Administration Web Service Adds a ASP.NET web service for administration
Delegate Control (.ASCX) Adds a delegate template with a asxc control
Delegate Control (.CS) Adds a delegate template with a webcontrol (.cs)
Http Handler Adds a http handler to the project and a feature to deploy the web.config modifications for the http handler
Http Module Adds a http module to the project and a feature to deploy the web.config modifications for the http handler
WebParts
SharePoint Web Part Adds a web part to the project derived from Microsoft.SharePoint.WebPartPages.WebPart
ASP Web Part Adds a web part to the project derived from System.Web.UI.WebControls.WebParts.WebPart
Ajax Web Part Adds a Ajax web part to the project
Visual Web Part Adds a smart part to the project
Simple Filter Consumer Web Part Adds a filter web part to the project
Filter Provider Web Part Sample filter provider web part to provide multiple values (MSDN sample)
Filter Consumer Web Part Sample filter consumer web part to consumer multiple values (MSDN sample)
Workflows
Sequential Workflow (ASPX Forms) Adds a sequential workflow with optional ASPX forms to the project
Advanced
Minimal CAS Adds a minimal Code Access Security policy
Deployment
Deploy Solution(s) Deploys the selected wsp solution(s) to the local SharePoint farm.
Redeploy Solution(s) Redeploys the selected wsp solution(s) to the local SharePoint farm (complete undeploy before a deploy).
Undeploy Solution(s) Undeploys the selected wsp solution from the local SharePoint farm (retract and delete solution).
Upgrade Solution(s) Upgrades the selected wsp solution in the local SharePoint farm.
Quick Deploy
Copy Assembly Copies the assembly of the selected project to GAC.
Copy Both Copies the assembly of the selected project to GAC and all files in folder “12″.
Copy to SharePoint Hive Copies all files in project folder “12″ or “14″ to the SharePoint hive on the local machine.
Debugging
Attach to Worker Process Starts the debugging of the selected project and attaches the debugger to the selected w3wp worker process (IIS).
Recycle App Pool Recycles the selected application pool in IIS.
IIS Reset Performs an iisreset on the local maschine.
Attach to owstimer.exe Starts the debugging of the selected project and attaches the debugger to the ows timer process (OWSTIMER.EXE).
Restart owstimer.exe Restarts the owstimer service.
STSADM
stsadm activatefeature Activates the selected feature in the selected site or web.
stsadm deactivatefeature Deactivates the selected feature in the selected site or web.
stsadm uninstallfeature Uninstalls the selected feature.
stsadm copyappbincontent Runs stsadm -o copyappbincontent.
stsadm execadmsvcjobs Runs stsadm -o execadmsvcjobs to run all pending deployment jobs.
Open stsadm Prompt Opens a prompt to enter stsadm commands manually.
CodeAnalysis
Run SPCop Checks to SharePoint project for violations of best practices and recommendations
Run SPDisposeChecker Runs SPDisposeChecker for selected project.
Helpers
Check Broken Fields Checks a site collection for fields which are not properly installed.
Delete Failed Deployment Jobs Deletes failed deployment jobs in the local SharePoint farm.
Get AssemblyName Displayes the full assembly name of the current selected project.
Get SharePoint Version Displays the installed SharePoint version on the local machine
Open CA Solutions Displays the web page “Solution Management” in SharePoint Central Administration.
Open Debugging Webapp Opens the debugging webapplication of the project in the browser.
 

QNAP: Activate root account on NAS

 

To activate the root account on a QNAP NAS perform following steps

  1. open QNAP Administration frontend in browser
  2. activate ssh under Network Services –> SSH/Telnet
  3. install Optware IPKG as described on http://wiki.qnap.com/wiki/Install_Optware_IPKG
  4. ssh to your NAS
    on a MAC open terminal and type

    ssh 192.168.1.254

    where the ip is the ip of your QNAP NAS
    on windows use putty to connect

  5. Enter your admin account name and password
  6. update ipkg
    ipkg update
  7. install sudo
    ipkg install sudo
  8. open passwd file
    vi /opt/passwd
  9. copy line
    admin:x:0:0:administrators:/root:/bin/sh

    and change it to

    admin:x:0:0:administrators:/root:/bin/sh
  10. write file to disk (see infos about vi below)
  11. open shadow file
    vi /opt/shadow

    copy line (the encrypted password will look different for you)

    admin:$1$$asNYu/ITfatrAcFUwgEasLe1:14233:0:99999:7:::

    and change it to

    root:$1$$asNYu/ITfatrAcFUwgEasLe1:14233:0:99999:7:::
  12. write file to disk (see infos about vi below)
  13. open sudoers file
    visudo
  14. copy
    root    ALL=(ALL) ALL

    to

    admin ALL=(ALL) ALL
  15. write file to disk (see infos about vi below)

Now you can sudo from your admin account and login with the root account which has the identical password as your admin account.

How to use vi:
press i for insert mode
press esc to exit inser mode
press : for command mode
enter wq and return (wq = write and quit)

 

Get parameters from querystring with javascript in SharePoint

 
To retrieve the querystring parameters through javascript on a SharePoint site you can easily utilize the JSRequest object of MOSS
//you have to call the EnsureSetup method beforhand
JSRequest.EnsureSetup();

//i.e get a query string parameter default.aspx?id=5 with id and the method returns 5
id= JSRequest.QueryString["id"];

The object allows also to retrieve the page naem and the current path

//get the current file name. i.e - "default.aspx"
filename= JSRequest.FileName;

//get the current path name. i.e - /site/default.aspx"
pathname= JSRequest.PathName;
←Older