开发者

Can Resharper learn to recognize linked files when refactoring?

Is it possible to make resharper in开发者_运维技巧clude linked files when refactoring?

Consider a solution setup with the following projects:

Backend
Services //Depends on 'Backend' and 'Services.Shared'
Services.Shared
Services.Shared.Silverlight //This project links all sourcecode in 'Services.Shared'
Frontend //Depends on 'Services.Shared' through 'Services.Shared.Silverlight'

When renaming a class in the 'Services.Shared' project, Resharper makes sure all is good and well in 'Services' and updates any references, but 'Frontend' which "indirectly" depends on 'Services.Shared', is not updated along with the refactoring.

Im aware that there is also problems with renaming of the file during refactor, since Resharper will rename the file in 'Services.Shared' making the link in 'Services.Shared.Silverlight' invalid.

But im wondering what people do, if anything at all, to make refactoring less painfull in this situation?


I'd say if it doesn't work now, that's an oversight that has been logged: http://bit.ly/ACucSI. This seems related: Visual Studio Linked Files Directory Structure

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜