Visual Studio for Macのソリューションエクスプローラにてファイルが重複表示される
Windowsで作成したソリューションをMacのVisual Studioで開いたら
SPA(Angular5)のプロジェクトのファイルが重複表示されたお話。
環境
- macOS High Sierra(10.13.5)
- Visual Studio for Mac(7.5.2)
現象
↓こんな感じです。
解決方法
csprojファイルのDon't publish ~
ってコメント箇所に以下を追加
<None Remove="$(SpaRoot)**" />
具体的にはこんな感じです。
<ItemGroup> <!-- Don't publish the SPA source files, but do show them in the project files list --> <Content Remove="$(SpaRoot)**" /> <None Remove="$(SpaRoot)**" /> <None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" /> </ItemGroup>
無事、解消されました。