I have two versions of the project. One for Silverlight and one for .NET. The SL project has the vast majority of the code base in it. I want to globally add all the files from the SL project to the .NET version as linked files. I managed to do this successfully in the csproj file for the .NET version:
<Compile Include="..\MyProj.Common.SL\**\*.cs" Exclude="..\MyProj.Common.SL\Properties\**">
Unfortunately, this adds all the files right to the root of my project ... so that I get a long unreadable list of related files in a .NET project. I really really don't want to maintain the entire structure of duplicate directories manually and handle directory name changes and file name changes and something else.
So, is there a way for Visual Studio to maintain the directory structure when adding related files under the template above? Or at least a way to make it merge all related files together into a directory in a .NET project, such as MyProj.Common.SL.Links?
The closest I came is to set <Visible>false</Visible> under the <Compile> , which effectively removes a long unreadable list from 300+ files ... but, unfortunately, this forces Resharper, which no longer sees these the files are valid and this is crazy for all projects that reference a .NET project. If I could find a way to get Resharper not to get confused, that would be an acceptable solution too ...
Any suggestions?
Thanks.
source share