1,環境搭建:https://www.cnblogs.com/springsnow/p/12881499.html
2,nuget的使用:https://www.cnblogs.com/springsnow/p/12882696.html
3,netcore下Excel開發庫EPPLUS
https://github.com/JanKallman/EPPlus/wiki/The-Sample-Project
4,解決EPPLUS的License問題:https://www.epplussoftware.com/Developers/LicenseException
ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
5,微軟官方的excel work ppt等的操作庫:Open XML SDK
https://docs.microsoft.com/en-us/office/open-xml/open-xml-sdk?view=openxml-2.8.1
6,使用Bitmap時,會提示Bitmap在System.Drawing里不存在,
解決辦法:dotnet add package System.Drawing.Common --version 6.0.0
把做好的C#程序打包的命令:
dotnet publish --configuration Release -r win10-x64
-r win10-x64
加-r的目的:生成可以在win10,64位操作系統,直接執行的exe文件,不需要執行的機器安裝net core的runtime。
不加的話,要想執行,則機器上必須安裝net core的runtime