2012-02-27 45 views
1

我有一個Visual Studio 2010 C++項目。以前一切工作正常,但現在當我創建新文件時,他們在角落裏有奇怪的小箭頭。我檢查過,他們是而不是鏈接,這些文件位於硬引用位置。我已經完成了項目文件和設置,並且無法確定它們與我的正常,好的文件之間的差別。但是,當我嘗試移動這些文件以重新組織我的項目時,Visual Studio將不會移動它們。我怎麼解決這個問題?VS2010項目中的不可移動文件

enter image description here

這裏的(部分)項目文件:

<ItemGroup> 
    <ClInclude Include="Interfaces\OS\OS.h" /> 
    <ClInclude Include="Interfaces\Render\Math\colour.h" /> 
    <ClInclude Include="Interfaces\Render\Math\Point.h" /> 
    <ClInclude Include="Interfaces\Render\Math\rectangle.h" /> 
    <ClInclude Include="Interfaces\Render\render.h" /> 
    <ClInclude Include="Implementations\OS\Windows\Context.h" /> 
    <ClInclude Include="Implementations\OS\Windows\Window.h" /> 
    <ClInclude Include="Implementations\OS\Windows\Windows.h" /> 
    <ClInclude Include="Implementations\Render\Direct3D9\Context.h" /> 
    <ClInclude Include="Implementations\Render\Direct3D9\Direct3D9.h" /> 
    <ClInclude Include="Implementations\Render\Direct3D9\Font.h" /> 
    <ClInclude Include="Implementations\Render\Direct3D9\Label.h" /> 
    <ClInclude Include="Implementations\Render\Direct3D9\Scene.h" /> 
    <ClInclude Include="Implementations\Render\Direct3D9\Sprite.h" /> 
    <ClInclude Include="Implementations\Render\Direct3D9\Texture.h" /> 
    <ClInclude Include="UI\Context.h" /> 
    <ClInclude Include="UI\Controls\Button.h" /> 
    <ClInclude Include="UI\Controls\Context.h"/> 
    <ClInclude Include="UI\Division.h" /> 
    </ItemGroup> 

正如你可以看到,所有的頭文件都是同樣上市,但只有其中的一些是不可移動的。

+0

這可能是一個愚蠢的問題......如果打開.vcproj文件,這些文件如何包含在項目中? (也就是說,你確定他們沒有通過添加現有文件對話框中的「作爲鏈接添加」添加嗎? – xxbbcc 2012-02-27 08:24:19

+0

@xxbbcc:我像其他所有時間一樣使用「添加新項目」,並且它們被完全列爲 – Puppy 2012-02-27 08:25:27

+0

你可以發佈項目文件的相關部分嗎? – RvdK 2012-02-27 08:27:56

回答

5

顯然,這是特別的東西。如果根文件夾命名爲「UI」,則只會出現此問題。所有其他文件夾名稱按預期工作。重新創建文件夾和文件沒有任何作用,但如果根文件夾沒有命名爲「UI」,那麼一切正確。去粉筆這一個到一個Visual Studio錯誤。

+0

好偵探工作 – sehe 2012-03-28 08:19:05

+0

您是否在Connect上報告?我不得不承認一種病態的好奇心,他們需要關閉多長時間,無論是WONTFIX還是BYDESIGN – jalf 2012-03-28 09:27:44

+0

@jalf:不,我從來沒有報道過Connect,這是浪費時間。儘管如此,如果你想成爲一個受虐狂的人,可以自由地竊取它並自己報告:P – Puppy 2012-03-29 05:05:36