Tuesday, December 22, 2015

Detrermine which worker process to attach to while debugging SharePoint Webparts

With number of webappliations on your farm and their respective application pools, it becomes difficult to find out which worker process to attach to when you want to debug your webpart.

I assume you know how to get the name of application pool from your web application.

  • Once you do, run cmd in admin mode.
  • change directory to c:\Windows\System\Inetsrv
  • and run appcmd list wp

This will list out the worker process running for all the web applications. In my case its the following:




Then in visual studio,
  • Set breakpoints
  • deploy your solution
  • click on debug 
  • then click on attach to process and find out the process with the id which is 4316 in my case.

Thursday, September 3, 2015

Office UI Fabric and SharePoint Add-ins

Microsoft has released first version of Office UI Fabric.  Check out the announcement blog post here : Introducing Office UI Fabric 

WHAT IS OFFICE UI FABRIC ?

 

Office UI Fabric is a responsive, mobile-first, front-end framework that enables you to create web experiences by using the Office Design Language. It is implemented with a set of fonts and with CSS classes that provide UI components, icons, animation, and the official Office color palette.

If you have experience working with bootstrap, you will find it a lot easier to work with office UI Fabric as well. It is built on the same lines and divides the page into a 12 column grid layout thereby making it responsive across devices. In addition to that you can now use the same icons, font, animation etc used in office.


HOW TO USE IT IN SHAREPOINT ADD INS?

 

  •  Since it is dependent on jquery , you would need to include it in your development project
  •  Include css and js files as per the components you want to use
and you are good to go.

You can find further details here : Fabric Docs
 

SHAREPOINT THEMES AND OFFICE UI FABRIC


To Use SharePoint themes, we have to make explicit calls to include host web css files in out project . I will soon post an article on how to go about that.
And every time the host web's theme is changed , add-in's theme is changed as well.

But its not true in case of office UI Fabric and add-in's theme doesn't change with the change of host web theme.

It is recommended not to mix the two.