IIS:Could not load file or assembly Microsoft.CodeDom.Providers.DotNetCompilerPlatform

IIS:Could not load file or assembly Microsoft.CodeDom.Providers.DotNetCompilerPlatform

  Rojer Chen's Blog   10/24/2019 10:34:00 上午    0 comments
RojerChen.2019.10.24 為了解決 Visual Studio:MsBuild 無法載入檔案或組件 Microsoft.CodeAnalysis 的問題,所以我把  Microsoft.CodeDom.Providers.DotNetCompilerPlatform 升級到 1.0.4 版本後,只不過沒想到升級之後遇到了另外的問題: 網站發行會有問題我的發布設定檔 pubxml 有下面這一段,如果把下面這一段移除就可以正常發行。<PrecompileBeforePublish>True</PrecompileBeforePublish> 部屬到 IIS 上會出錯 Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's

Visual Studio:MsBuild 無法載入檔案或組件 Microsoft.CodeAnalysis

Visual Studio:MsBuild 無法載入檔案或組件 Microsoft.CodeAnalysis

  Rojer Chen's Blog   10/23/2019 04:38:00 下午    0 comments
RojerChen.2019.10.23 前一陣子把 .NET Core 的專案透過 Jenkins 執行 Daily Build & Deploy 後,就想說也把其他有再跑的專案也一起來執行好了。過往在 VS 專案上都是透過 UI 工具做建置與發行,現在要使用命令列還真是需要一段時間適應,只不過我在 build csproj 的時候遇到了這樣的錯誤! warning CS8032: An instance of analyzer SonarAnalyzer.Rules.CSharp.DisposeFromDispose cannot be created from C:\Users\AppData\Local\Temp\. sonarqube\resources\0\SonarAnalyzer.CSharp.dll :

Visual Studio:publish include additional files (phantomjs.exe)

Visual Studio:publish include additional files (phantomjs.exe)

  Rojer Chen's Blog   10/14/2019 05:08:00 下午    0 comments
RojerChen.2019.10.14 客戶:「先前上版的程式有問題喔,某個功能不能用,你改天過來一下」。 我:「是哪個功能有問題啊?是這樣啊,我再來了解一下」。 查了一下同事寫的筆記,才發現到每次上版的時候,都要額外檢查匯出的資料夾有無 phantomjs.exe 這個檔案,如果沒有的話要手動複製一份。 這樣也太麻煩了吧,那如果我想要在發行的時候加上這個檔案應該要怎樣做?

Angular:jQuery Uncaught SyntaxError: Unexpected token '<'

Angular:jQuery Uncaught SyntaxError: Unexpected token '<'

  Rojer Chen's Blog   10/03/2019 12:05:00 下午    0 comments
RojerChen.2019.10.03  奇怪,程式在開發環境好好的,怎麼部屬到測試環境就掛掉了?到底是哪裡出錯了?這是 jQuery 的問題嗎?