2021年8月9日 星期一

how to code copy file to build or release folder

 1.

專案 

屬性

 建置事件 

鑑識後事件命列輸入

 if not exist "$(ProjectDir)$(OutDir)configs" mkdir "$(ProjectDir)$(OutDir)configs"

 copy "$(ProjectDir)configs\"  "$(ProjectDir)$(OutDir)configs\"



2.

按下檔案

屬性

properties 

copy to output directory 

選擇copy always

















2019年12月3日 星期二

[asp.net core] swagger 注意事項

1.
要有裝
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
再裝
dotnet add TodoApi.csproj package Swashbuckle.AspNetCore -v 5.0.0-rc4

不然會一直出錯

2019年4月4日 星期四

[Xamarin]Incompatible HAX module version 3,requires minimum version 4 No accelerator found. failed to initialize HAX: Invalid argument 2019

原因:Incompatible HAX module version 3,requires minimum version 4 No accelerator found. failed to initialize HAX: Invalid argument 2019

方法:因為下載 HAXM is installed in the Android SDK Manager,但是沒有安裝,找到安裝檔案位置,手動安裝

2018年6月9日 星期六

在chrome 要打開

http://www.codedata.com.tw/javascript/es6-testable-platforms/

才能用es6 import and export

主 script要加 module
<script module src="compiled.js"></script>

2017年11月1日 星期三

url不同使用方式

如果只想用自己電腦上的檔案,使用C://xxx/xxx/xxx,
如果只用在自己網路上的檔案,使用http://www.xxx/xxx/xxx。