ClickOnce 部署具有复杂目标框架的解决方案时出现问题

问题描述

在解决方案中 有一个类库,其目标框架是 net5_0。 可执行项目为WPF,目标框架为net5.0-windows10.0.18362.0。

例如:

A.csproj (net5.0,class library)
B.csproj (net5.0-windows10.0.18362.0,wpf library,dependency: A)
C.csproj (net5.0-windows10.0.18362.0,wpf app,dependency: B)

当我针对 C 项目发布 clickonce 时,出现以下错误。

11>Cannot find metadata file'C:\data\A\src\A\bin\Release\net5.0-windows10.0.18362.0\ref\A.dll'.

A.dll 的路径无效。 实际位置是Release\net5.0\ref\A.dll

我该怎么办?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...