How do I get ReSharper to handle namespaces appropriately with shared projects?
Here's the setup:
- Project A is a C# test project (csproj) named ProjectName.Tests with default namespace ProjectName.Tests
- Project B is a shared project (shproj) named ProjectName.Common with root namespace ProjectName.Common
- Project A has a shared project reference to Project B
- A file named SomeExtensions.cs is in Project B in a folder called Extensions, and the class within the file is in the namespace ProjectName.Common.Extensions
If I open the SomeExtensions.cs file the namespace is underlined, claiming "Namespace does not correspond to file location, should be: 'ProjectName.Tests.Extensions'". I watched a webinar of resharper 9 that seemed to claim this should be working and didn't see any warnings in the open files. Were they just turned off, or is there something I need to do to get this working? I absolutely love this feature and would hate to have to disable it for this solution.
I'm using Resharper 9.0 Build 9.0.2014204.190166 (trial because other than this we haven't seen a need for 9.0 yet) and Visual Studio 12.0.31101.0