Following these guides I have been able to setup a DotSettings file that only applies to a specific project:
Similarly to the original example I want to be able to apply different rules to my unit test projects. So far I have only been able to make this work by duplicating the rules across each new project DotSettings file. I would like to be able to have a single unit test settings file that each unit test project just references. This use case is normally supported in Resharper with layers (at least for solution wide DotSettings files). I haven't found any information on if injected layer references are supported in project specific setting files or not.
I have tried copying across the relevant "Default/Environment/InjectedLayers/FileInjectedLayer/" from a working solution file to a project file but haven't been able to get it to work. The structure of the solution wide and project wide settings files look very similar, both are WPF resource dictionaries so it seems plausible that it could work. The syntax of the InjectedLayer keys isn't very obvious, so I may have just done something wrong. Does anyone know if this is supported or if there is another way to get the same result?