2018年11月6日 星期二

安裝WideWorldImporters範例資料庫


Tool:SQL Server Management Studio V17.3
DB:SQL Server 2014

OS:Windows 10

安裝WideWorldImporters範例資料庫筆記

2018年9月4日 星期二

在VS2017 使用Library Manager - 2

Tool:Visual Studio Enterprise 2017 15.8.2
SDK:.NET Core SDK 2.1.401
OS:Windows 10

在Visual Studio 2017 15.8.2版中,已經提供了Library Manager,可用於下載前端開發套件。在目前的ASP.NET Core專案中,若要利用Library Manager下載jQuery,可以參考以下步驟。

2018年6月7日 星期四

The ASP.NET developer certificate is not installed


Tool:Visual Studio Enterprise 2017 15.7.3
SDK:.NET Core SDK 2.1.3
OS:Windows 10

ASP.NET Core 2.1版之後,預設建立專案時,可以選擇支援HTTPS。手賤,將憑證刪掉了….。

2018年6月4日 星期一

Cannot run when setup is in progress

Tool:Visual Studio Enterprise 2017 15.7.2
SDK:.NET Core SDK 2.1.300 -RC1
OS:Windows 10


執行Visual Studio 2017 ,出現錯誤:"Cannot run when setup is in progress"

image

2018年6月1日 星期五

關掉Application Insights Telemetry訊息

Tool:Visual Studio Enterprise 2017 15.7.2
SDK:.NET Core SDK 2.1.300 -RC1
OS:Windows 10

每次透過Visual Studio 除錯時,輸出(Output)視窗總是會印出許多Application Insights的訊息,由於專案中並沒有使用到Application Insights的功能,大量無用的訊息徒增困擾,可以將之關閉:

Application Insights Telemetry (unconfigured): {"name":"Microsoft.ApplicationInsights.Dev.Message…

2018年5月29日 星期二

升級ASP.NET Core 2到2.1.0版

Tool:Visual Studio Enterprise 2017 15.7.2
SDK:.NET Core SDK 2.1.300 -RC1
OS:Windows 10

以下是將ASP.NET Core 2版MVC專案升級到2.1.0版筆記。

2018年5月25日 星期五

在VS2017 使用Library Manager


Tool:Visual Studio Enterprise 2017 15.7.2
SDK:.NET Core SDK 2.1.300 -RC1
OS:Windows 10

將Visual Studio Enterprise 升級至15.7.2版,似乎還看不到整合Library Manager工具的圖型介面,在目前的ASP.NET Core專案中,若要利用Library Manager下載jQuery與Bootstrap套件,可以參考以下步驟:

Bye ! Bower

Tool:Visual Studio Enterprise 2017 15.7.1
SDK:.NET Core SDK 2.1.300 -RC1
OS:Windows 10

最近更新Visual Studio Enterprise 2017 到15.7.1版之後,發現在Visual Studio 2017之中已經不提供新增Bower Configuration File範本,找不到在15.5.1版中"Manage Bower Packages",新增"Bower Configuration File" 這些選項或畫面:

2018年5月15日 星期二

新.NET web framework - Blazor


Tool:Visual Studio Enterprise 2017 15.7.1
SDK:.NET Core SDK 2.1.300 -RC1
OS:Windows 10
Other:ASP.NET Core Blazor Language Services


Blazor是一個新的.NET web framework,取代以網使用JavaScript語言,以WebAssembly標準為基礎,改用C#/Razor、HTML以建立執行在瀏覽器上的用戶端應用程式,有了Blazor就可以使用.NET進行全端開發(full stack web development)。


Browser + Razor = Blazor

是否有一天會取代掉JavaScript呢?讓我們看下去。

以下步驟為建立Blazor網站筆記。


2018年4月19日 星期四

檢查.NET Core SDK版本

Tool:Visual Studio Enterprise 2017 15.6.6
.NET Core 2.1.104
OS:Windows 10


若要檢查目前的機器安裝的.NET Core SDK版本,可以使用以下方式:

2017年12月27日 星期三

Forms驗證與HttpClient

Tool:Visual Studio 2017 15.5.1版
OS:Windows 10
.NET Framework 4.6
ASP.NET Web Forms

叫用Web API驗證失敗產生的錯誤訊息

No MediaTypeFormatter is available to read an object of type 'String' from content with media type 'text/html'.

2017年12月26日 星期二

VS2017 「New」-「Web Site」選單不見了


Tool:Visual Studio 2017 15.5.1版
OS:Windows 10

以前在Visual Studio 可以選擇「File」-「New」-「Web Site」,開啟「New Web Site」對話窗,建立網站。

2017年12月7日 星期四

使用MVC Action回傳Bootstrap Dialog內容

Tool:Visual Studio 2015 Update 3
OS:Windows 10
Bootstrap 3.3.7、jquery-1.10.2.js

在MVC5專案中使用Action動態回傳Bootstrap對話盒內容筆記。

2017年10月23日 星期一

SQL Server 2017 Express 安裝筆記


Tool:SQL Server 2017 Express
OS:Windows 10

以下為SQL Server 2017 Express與SQL Server Management Studio安裝筆記。

2017年10月20日 星期五

在ASP.NET Core使用SqlClient


Tool:Visual Studio Enterprise 2017 15.3
.NET Core 2.0
OS:Windows Server 2016 Datacenter

.NET Core 2.0版已經可以使用許多以往在.NET Framework 4.X版System.Data.SqlClient命名空間下資料存取的相關類別了,例如DataTable、DataReader等等,可以讓你從ASP.NET Core直接透過System.Data.SqlClient命名空間下的類別存取資料庫資料。以往怎麼寫,現在就怎麼寫。

2017年10月3日 星期二

Promise與jQuery筆記

Tool:Visual Studio 2015 Update 3
OS:Windows 10
ECMAScript 2015、jquery-3.2.1.js

ECMAScript新增 Promise來撰寫非同步程式碼。 若搭配jQuery來使用,可以叫用then方法來取得Promise:

2017年8月24日 星期四

使用EditorConfig

Tool:Visual Studio Enterprise 2017 15.3
.NET Core 2.0
OS:Windows Server 2016 Datacenter


本文介紹如何在VS2017使用EditorConfig來限定程式設計風格的一致性。

2017年8月15日 星期二

.NET Core 2.0安裝日誌

Tool:Visual Studio Enterprise 2017 15.3
.NET Core 2.0
OS:Windows Server 2016 Datacenter


本文沒重點,單純是.NET Core 2.0安裝日誌

2017年7月6日 星期四

Visual Studio 2017 自動建議安裝套件功能

Tool:Visual Studio Enterprise 2017
OS:Windows Server 2016 Datacenter

 
在Visual Stuido 2017開發ASP.NET Core網站時,常常需要安裝一些套件(package),常常不記得該安裝的套件是哪個。你可以開啟Visual Studio 2017 自動建議安裝套件功能。

總網頁瀏覽量