简体   繁体   English

如何将引用的 dll 移动到另一个文件夹 C#

[英]How to move referenced dlls to another folder C#

I'm trying to use CefSharp's Chromium Browser, but I don't want a clunk of files from cefsharp in its startup folder.我正在尝试使用 CefSharp 的 Chromium 浏览器,但我不希望在其启动文件夹中出现来自 cefsharp 的文件。 I want to keep it in the bin folder, I don't know how.我想把它保存在bin文件夹中,我不知道如何。

Sorry, I'm a newbie at VS and all.对不起,我是 VS 的新手。

This is a partial solution to your problem.这是您问题的部分解决方案。 You can use the <probing > element in your run-time configuration, for specifying where to search for your assemblies, like in this example below, taken from the documentation :您可以在运行时配置中使用<probing > 元素,用于指定在何处搜索程序集,如下面的示例所示,取自文档

    <configuration>  
        <runtime>  
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
                <probing privatePath="bin;bin2\subbin;bin3"/>  
            </assemblyBinding>  
        </runtime>  
    </configuration>

EDIT : The rest of the answer is in this post here .编辑:答案的 rest 在这里的这篇文章中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将所有引用的 DLL 移动到 c# 中的单独文件夹中? - How to move all referenced DLLs into seperate folder in c#? 如何将文件移动到共享目录中的C#中的另一个文件夹 - How to move a file exists into shared directory to another folder in c# 如何将第三方dll从bin文件夹移动到ASP.NET Web Forms项目中的另一个文件夹? - How to move third party dlls from bin folder to another folder in ASP.NET Web Forms project? 如何在VSCode中使用调试/发布移动引用的DLL? - How do i move referenced DLLs with debug/release in VSCode? 将文件移动到另一个目录(特殊文件夹中的文件夹)C# - Move a file to another directory (folder within a special folder) C# 如何使用 SharpSsh 和 C# 将文件从一个文件夹移动到远程服务器上的另一个文件夹 - How to move a file from one folder to another folder on a remote server using SharpSsh and C# C#,获取Activator.CreateInstance(assemblyType)对象引用的DLL - C#, Get DLLs referenced by Activator.CreateInstance(assemblyType) object 如何在C#中沟通DLL - How to Communicate DLLs in C# C#将文件从文件夹移动到另一个文件夹(如何编码:如果不存在,则什么也不做) - C# Move Files From A Folder To Another (How to code: if doesn't exist do nothing) 使用C#.net graphclient将消息移动到另一个文件夹 - use c# .net graphclient to move message to another folder
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM