Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Refresh project linked files without reloading project

$
0
0

Hi,

I've configure a SubProject.csproj to recursively linked all .cs files in a BaseProject folder, as follow:

    <Compile Include="..\BaseProject \**\*.cs" Exclude="..\BaseProject \bin\**;..\BaseProject \obj\**">
      <Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
    </Compile>


Problem is, Visual Studio 2012 doesn't react to file creation / delete as expected, only if I unload/reload the project, which is clearly not what I want. In regard to the Refresh button in Solution Explorer, as MSDN clearly states, "Refresh is not applicable to link-based projects because they contain items that might or might not be there."

That being said, is there any way to achieve this without manual file linking?


Viewing all articles
Browse latest Browse all 21115

Trending Articles