Add Reference .dll Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Receiving the following error when trying to add the following dll as a reference.
iLogic ERROR:
Error on line 39 in rule: Form Builder External, in document: 11118.iam
Could not load file or assembly 'System.Windows.Forms, Version=6.0.2.0, Culture=neutral, PublicKeyToken= or one of its dependencies. The system cannot find the file specified.
iLogic Rule:
AddReference "C:\Users\Documents\Form Builder Visual Studio - Test\MyNewForm\bin\Debug\net6.0-windows\MyNewForm.dll"
Sub Main() Using dlg As New MyNewForm.Form1 dlg.Parameter = Parameter dlg.MultiValue = MultiValue dlg.iLogicVb = iLogicVb Dim i As Integer = dlg.ShowDialog() If i <> vbOK Then Return End Using iLogicVb.UpdateWhenDone = True End Sub
DLL:
Imports System.Windows.Forms
Imports Autodesk.iLogic.Interfaces
Public Class Form1
Public Parameter As IParamDynamic
Public pTest As IParamDynamic
Public Multivalue As IMultiValueParam
Public iLogicVB As ILowLevelSupport
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
iLogicVB.RunRule("Custom Form Test")
End Sub
End Class