2015-10-13 59 views
4

的Visual Studio 2015年並沒有忽視bower_components文件夾雖然它忽略node_modules,所以我不知道什麼是錯。的Visual Studio 2015/TFS 2013在ASP.NET沒有忽視bower_components 5個項目

這是我project.json的

{ 
    "webroot": "wwwroot", 
    "version": "1.0.0-*", 

    "dependencies": { 
    "Microsoft.AspNet.Mvc": "6.0.0-beta7", 
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta7", 
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta7", 
    "Microsoft.AspNet.StaticFiles": "1.0.0-beta7" 
    }, 

    "commands": { 
    "web": "Microsoft.AspNet.Hosting --config hosting.ini" 
    }, 

    "frameworks": { 
    "dnx451": { } 
    }, 

    "exclude": [ 
    "wwwroot", 
    "node_modules", 
    "bower_components" 
    ], 
    "publishExclude": [ 
    "node_modules", 
    "bower_components", 
    "**.xproj", 
    "**.user", 
    "**.vspscc" 
    ] 
} 

我怎麼能強迫VS 2015年從項目的樹隱藏bower_components文件夾中的內容?

我也在TFS 2013中苦苦掙扎,因爲我無法忽略被修改的文件夾。我嘗試過.tfignore,但沒有奏效。

+1

我有完全相同的問題。 node_modules和bin文件夾被刪除,但bower_components保留。這是一個巨大的問題,因爲我使用的resharper,intellisense和其他工具不斷想要「處理」這個文件夾,使VS無用。 –

+0

如果您使用Git,則需要將其提供給您的gitignore文件。有人說,涼亭組件應該在其他版本控制的版本控制上。取決於從github刪除軟件包會發生什麼情況:D –

+0

hi @MattOverall,請查看下面的答案。 –

回答

3

此問題現在通過使用ASP.NET 5 beta 8版本中提供的「從解決方案資源管理器隱藏」選項「修復」。

enter image description here

enter image description here

請按照this link以獲取更多信息。請檢查該頁面上的「ASP.NET 5的新Visual Studio 2015功能」部分。

按照this link下載更新,並安裝它的Visual Studio 2015年

+0

感謝您的更新。很高興知道我沒有錯過任何明顯的事情。你偶然知道bin和node_modules是如何被隱藏的嗎? –

+0

這是不明顯,他們如何隱藏,但似乎有一個預先定義的文件夾VS2015忽略像bin和node_modules設計 –

+1

也許我不明白答案,但這只是隱藏在解決方案資源管理器中的文件列表。它們仍然不被TFS忽略,並且仍然被添加到待處理的更改中。 – Bas

相關問題