Whenever I wrote a custom tile that generate an exception, it crashes my sidebar and taskbar together. Is there a way to prevent this from happening? It makes it very tedious to debug my tile code. Is there something I miss on debugging a tile code?
Chee Pin
--
Please reply in newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Chee Pin" <anon...@discussions.microsoft.com> wrote in message
news:B3C2C956-8586-483C...@microsoft.com...
Until the experience gets better for debugging, the way I debug my tile is
something like the following:
1. Create a Longhorn Tile project.
2. In the same directory, copy TileName.csproj to TestApp.csproj.
3. In TestApp.csproj change
<Property TargetType="Library"/>
to
<Property TargetType="Application"/>
In <ItemGroup> add
<Item Type="ApplicationDefinition" Include="MyApp.xaml"/>
4. In the same directory, create MyApp.xaml with the following contents:
<NavigationApplication xmlns="http://schemas.microsoft.com/2003/xaml"
StartupUri="TileForeground.xaml"/>
5. To build and run, type the following in the Longhorn SDK command prompt:
cd theProjectsDirectory
msbuild TestApp.csproj /t:build;run
This isn't a perfect test shell for a tile, but it will have a better
debugging experience for now.
Rob Relyea, PM, Avalon Team, November 4, 2003
[End Quote]
Cheers,
Stuart Celarier, Fern Creek