无法使Costura.Fody正常工作,不断询问DLL [英] Not able to get Costura.Fody to work, keeps asking for the DLL

查看:729
本文介绍了无法使Costura.Fody正常工作,不断询问DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用nuget软件包将costura.fody安装到我的项目中.我已经使用以下命令更新了FodyWeavers.xml文件:

I have installed costura.fody into my project using nuget package. I have updated the FodyWeavers.xml file with:

<Costura 
Unmanaged32Assemblies='dllname'
Unmanaged64Assemblies='dllname' />

当我重建它并尝试在没有dll的单独PC上运行exe时,它不起作用.我想念什么吗?我需要添加其他内容吗?我也尝试了以下方法:

when I rebuild it and try to run the exe on seperate PC without the dll it doesnt work. Am I missing something ? Do I need to add anything else. I have also tried the following :

<IncludeAssemblies>
    dllname
</IncludeAssemblies>

谢谢您的帮助.

推荐答案

确保在所需库的引用属性"选项卡中将本地复制"设置为真". Costura不会嵌入任何未启用此设置的内容.

Make sure "Copy Local" is set to "True" within the reference properties tab on your desired libraries. Costura will not embed anything that does not have this setting enabled.

这篇关于无法使Costura.Fody正常工作,不断询问DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆