6tail / lunar-csharp

日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.
https://6tail.cn/calendar/api.html
MIT License
239 stars 48 forks source link

不支持.NET Framework 4.5吗?在4.5上面没法使用啊 #5

Closed huaxuanHan closed 1 year ago

huaxuanHan commented 1 year ago

升级到.NET Framework 4.6.1可以使用了,但是这么写报错Lunar lunar = solar.getLunar(); Lunar 是命名空间不是类型

6tail commented 1 year ago

肯定支持啊,新版本已经完全按.net开发习惯了,命名空间为Lunar: using Lunar;

var solar = new Solar(1986, 5, 29); var lunar = solar.Lunar;