Chris Gray: Windows Home Server Extensibility Model - Building Add-Ins
- Posted: Nov 06, 2007 at 7:27 AM
- 34,836 Views
- 12 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
You said that there was going to be a client side SDK... only in your example you were using WHSInfoClass from Microsoft.HomeServer.SDK.Interop.v1.dll to add and remove notifications while completely on the server... to confirm... before to long you'll be shipping a similar ability that will work on the client side?
Also... get to the blogging Chris! I feel lonely as I seem to be the only developer blogging about development on WHS.
Chris sorta "mis-spoke" and "let the cat out of the bag" when he talked about the client-side SDK stuff.
We are working on it.
We have not announced when it will be released in pre-release form.
We have not announced when it will be released in the product.
So all you can do for now is sit tight and be patient for a bit... Oh, and feel free to post ideas of what you would like to see in our SDK (client side and otherwise) in the Home Server Forums on www.serverplayground.com.
Thanks for your support!
-cek
Love to see more of these "How TO" talks for Developers.
That's what you think
When left to my own devices I tend to do anything bit sit tight and instead make new to make due... hence this latest post of mine about adding better intellisense support to the WHS development experience.
While you wait for him... feel free to take a look at this Visual Basic add-in template I've created as part of my Windows Home Server Developer Tips blog series.
In order to use the template, simply copy it to one of the following directories to make it work in Visual Studio 2005 (or Express):
Vista:
%UserProfile%\Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Basic\
XP:
%UserProfile%\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Basic\
Once there, simply launch Visual Studio and bring up the New Project dialog, select Visual Basic and you should see the Home Server Add-In template listed under My Templates (with my wonderful icon), type in a name you want and hit OK and you are on your way.
Two words of warning though:
First up, due to a Visual Studio bug (which they claim is fixed in a post beta 2 version of 2008), you will need to change the assembly name of your project before you can deploy it (to C:\Program Files\Windows Home Server\ on your WHS).
By default Visual Studio gives your assembly the same name as the project... instead you'll need to change it's name to:
HomeServerConsoleTab.<Safe Add-in Name>
Where <Safe Add-in Name> is the same name as the last namespace listed in your root namespace.
The other warning is that you will need to copy HomeServerExt.dll from your Home Server to your development machine and reference it in order to make the add-in you create with this template build.
I'll be writing more up on this on Monday along with some pictures.
here is the code
I put it into the Channel 9 Sandbox

http://channel9.msdn.com/ShowPost.aspx?PostID=354555
have fun and please tell me if you have problems or suggestions
for what it's worth there are two samples in this .zip - one C# sample of our notification infrastructure (great for sending errors messages from your code into the Home Server Admin console and client computer task tray).
the other is a VB.NET sample for creating a tab into the Home Server admin console - dont forget that if you create your own tab you can access it from the internet using the Home Servers Remote Access feature. we've found this REALLY cool for home automation
You are sooo gullible.
I prefer the terms 'driven', 'easily bribed', 'hears only what he wants to hear'.
Remove this comment
Remove this thread
close