繁体   English   中英

系统找不到为程序集指定的引用

[英]The system cannot find the reference specified for an assembly

我有一个VB.NET解决方案,它有一些项目和根目录中的'References'文件夹。

现在我想为此References文件夹中的一个项目添加一个新的dll引用,但收到以下消息:

系统找不到指定的引用

怎么解决这个问题?

我遇到过很多次。 在点击图片框时,我试图执行一个jar文件。 我将jar添加到我的资源中:

Private Sub PictureBox9_Click(sender As Object, e As System.EventArgs) Handles _PictureBox9.Click Dim dir As String = My.Computer.FileSystem.SpecialDirectories.Temp Dim filename As String = dir + "minecraft.jar" 'Look Below IO.File.WriteAllBytes(filename, My.Resources.minecraft) Process.Start(My.Computer.FileSystem.SpecialDirectories.Temp & "minecraft.jar") End Sub

以下工作适用于其他程序,但不适用于Minecraft:

Private Sub Panel9_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel9.Click proc = Process.Start("vbexpress.exe", "") End Sub

* proc是一个新的System.Diagnostics.Process()

但对于实际文件,您已手动将它们从其位置引出。 所以我做了Me.Resources.1234.png ,它保存了我写的目录。 但这仍然不适用于我的世界,所以我保留了那个很长的段落。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM