visual studio 2008 - Get VS2008 to "tree-indent" partial classes (like code-behind files) -


I have created a multi-platform project, and everything works well except for the same thing when I use a specific platform file ServiceImpl.Desktop.cs

This does not show /

(What I mean to check the last image in the article) ..

How to read any idea "VS 2008" to do this? It works like usual with the usual XAML and code-back ...


OK, the answer works perfect for the general situation. Now, there is still a small problem with the silver lights project. The file is basically located in the desktop project, so the solution works, however, if the "parent" file is a link, then it starts creating a problem (has no effect) ... See this code:

< Pre> & lt; Include compile = ".. .. messages \ services \ MessagingService.cs" & gt; & Lt; Link & gt; Service \ MessagingService.cs & lt; / Link & gt; & Lt; / Compiled & gt; & Lt; Compile = "attribute \ assemblyInfo.cs" /> & Lt; Compile Include = "Services \ Messaging Services: Silverlight CS" & gt; & Lt; DependentUpon & gt; MessagingService.cs & lt; / DependentUpon & gt; & Lt; / Compiled & gt;

Any ideas for this situation?

This is not always done automatically (though it spots things like that. ), But you can edit CSPRGs by hand to do it (this is just XML). There are also some add-ins available that provide it, but what I use has been removed. You want DependentUpon ...

  & lt; Include Compilation = "ServiceImpl.cs" / & gt; & Lt; Include Compilation = "ServiceImpl.Desktop.cs" & gt; & Lt; DependentUpon & gt; ServiceImpl.cs & lt; / DependentUpon & gt; & Lt; / Compiled & gt;  

(Note that they are in the same folder, you do not specify the folder in DependentUpon)


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -