.NET8 AOT报错:System.IO.FileNotFoundException: Could not find file 'Microsoft.AspNetCore'

AOT在Visual Studio中运行是没有问题,但要采用默认的发布配置就会报错。然后再次运行发布,系统会提示发布成功,但当运行程序时,应用会提示打不到Microsoft.AspNetCore,具体错误如下:Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'Microsoft.AspNetCore'.

2023-11-28 1154 0 .NET8 AOT AOT报错 System.IO.FileNotFoundException Microsoft.AspNetCore

顶部