You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

发布.NET 8 WebApi项目时遇文件未找到异常求助

.NET 8 WebApi发布失败:找不到类库元数据文件

错误信息

Severity    Code    Description Project File    Line    Suppression State
Error       Metadata file 'D:\GIT\DWA\MAIN\Fuoco.Authentication.DWA\bin\x64\Release\net8.0-windows8.0\win-x64\Fuoco.Authentication.DWA.dll' could not be found  DWA.API CSC 0   

问题详情

  • 宿主项目:DWA.API(WebApi项目)
  • 依赖类库:Fuoco.Authentication.DWA
  • 路径异常:类库编译输出的实际路径为D:\GIT\DWA\MAIN\Fuoco.Authentication.DWA\bin\x64\Release\net8.0-windows8.0,但发布流程会在该路径后额外拼接win-x64文件夹,导致找不到目标dll文件。

全项目统一配置

  • Target framework:net 8
  • Target OS:windows
  • Target OS version:8.0
  • Supported OS version:8.0
  • Platform target:x64

其他情况

以Release x64模式构建整个解决方案可正常完成,但执行发布操作时失败。发布配置如下:
发布配置截图

内容的提问来源于stack exchange,提问作者FDB

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 20:34:51