CleanUp Code does not work for dependend *cs files
Hi,
I have some dependent files in my VisualStudio2008 project. And these dependent files cannot be CleanUp by Resharper 4.5. Is there any setting that avoid the cleanUp ?
The dependency is defined in project file as:
<Compile Include="Tests\Mvc\Views\GenericListViewTests\TestObjects\Data\ListTesta.cs" />
<Compile Include="Tests\Mvc\Views\GenericListViewTests\TestObjects\Data\FilterTesta.cs">
<DependentUpon>ListTesta.cs</DependentUpon>
</Compile>
So FilterTesta.cs is shown as a sub file of ListTesta.cs (see attachment).
The CleanUp works for ListTesta.cs.
The CleanUp does not work for FilterTesta.cs.
Do you have any idea why the CleanUp not works for the dependent file ?.
Thanks,
Markus
Nachricht changed by Markus Messerschmidt
The error message is shown in second attachment.
Attachment(s):
Dependent file.JPG
Error message in status bar of VS2008.JPG
Please sign in to leave a comment.
Hello Markus,
At the moment ReSharper ignores dependent files during cleanup, since such
files are usually generated by a tool (Windows Forms designer for instance)
and should not be touched. There's no way to enable code cleanup for dependent
files. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Oh this are bad news for me. I use my own dependency structure for a high structured class tree (many levels, few (1-3) classes per level).
So can use either dependency structure and not working cleanup or folder structure and working cleanup. I will see.
Thanks for the fast answer
Markus