<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7867307090682810295</id><updated>2025-06-05T09:50:40.926+08:00</updated><category term="Visual Studio"/><category term="ASP.NET MVC"/><category term="ASP.NET"/><category term="Entity Framework"/><category term="Expression Blend"/><category term="Silverlight"/><category term="WCF"/><category term="C#"/><category term="Net Framework"/><category term="Node.js"/><category term="ASP.NET Core"/><category term="IIS"/><category term="開發人員認證"/><category term="Tips"/><category term="jQueryMobile"/><category term="雜七雜八"/><category term="WPF"/><category term="圖書"/><category term="ASP.NET Web API"/><category term="HTML"/><category term="JavaScript"/><category term="Visual Basic"/><category term="jQuery Mobile與ASP.NET實戰開發"/><category term="LINQ"/><category term="MongoDB"/><category term="喵的"/><category term=".NET Core"/><category term="ADO.net"/><category term="Cloud"/><category term="Visual Studio Code"/><category term="WindowsPhone"/><category term="QA"/><category term="WF"/><category term="咪的"/><category term="Bootstrap"/><category term="IIS Express"/><category term="SQL Express"/><category term="WCF Data Service"/><category term="ADO.NET Data Service"/><category term="CSS"/><category term="DynamicData"/><category term="Entity Framework Core"/><category term="LightSwitch"/><category term="OWIN"/><category term="PowerShell"/><category term="SQLite"/><category term="Windows8"/><category term="knockout"/><title type='text'>米米貓學開發</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>485</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-1092099994699009008</id><published>2018-11-06T14:10:00.001+08:00</published><updated>2018-11-06T14:11:25.194+08:00</updated><title type='text'>安裝WideWorldImporters範例資料庫</title><summary type="text">Tool：SQL Server Management Studio V17.3DB：SQL Server 2014OS:Windows 10安裝WideWorldImporters範例資料庫筆記1.先到此網址下載WideWorldImporters-Full.bak檔案，放到 C:\DB&amp;nbsp; 資料夾https://github.com/Microsoft/sql-server-samples/releases/tag/wide-world-importers-v1.02.在SQL Server Management Studio 執行以下查詢

  restore filelistonly from disk=&#39;C:\DB\WideWorldImporters-Full.bak&#39;

  --restore db
    restore database </summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/1092099994699009008/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/1092099994699009008' title='39 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/1092099994699009008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/1092099994699009008'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/11/wideworldimporters.html' title='安裝WideWorldImporters範例資料庫'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbbEeOM-KlE7wwqQOlt0y_hQRaZ08pIhaeqXlXN0Y0aSa0zHylPdrM2rQHwsREc2xL6WYGoFyT8N52rkSRJ501UcvRSVher1Goy9LghTgxxUWTw1grWgIa8V3Rc0zW5QmGVliEBe7AQ7w/s72-c/?imgmax=800" height="72" width="72"/><thr:total>39</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-1515094959118095342</id><published>2018-09-04T12:37:00.001+08:00</published><updated>2018-09-04T12:41:00.020+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><title type='text'>在VS2017 使用Library Manager - 2</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.8.2SDK:.NET Core SDK 2.1.401OS:Windows 10在Visual Studio 2017 15.8.2版中，已經提供了Library Manager，可用於下載前端開發套件。在目前的ASP.NET Core專案中，若要利用Library Manager下載jQuery，可以參考以下步驟。在網站專案wwwroot資料夾按右鍵，選Add –&amp;gt; Client-Side Library：接著便會出現一個對話盒，選擇Provider並可搜尋套件：在@號後輸入數字，可以選擇要安裝的版本：選取要安裝的套件，設定Target Location，按Install按鈕就可。安裝完成後專案中會自動產生libman.json組態設定檔案，紀錄已安裝的套件與版本：
  {
    &amp;nbsp; &quot;</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/1515094959118095342/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/1515094959118095342' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/1515094959118095342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/1515094959118095342'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/09/vs2017-library-manager-2.html' title='在VS2017 使用Library Manager - 2'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUKyeiFqB-17euPjzRhXJzVNgBOxyLzVVKjr5bCN-3beeX9rpxAxUPK_-mOSZ7nZuW2pKs33iJUz7UbCSxgd98EnkVIxk3Dx86oSQ6ramRgfDtAHhianqLVvfPHxrsYaG-EywFKikNMoQ/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-5661598215421077467</id><published>2018-06-07T15:49:00.001+08:00</published><updated>2018-06-07T15:49:13.895+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>The ASP.NET developer certificate is not installed</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.7.3SDK:.NET Core SDK 2.1.3OS:Windows 10ASP.NET Core 2.1版之後，預設建立專案時，可以選擇支援HTTPS。手賤，將憑證刪掉了….。

建立專案時，勾選&quot;Configure for HTTPS”：並會在第一次執行網站專案時，跳出以下畫面，自動安裝開發憑證：因為手賤使用電腦憑證管理工具，將憑證刪除了….所以只要在Visual Studio 2017執行專案時，就會出錯：無法使用HTTPS惹….解決方案，執行以下指令


  dotnet dev-certs https --trust
接著就會跳出自動安裝開發憑證視窗，安裝憑證後，終於正常：參考：dotnet-dev-certs工具：https://github.com/aspnet/DotNetTools/tree</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/5661598215421077467/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/5661598215421077467' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5661598215421077467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5661598215421077467'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/06/the-aspnet-developer-certificate-is-not.html' title='The ASP.NET developer certificate is not installed'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG5VtLYZRgzsJQkw-bBX7xX26GVPk2ZjcyId4DQ97bKzfDRPRhO5Ep3zhVyAQR8wParyTysJaKZB8QvZ4pUPd3e61UPVCHQgI_TjZqJIarKAFJIhx8_68FpA9CziTcGoUzpUlGFED4hEI/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-2969586993099999475</id><published>2018-06-04T09:42:00.001+08:00</published><updated>2018-06-04T09:43:14.660+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Cannot run when setup is in progress</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.7.2SDK:.NET Core SDK 2.1.300 -RC1OS:Windows 10執行Visual Studio 2017 ，出現錯誤:&quot;Cannot run when setup is in progress&quot;解決方式，使用管理者身份執行Developer Command Prompt for VS 2017工具，然後輸入以下指令:
  devenv /AllowDuringSetup
</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/2969586993099999475/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/2969586993099999475' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2969586993099999475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2969586993099999475'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/06/cannot-run-when-setup-is-in-progress.html' title='Cannot run when setup is in progress'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJB9fyYD9UmmWWHWXu0wHTE_dlfkdN7SGVtIdfn3mnTIczZzbng4IegBLnP6-DANdz-u8z5TbS2M0lucG_2Gh73ejcLCN2BbtjDJZjkQU862kZRPgPJHGKm6YAi_TfJuXxYvIyPlK5_Cc/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-3447651037732330272</id><published>2018-06-01T11:44:00.001+08:00</published><updated>2018-06-01T11:49:25.162+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>關掉Application Insights Telemetry訊息</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.7.2SDK:.NET Core SDK 2.1.300 -RC1OS:Windows 10每次透過Visual Studio 除錯時，輸出(Output)視窗總是會印出許多Application Insights的訊息，由於專案中並沒有使用到Application Insights的功能，大量無用的訊息徒增困擾，可以將之關閉:

  Application Insights Telemetry (unconfigured): {&quot;name&quot;:&quot;Microsoft.ApplicationInsights.Dev.Message…

關閉步驟：Tools-&amp;gt;Options-&amp;gt;勾選Disable local Application Insights for Asp.net Core web </summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/3447651037732330272/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/3447651037732330272' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/3447651037732330272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/3447651037732330272'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/06/application-insights-telemetry.html' title='關掉Application Insights Telemetry訊息'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlTR311-SrYUnae3zgWb0guuh9I5M52tu-R7QiB1-h2mOgTzcDVWNrQHy5rIs3Q80MzxQPVfQcIC6E_V1f96tGI_Qiy2tBkIR-WdV_ihPS5IVB_455Y7DIL7utJoIyLRa-EjJTed4cVhU/s72-c/?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-8768399740105780317</id><published>2018-05-29T11:56:00.001+08:00</published><updated>2018-05-29T11:56:29.002+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET MVC"/><title type='text'>升級ASP.NET Core 2到2.1.0版</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.7.2SDK:.NET Core SDK 2.1.300 -RC1OS:Windows 10以下是將ASP.NET Core 2版MVC專案升級到2.1.0版筆記。.NET
Core 2.0空白專案預設如下，TargetFramework引用
netcoreapp2.0；
PackageReference 參考到
Microsoft.AspNetCore.All

  &amp;lt;Project Sdk=&quot;Microsoft.NET.Sdk.Web&quot;&amp;gt;

  &amp;nbsp; &amp;lt;PropertyGroup&amp;gt;
    &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TargetFramework&amp;gt;netcoreapp2.0&amp;lt;/TargetFramework&amp;gt;

    &amp;nbsp; &amp;lt</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/8768399740105780317/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/8768399740105780317' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/8768399740105780317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/8768399740105780317'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/05/aspnet-core-2210.html' title='升級ASP.NET Core 2到2.1.0版'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5YEhu7Wn5vNc8KoT_g91dUbAWJGcw6rdb8p6NDAWUQpO8mAli_HC7yEdUCSEjgATOLKqStcnZLIoIVN9knqEn7hY7ybuv3-OzKlkek8hRlJIkZn-PhS10U7h19MzUUR61jt6jrSGE_iM/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-5281408431326557854</id><published>2018-05-25T14:25:00.001+08:00</published><updated>2018-05-25T14:25:15.467+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>在VS2017 使用Library Manager</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.7.2SDK:.NET Core SDK 2.1.300 -RC1OS:Windows 10將Visual Studio Enterprise 升級至15.7.2版，似乎還看不到整合Library Manager工具的圖型介面，在目前的ASP.NET Core專案中，若要利用Library Manager下載jQuery與Bootstrap套件，可以參考以下步驟：先使用NuGet Package Manager安裝以下套件：Microsoft.Web.LibraryManager.Build在專案根目錄加入一個文字檔案，檔名為 ： libman.json在libman.json檔案中加入以下設定，以下載jQuery與Bootstrap：
  
    {
      &amp;nbsp; &quot;version&quot;: &quot;1.0&quot;</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/5281408431326557854/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/5281408431326557854' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5281408431326557854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5281408431326557854'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/05/vs2017-library-manager.html' title='在VS2017 使用Library Manager'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUhI8yb8jqgDjsRxp9gFbgY99B0Vt7NzfUUpfcDbYlNkIR9652HBjcI-JNbnYV3fAE6l3gO8w3nlpxlLI9NDHQwcl7Oe3OAgBnCXjfv322Pkm-I8Hf3wpLMHD79S7teaFtNu9YRxKkkLw/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-4674523637669507777</id><published>2018-05-25T10:42:00.001+08:00</published><updated>2018-05-25T11:09:25.287+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Bye ! Bower</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.7.1SDK:.NET Core SDK 2.1.300 -RC1OS:Windows 10最近更新Visual Studio Enterprise 2017 到15.7.1版之後，發現在Visual Studio 2017之中已經不提供新增Bower Configuration File範本，找不到在15.5.1版中&quot;Manage Bower Packages&quot;，新增&quot;Bower Configuration File&quot; 這些選項或畫面：也找不到15.5.1版之前 Manage Bower Packages畫面了：根據Bower Twitter 的訊息，Bower將要 “deprecated”，也建議將舊專案轉換，改用Yarn或Webpack 2來管理前端套件，關於移轉訊息可以參考官方文件：&amp;nbsp;https</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/4674523637669507777/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/4674523637669507777' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/4674523637669507777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/4674523637669507777'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/05/bye-bower.html' title='Bye ! Bower'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdbIZMuCuWhuZT-CQboyOsHMoXuO9HCoKCmT32prU5IPPHXONbukroCtS21VOzplnFgA1k_3SkhdYktFiDCxXfGSSoNxMvfkaHHQ81D_HYHMzGMJsdSWTCBwDPH4s9-LIW8uwxTbQT3I0/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-7768929821629512468</id><published>2018-05-15T16:47:00.001+08:00</published><updated>2018-05-15T16:47:07.924+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>新.NET web framework - Blazor</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.7.1SDK:.NET Core SDK 2.1.300 -RC1OS:Windows 10Other:ASP.NET Core Blazor Language ServicesBlazor是一個新的.NET web framework，取代以網使用JavaScript語言，以WebAssembly標準為基礎，改用C#/Razor、HTML以建立執行在瀏覽器上的用戶端應用程式，有了Blazor就可以使用.NET進行全端開發(full stack web development)。
  Browser + Razor = Blazor

是否有一天會取代掉JavaScript呢？讓我們看下去。以下步驟為建立Blazor網站筆記。



安裝軟體Visual Studio 2017 需更新到15.7以上版本下載並安裝</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/7768929821629512468/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/7768929821629512468' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/7768929821629512468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/7768929821629512468'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/05/net-web-framework-blazor.html' title='新.NET web framework - Blazor'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCVOAnUQt4FL08gtIlp4DMHvB0u_jP5Fzae7DNYRflFwEcIbVBwFr395wcNMVFoHw-gydYBjmz5UUzqdBtC-n5u8HHmXLA4aNLuHDHFjT5QOFtE01rx1boj34zqUZc2L-3X9RTjUcyVi8/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-347582311690659750</id><published>2018-04-19T13:37:00.001+08:00</published><updated>2018-04-19T13:37:17.356+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Core"/><title type='text'>檢查.NET Core SDK版本</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.6.6.NET Core 2.1.104OS:Windows 10若要檢查目前的機器安裝的.NET Core SDK版本，可以使用以下方式：檢視sdk資料夾
  C:\Program Files\dotnet\sdk

開啟cmd.exe或者在PowerShell中執行以下指令，檢查是有有安裝dotnet.exe
  C:\&amp;gt;where dotnet
檢查SDK版本：
  C:\&amp;gt;dotnet --version
開啟cmd.exe或者在PowerShell中執行以下指令
  C:\&amp;gt;dotnet --info
</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/347582311690659750/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/347582311690659750' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/347582311690659750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/347582311690659750'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2018/04/net-core-sdk.html' title='檢查.NET Core SDK版本'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh-L69w11LFW6BDu2p-QhcOILyudEGCR57r2Ef2Ym-C6_ZqXjnDxOgEK36vocLHbl144DpvMMYxSMOJumrDSlqCJDMfS1iOQQynGnPH9ZsZOvHXC8-JJTv8CIn_hz79Y8M0eX9D-lxaBM/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-5283502774492343470</id><published>2017-12-27T13:32:00.001+08:00</published><updated>2017-12-27T13:32:47.374+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Web API"/><title type='text'>Forms驗證與HttpClient</title><summary type="text">Tool：Visual Studio 2017 15.5.1版OS：Windows 10.NET Framework 4.6ASP.NET Web Forms叫用Web API驗證失敗產生的錯誤訊息

  No MediaTypeFormatter is available to read an object of type &#39;String&#39; from content with media type &#39;text/html&#39;.


在ASP.NET Web Form網站中設計Web API，而在ASP.NET Web Form網站啟用Forms驗證：


  &amp;lt;authentication mode=&quot;Forms&quot;&amp;gt;
    &amp;nbsp; &amp;lt;forms loginUrl=&quot;login.aspx&quot;&amp;gt;&amp;lt;/forms&amp;gt;

    &amp;lt;/</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/5283502774492343470/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/5283502774492343470' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5283502774492343470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5283502774492343470'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/12/formshttpclient.html' title='Forms驗證與HttpClient'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXxF9zzD5VSGt7Aijdge6vN5kyHiufO3B46drnIQa7Q86y4GCODYGSO8GNjqxV_ts3zDJeCESmaIy_W7AryAv2wjgav1K4ivhVWMfsKXqqGJUhCOqUi0fnegumX9heIa1EZe0CGFfG0a4/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-567374255068514907</id><published>2017-12-26T12:11:00.001+08:00</published><updated>2017-12-26T12:11:54.151+08:00</updated><title type='text'>VS2017 ｢New｣-｢Web Site」選單不見了</title><summary type="text">Tool：Visual Studio 2017 15.5.1版OS：Windows 10以前在Visual Studio 可以選擇「File」-｢New｣-｢Web Site」，開啟「New Web Site」對話窗，建立網站。Visual Studio 2017 更新版裝了之後，位置就換了，現在要選擇「File」-｢New｣-｢Project」，從Web分類下Web Site才選的到。雖然是小問題，但找很久。</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/567374255068514907/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/567374255068514907' title='4 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/567374255068514907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/567374255068514907'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/12/vs2017-new-web-site.html' title='VS2017 ｢New｣-｢Web Site」選單不見了'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEooQ0KxU5vsRYpHJLTozLRwYFgv8RgvM1imTNJgavmFs_jtSd48OFZ6uHr8lRLha8fwEQxGJwuLQvLar5IlqjOEca8q690w6WSJM-WPmaz3jfVu_7ULLhnd_rbgkTvvB2IrzWdghbW_s/s72-c/?imgmax=800" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-2356425460610909921</id><published>2017-12-07T11:03:00.001+08:00</published><updated>2017-12-07T11:03:44.450+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><title type='text'>使用MVC Action回傳Bootstrap Dialog內容</title><summary type="text">Tool：Visual Studio 2015 Update 3OS：Windows 10Bootstrap 3.3.7、jquery-1.10.2.js在MVC5專案中使用Action動態回傳Bootstrap對話盒內容筆記。建立範本專案
範本專案預設搭載Bootstrap 3.0.0版，需要更新Bootstrap版本到3.3.7版 :
在HomeController加入Action:
  public ActionResult _DialogContent()
    {

    &amp;nbsp;&amp;nbsp;&amp;nbsp; return PartialView();

    }

    

Add View_DialogContent.cshtml程式如下，置放對話盒內容:

  &amp;lt;div class=&quot;modal-header&quot;&amp;gt;
    &amp;nbsp;&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/2356425460610909921/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/2356425460610909921' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2356425460610909921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2356425460610909921'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/12/mvc-actionbootstrap-dialog.html' title='使用MVC Action回傳Bootstrap Dialog內容'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidaiG0NJ2jOUmoO1RYgOuBaRlKniOvsIiOHunUL2nVUpwcGFg6sgyU3bVAaPTBm9nT3Wi0KZZ5bUXLpG1Cjp3ndYTBnR5uy7RIX9aX-1w1HUpUEx970rgSbitgrq9wriF2ZjTnvWppmIE/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-686291419652853514</id><published>2017-10-23T14:35:00.001+08:00</published><updated>2017-10-23T14:35:18.314+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Express"/><title type='text'>SQL Server 2017 Express 安裝筆記</title><summary type="text">Tool：SQL Server 2017 ExpressOS:Windows 10以下為SQL Server 2017 Express與SQL Server Management Studio安裝筆記。下載SQL Server 2017 Express先從微軟網站下載 https://www.microsoft.com/en-us/sql-server/sql-server-editions-express選取SQL Server 2017 Express版本，然後選 Download Now執行下載下來的 SQLServer2017-SSEI-Expr.exe安裝中完成後會看到以下畫面，點選 Install SSMS 下載管理工具安裝程式接著將開啟瀏覽器，連接到微軟網站，選擇下載SSMS-Setup-ENU.exe執行SSMS-Setup-ENU.exe安裝完成:在Windows 按</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/686291419652853514/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/686291419652853514' title='4 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/686291419652853514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/686291419652853514'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/10/sql-server-2017-express.html' title='SQL Server 2017 Express 安裝筆記'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZAcI3LgA23hYZrR1VAcrRFapuh14UKPJI_3gJryDcOK3lwi7EVmWDoKlscltv0yLij3umXPcxeREN9LeeuoiVqAs7j2jqqBXf_QuzWdFEr8wFeySp5mnpPpBeAVuqVXZA6EUEb_nOL8U/s72-c/?imgmax=800" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-2435723406441870230</id><published>2017-10-20T13:19:00.001+08:00</published><updated>2017-10-20T13:19:03.837+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><title type='text'>在ASP.NET Core使用SqlClient</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.3.NET Core 2.0OS:Windows Server 2016 Datacenter.NET Core 2.0版已經可以使用許多以往在.NET Framework 4.X版System.Data.SqlClient命名空間下資料存取的相關類別了，例如DataTable、DataReader等等，可以讓你從ASP.NET Core直接透過System.Data.SqlClient命名空間下的類別存取資料庫資料。以往怎麼寫，現在就怎麼寫。使用VS建立專案時，選擇ASP.NET Core Web Application:選擇上方 ASP.NET Core 2.0，建立空白的網站專案:然後在專案中，把你記得的ADO.NET 程式加上來:


  using System;
    using </summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/2435723406441870230/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/2435723406441870230' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2435723406441870230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2435723406441870230'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/10/aspnet-coresqlclient.html' title='在ASP.NET Core使用SqlClient'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBULWVQyfjqOP-SjbO3_RkxOobhKnqPiNZlV-W2CUQmwrCNc1HicvcQLeQX_PrUMCOwSZK0m_6vE6OXYZoFKsdCz5tDMYwLSkvDnfDJlNXHushcxI1D6tyezM8uU-9l0QMkU1NH9oMQ7c/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-1024667415751779524</id><published>2017-10-17T08:44:00.001+08:00</published><updated>2017-10-17T08:44:57.808+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>WebSocket測試工具</title><summary type="text">Tool：ChromeOS：Windows 10Chrome Extension包含一個簡易的WebSocket測試工具，可開啟Chrome下載：https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en




安裝完之後，就可以利用它連結到WebSocket伺服端進行測試，例如連結到 ws://echo.websocket.org :建立連線後送出Request，Server端將回應訊息:</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/1024667415751779524/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/1024667415751779524' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/1024667415751779524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/1024667415751779524'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/10/websocket.html' title='WebSocket測試工具'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwAanYeFDF6Uh499CJGUC6CJxmXu1-Mrih-05aywUTnD-B3e24v8F0IrLd8_X6XeBmdZvrJ1PlNTya10nhBpyqyqol2yFHH9TIKunH5SwStJHnAjP5EcwZt3SOo_FCck-ZBUU1V_rS3RQ/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-5972819637977274447</id><published>2017-10-03T11:42:00.001+08:00</published><updated>2017-10-03T11:42:13.152+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Promise與jQuery筆記</title><summary type="text">Tool：Visual Studio 2015 Update 3OS：Windows 10ECMAScript 2015、jquery-3.2.1.jsECMAScript新增 Promise來撰寫非同步程式碼。 若搭配jQuery來使用，可以叫用then方法來取得Promise：
  $.ajax({
    &amp;nbsp;&amp;nbsp;&amp;nbsp; type: &quot;get&quot;,

    &amp;nbsp;&amp;nbsp;&amp;nbsp; url: &quot;dataAll.json&quot;

    }).then(

    function (data) {

    &amp;nbsp;&amp;nbsp;&amp;nbsp; var d = data.d;

    &amp;nbsp;&amp;nbsp;&amp;nbsp; var r =&#39;&#39;;

    &amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; </summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/5972819637977274447/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/5972819637977274447' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5972819637977274447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5972819637977274447'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/10/promisejquery.html' title='Promise與jQuery筆記'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-5626019636056624436</id><published>2017-08-24T11:47:00.001+08:00</published><updated>2017-08-24T12:11:48.962+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>使用EditorConfig</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.3.NET Core 2.0OS:Windows Server 2016 Datacenter本文介紹如何在VS2017使用EditorConfig來限定程式設計風格的一致性。

先安裝EditorConfig Language Service擴充套件：Tools &amp;gt; Extensions and Updates 安裝過程：完成：在C#專案根路徑中加一個.editorconfig檔案:在.editorconfig文字檔案中加入以下設定後按CTRL+S儲存檔案

  root = true

  
    [*.cs]

    indent_style = space

    indent_size = 4

接下來開啟一個程式檔案 (若程式檔案已開啟在設計畫面，先關掉再重開)，然後按CTRL + K，</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/5626019636056624436/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/5626019636056624436' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5626019636056624436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5626019636056624436'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/08/editorconfig.html' title='使用EditorConfig'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcfT5jXIHSORWcik9fk5Fl3NUd2hrRKTcKcjWlWmwnX_wZn9ZI6twEWOWyzeogWsdubICfVA3pD3a0V6RgmU1mJvm2ecDL6U_3h7HlRc_-NbiW4qf_IfL35xs9NMU5g3ASVKFBO-RXd2g/s72-c/?imgmax=800" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-8375467940839321445</id><published>2017-08-15T11:31:00.001+08:00</published><updated>2017-08-15T11:31:09.403+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><title type='text'>.NET Core 2.0安裝日誌</title><summary type="text">Tool：Visual Studio Enterprise 2017 15.3.NET Core 2.0OS:Windows Server 2016 Datacenter本文沒重點，單純是.NET Core 2.0安裝日誌



先到微軟網站下載.NET Core SDK 2.0https://www.microsoft.com/net/core#windowscmd安裝:使用Visual Studio 2017 Notification功能選單，更新Visual Studio 2017 15.3版 (忘了抓圖)完成然後就可以建立一個ASP.NET Core應用程式可以選版本:專案範本除了原有的MVC架構的專案之外，還多了一個ASP.NET Core 2.0新增的Razor Page範本：新的Razor Page範本專案 :範本網站:</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/8375467940839321445/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/8375467940839321445' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/8375467940839321445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/8375467940839321445'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/08/net-core-20.html' title='.NET Core 2.0安裝日誌'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7KMjAo7HRBMBWG-MCxTJdygXSxdY4atVG-bLbkV-SBeC5hixj0SCy8FhXlrtJmGdkanP42wm0VroXdimWw8sRldTiyu75qVTIC_K1yALxt0VWK847gtXVNm6jGbmQy1ySQQ7GfOupE6c/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-2984600828850089209</id><published>2017-07-06T16:07:00.001+08:00</published><updated>2017-07-10T12:42:57.634+08:00</updated><title type='text'>Visual Studio 2017 自動建議安裝套件功能</title><summary type="text">Tool：Visual Studio Enterprise 2017 OS:Windows Server 2016 Datacenter
&amp;nbsp; 
在Visual Stuido 2017開發ASP.NET Core網站時，常常需要安裝一些套件(package)，常常不記得該安裝的套件是哪個。你可以開啟Visual Studio 2017 自動建議安裝套件功能。
先從Tools-Options-Text Editor 設定
：


建立一個ASP.NET Core Web Application 


加入程式碼，當使用到未安裝套件的程式時，就可以從Quick Action (CTRL + .)得到安裝提示：
</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/2984600828850089209/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/2984600828850089209' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2984600828850089209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/2984600828850089209'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/07/visual-studio-2017.html' title='Visual Studio 2017 自動建議安裝套件功能'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMegLvjYTaiY5z6EwLdE5KLopBfAORwZdZSW-UJOoaZ2G3PyiIx9LZhUBpGExfssLnbswQIlHoH81A5vDn1GaQYMl2T9NNSUQavFLwJqp5_4MiujJU51zR32JhEYkanWktUnR0accRj4U/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-407070412995512194</id><published>2017-04-28T12:26:00.001+08:00</published><updated>2017-04-28T12:26:35.902+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework Core"/><title type='text'>在EF Core使用ADO.NET</title><summary type="text">&amp;nbsp; Tool：Visual Studio Enterprise 2017 OS:Windows Server 2016 DatacenterEntity Framework Core 1.1.1 以下介紹在Entity Framework Core 1.1.1使用ADO.NET透過DataReader讀取Northwind資料庫Region資料表資料。  建立一個.NET Core Console App:  使用Package Manager Console下指令，或利用圖型介面安裝套件  Install-Package Microsoft.EntityFrameworkCore.SqlServer  安裝套件:  Install-Package Microsoft.EntityFrameworkCore.SqlServer.Design  安裝套件:  </summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/407070412995512194/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/407070412995512194' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/407070412995512194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/407070412995512194'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/04/ef-coreadonet.html' title='在EF Core使用ADO.NET'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpAMxjSJ9eWW8xP4qKFi5U9kdM_D0Pg5PjrGLkCPLapp2EpAKpTU1gy-1Wucw2C7mm2zLnfqUbMfvRvPqh5jZis7EOam_qvRnXL-3kdWNOAbHQvFhEoCjDzZ5YuUGt8KfDFwoVv_8R2Cw/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-7826484091249565508</id><published>2017-04-20T17:22:00.001+08:00</published><updated>2017-08-04T19:38:46.719+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>ASP.NET Core MVC 1.1網站部署發生500.19錯誤</title><summary type="text">
Tool：Visual Studio Enterprise 2017 OS:Windows Server 2016 DatacenterASP.NET Core 1.1 
使用Visual Studio 2017發行功能，將ASP.NET Core 1.1 MVC網站部署到Windows Server 2016 Datacenter，結果發生500.19錯誤：

根據這篇文章的討論
https://github.com/aspnet/Announcements/issues/164
應該要加裝 aspnetcoremodule_x64_en.msi
從討論的文章中，可以找到下載URL:
http://download.microsoft.com/download/7/2/D/72DD68D5-7386-4A41-8B8F-E21779A69E33/</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/7826484091249565508/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/7826484091249565508' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/7826484091249565508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/7826484091249565508'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/04/aspnet-core-mvc-1150019.html' title='ASP.NET Core MVC 1.1網站部署發生500.19錯誤'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj3kkg39vJBWLb6An5Un4b2607IEF22PyyBTXgBDPrWN4P5PeOrS6S6cQNKuwFimq7UY5yVwrJhEialcoGPgjGbPg7fZ9MwOQdMFzp3guHKQLrQtuaJzeHB1SnveQlZO3V6tWscgGVpqE/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-6815257389739363459</id><published>2017-03-09T12:40:00.001+08:00</published><updated>2017-03-09T12:40:51.879+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET MVC"/><title type='text'>Add View選單不見了</title><summary type="text">Tool：Visual Studio Enterprise 2017 OS:Windows Server 2016ASP.NET MVC 5 使用自訂範本建立一個ASP.NET MVC 5 的專案，在控制器方法上頭按右鍵，發現 Add View的選單不見了。   檢視之後發現，MVC的套件沒有正確下載，References下套件前方都加上一個驚探號:  重新Build一下專案，VS2017就會自動幫你下載套件  此時，Add View的選單就回來了! </summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/6815257389739363459/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/6815257389739363459' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/6815257389739363459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/6815257389739363459'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/03/add-view.html' title='Add View選單不見了'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcP-Lua1o1BcKtsSWTxHsoaKTNkekfcmshIY5pDMUD-Is090UOeOWq7eYF61N1pGmkPCPZKfZmMNVaz602cXUZBZQ1IwEXliZdbrOMpZdiaF0W-YUN4ecFS9fAloFC40-FWy_H3ZKHWI/s72-c/?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-5570694999036003569</id><published>2017-03-08T11:05:00.001+08:00</published><updated>2017-03-08T11:05:12.058+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Express"/><title type='text'>SQL Server 2016 SP1 Express安裝筆記</title><summary type="text">Tool：SQL Server 2016 SP1 ExpressOS:Windows Server 2016  以下為SQL Server 2016 SP1 Express與SQL Server Management Studio、Pubs資料庫安裝筆記。 (文長慎入)  下載SQL Server 2016 SP1 Express 先從微軟網站下載 https://www.microsoft.com/en-us/sql-server/sql-server-downloads 選取SQL Server 2016 SP1 Express版本  安裝SQLServer2016-SSEI-Expr.exe 執行上一步驟下載下來的SQLServer2016-SSEI-Expr.exe，一直按下一步執行。     安裝完成後，重新開機。 下載SQL Server Management Studio </summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/5570694999036003569/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/5570694999036003569' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5570694999036003569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/5570694999036003569'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/03/sql-server-2016-sp1-express.html' title='SQL Server 2016 SP1 Express安裝筆記'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkyuzQO5NBnVEaHXmdpYlzsbn6_D4xH0tq9xuN4QDy_dM8adbnKQpk3tSGGfg6blkp-a7nk8XnlLmBnHgndznZTWUbYgmv8kltusa22t7a93FUux7c5rnzCTbOC5SROg4ZCTEZJixPMQM/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7867307090682810295.post-6212892556198949464</id><published>2017-02-17T17:30:00.000+08:00</published><updated>2017-02-17T17:30:01.072+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET MVC"/><title type='text'>使用NLog</title><summary type="text">
Tool：Visual Studio 2015 Ultimate Update 3OS:Windows 10.NET Framework : 4.6.xASP.NET MVC 5.x 
本文簡述如何使用NLog來記錄MVC網站執行的資訊，將這些資訊寫到文字檔。
建立一個MVC範本專案測試


使用Package Manager Console安裝NLog
Install-Package NLog -Version 4.4.2

修改Web.config，加入藍色字的設定，設定Log檔案的檔名等相關資訊

&amp;lt;configuration&amp;gt; 
&amp;nbsp; &amp;lt;configSections&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;section name=&quot;entityFramework&quot; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://vmiv.blogspot.com/feeds/6212892556198949464/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7867307090682810295/6212892556198949464' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/6212892556198949464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867307090682810295/posts/default/6212892556198949464'/><link rel='alternate' type='text/html' href='http://vmiv.blogspot.com/2017/02/nlog.html' title='使用NLog'/><author><name>米米貓學開發</name><uri>http://www.blogger.com/profile/03420718673109089957</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZPACFUUSNGsxJY4WGsrdmue8hg9A-3MOpLOEZ9evAeJkNxjN7U0nTC7WLuizV2KPM8I3BHvUWwmuUGmIAJup9N5Hrj1_7GdgiagO11cMDO3iWY9Xz_kW576MYi1h7JEI/s220/IMG_0279.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-mBmLbV6tZ0OYDN27TqaNy9FSQtlxzKLoW6M-Bn7xEXqd02u-vZbr3IR0nJ4ZQcGSlgt5_KygIQNL-FcSNWRn-q2qIUZgx9CLfqB0NuLoGRGHyIlWFIqvChzEKCSuUqsFwoZ8EWzGeIQ/s72-c/?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry></feed>