The name of the default page in a VS2008 for SilverLight application is TestPage.html, this is really annoying so I changed it. BUT changing the name of this page wasn’t easy, you can change TestPage.html’s name in Solution Explorer, but you can’t rename TestPage.html.js. (And if you do it manually, the link between the two files in Solution Explorer is lost.)
This is how I did it:
1. go out to the file system and rename the files.
2. open the SLN file in Notepad and change this:
<ItemGroup>
<None Include=”TestPage.html” />
<None Include=”TestPage.html.js”>
<DependentUpon>TestPage.html</DependentUpon>
</None>
</ItemGroup>to this:
<ItemGroup>
<None Include=”Default.html” />
<None Include=”Default.html.js”>
<DependentUpon>Default.html</DependentUpon>
</None>
</ItemGroup>
Once you open it in vs2008 it will be properly linked!




0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.