If you’re planning to join us online for the developer launch of Office and Vista, here’s some information to help you get ready in plenty of time. As part of the activities, we’ll be giving you the chance to build a couple of simple applications to get some hands-on experience with Vista, Office and .NET Fx 3.0. If you want to take part, I’ve listed below the bits you’ll need.
- Of course it goes without saying (but I’ll say it anyway)
- We highly recommend you have your machine fully patched through Microsoft Update before beginning this exercise
- Do not deploy or develop these solutions in a production environment
- Make backup copies of any important data or applications prior to beginning these exercises or installing any software
- Please read the any installation / download notes carefully (eg note that VSTO SE does not support both Office 2003 and 2007 installed at the same time)
- Both Exercises
- Ideally Windows Vista (you should be able to build this on Windows XP SP2 / Windows Server 2003 but it’s not been tested)
- Visual Studio Pro (You can get a trial from: http://www.microsoft.com/emea/msdn/visualstudio/enxu/getthetrials)
- If you’re not running Vista you need the Microsoft .NET Framework 3.0 Redistributable Package (http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en)
- Windows SDK for Vista and the .NET Framework 3.0 (http://www.microsoft.com/downloads/details.aspx?FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en)
- Visual Studio 2005 Extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP (http://www.microsoft.com/downloads/details.aspx?FamilyId=F54F5537-CC86-4BF5-AE44-F5A1E805680D&displaylang=en)
- Office Exercise Only
- Office 2007 (You can get a trial from: http://ukireland.trymicrosoftoffice.com)
- Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System (http://www.microsoft.com/downloads/details.aspx?familyid=5E86CAB3-6FD6-4955-B979-E1676DB6B3CB&displaylang=en)
- In addition, for the Office exercise you will need to carry out the following steps once you’ve created your new Office Add-in Project (see the penultimate step – you need a project specific URL):
- VSTO’s trust model requires that your assembly is explicitly granted full trust through the CAS (Code Access Security) policy on the local machine. When you create a VSTO project, the wizard automatically adds a new code group to grant full trust to your add-in assembly based on URL evidence.
- Because of the strict security model implemented by VSTO, we also have to grant full trust to the app.config file for WCF to be able to load its configuration.
- Start the “Microsoft .NET Framework 2.0 Configuration” tool by typing “mscorcfg.msc” at a command prompt
- Navigate to My Computer → Runtime Security Policy → User → Code Groups → All_Code → VSTOProjects
- (If the VSTOProjects node doesn’t exist, create it with a code condition of “All Code” and a permission set of “Nothing”)
- Right-click the VSTOProjects node and select “New…”
- Enter a name for your new code group such as “MyOfficeConfig” and click “Next”
- Set the condition type to “URL”
- Set the URL to be the full URL to the app.config file for your assembly – something like “C:\Users\username\Documents\Visual Studio 2005\Projects\OfficeLaunchClient\OfficeLaunchClient\bin\Debug\OfficeLaunchClient.dll.config” – and click “Next”
- Use existing permission set “Full Trust” and click “Next” and click “Finish”
That’s it. If you’re fortunate enough to have a scratch partition / machine to play with that’s a good way to go. More information on the exercises will be published as part of the launch activity on 19th/20th January.