我已经在 C# windows 中开发了一个应用程序,我需要添加 vb.net dll 文件。我尝试从源添加 dll 文件->添加引用。但是,我收到错误
**Could not find the dll files **
因为我正在添加 dll 文件(assembly1 到 assembly**2 和 **assembly2 到 assembly3)
** 新代码 **
C:\Program Files (x86)\Microsoft\ILMerge>ilmerge /t:dll /out:ExcelImportnew.dll ExcelImport.dll BOL.dll
合并时发生异常:
Access to the path 'C:\Program Files (x86)\Microsoft\ILMerge\ExcelImportnew.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolea
useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, Sring msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, In32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)
请告诉我为什么会收到此错误。如何解决此错误。谢谢 !