通過 PlatformServices.Default.Runtime.RuntimeVersion 獲取的版本號(hào)不對(duì),它得到的值是 4.0.0.0 。RuntimeVersion的實(shí)現(xiàn)代碼在這里:RuntimeVersion = typeof(object).GetTypeInfo().Assembly.GetName().Version.ToString();
1 回答

慕標(biāo)5832272
TA貢獻(xiàn)1966條經(jīng)驗(yàn) 獲得超4個(gè)贊
可以通過
Microsoft.Extensions.DependencyModel
DependencyContext.Default來獲取
- 1 回答
- 0 關(guān)注
- 1214 瀏覽
添加回答
舉報(bào)
0/150
提交
取消