Jenkins 使用 Pipeline Utility Steps 來異動 json 檔案

Jenkins 使用 Pipeline Utility Steps 來異動 json 檔案

  Rojer Chen's Blog   4/17/2020 08:10:00 下午    0 comments
RojerChen.2020.04.17 Jenkins 要怎樣才可以讀寫 appsettings.json 的檔案? 使用情境 網頁前端會讀取 appsettings.json 這個檔,並且將目前程式的版本顯示在網頁上。我希望每次使用 Jenkins 部屬程式的時候,可以將目前 Build 的版號更新到 appsettings.json,讓我的網頁前端可以知道目前的版本號是哪一個。 找了好久才發現到原來使用 Pipeline Utility Steps 就可以達到這樣的功能了。

VS Installer 16.5 缺少 Web 程式開發建置工具

VS Installer 16.5 缺少 Web 程式開發建置工具

  Rojer Chen's Blog   4/09/2020 01:59:00 下午    0 comments
RojerChen.2020.04.09 昨天在做 Jenkins 的移機,移完之後遇到了編譯程式的問題,問題如下 「error MSB4226: 找不到匯入的專案 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets"」