顯示具有 Visual Studio 標籤的文章。 顯示所有文章
顯示具有 Visual Studio 標籤的文章。 顯示所有文章

2017年6月18日 星期日

【Visual Studio】IntelliSense popup then disapear immediately

在使用 VS 2015 撰寫 cshtml razor 時碰到自動完成提示顯示後又馬上消失的問題(Controller 等其他地方不會)。

2017年5月28日 星期日

【ASP.NET MVC】Encountered an unexpected error when attempting to resolve tag helper directive '@addTagHelper' ...

在 MVC Controllers 加入 具有檢視、使用 Entity Framework 的 MVC 5 控制器,View 端噴錯噴得亂七八糟的,但要是按執行還是很神奇的可以跑起來。

Encountered an unexpected error when attempting to resolve tag helper directive '@addTagHelper' with value 'Microsoft.AspNet.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNet.Mvc.Razor'. Error: Object reference not set to an instance of an object

The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' after add controller with view

The type or namespace name 'Mvc' does not exist in the namespace 'Microsoft.AspNet' (are you missing an assembly reference?)

還有
'_Page_views_home_index_cshtml.ExecuteAsync()': no suitable method found to override

2017年3月8日 星期三

2016年5月13日 星期五

【Visual Studio】Could not load file or assembly or one of its dependencies


在把 Lab 專案搬進公司 Solu,並改用其 dll(砍掉本來的參考,改引用它)之後噴的錯。

無法載入檔案或組件 'XXX.YYY.ZZZ, Version=1.2.3.4, Culture=neutral, PublicKeyToken=????????????????' 或其相依性的其中之一。 系統找不到指定的檔案。 

2016年4月6日 星期三

【Visual Studio】Microsoft Visual Studio has detected mismatched installed versions of language resouces

因為新專案需求裝了 VS2015,一如以往的去抓了英文包,結果一裝完就
Microsoft Visual Studio 偵測到不相符的語言資源安裝版本。針對不同語言安裝不同版本的產品(搶鮮版(Beta、RC、RTM)時就可盟發生這種狀況。請解除安裝所有舊版本和語言套件,或全部升級成最新版本。除非解決這個問題,否則microsoft visual studio無法啟動正常運作。
從此再也打不開VS,移除語言包內容也無效。


2016年1月8日 星期五

【Visual Studio】The breakpoint will not currently be hit. The source code is different from the original version


The breakpoint will not currently be hit. The source code is different from the original version.
目前無法叫用中斷點。 原始程式碼不同於原始版本。

2015年4月22日 星期三

【Visual Studio】Visual Studio 除錯

摘錄一些自己覺得有用的除錯技巧。
target version:VS 2013 Community(ENG)、VS 2013 Ultimate(ch-tw)、VS 2010 Ultimate

2015年4月21日 星期二

【Visual Studio】Visual Studio 快捷

不見得都是VS,有些其實是鍵盤本來就有功能,只是上課不見得會特別去教
target version: VS 2013