Skip to content

Commit 5156050

Browse files
Hosch250retailcoder
authored andcommitted
Close #1612 (#1643)
1 parent ffeb7cc commit 5156050

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

RetailCoder.VBE/UnitTesting/NewUnitTestModuleCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ public void NewUnitTestModule(VBProject project)
8181

8282
try
8383
{
84-
project.EnsureReferenceToAddInLibrary();
84+
if (settings.BindingMode == BindingMode.EarlyBinding)
85+
{
86+
project.EnsureReferenceToAddInLibrary();
87+
}
8588

8689
component = project.VBComponents.Add(vbext_ComponentType.vbext_ct_StdModule);
8790
component.Name = GetNextTestModuleName(project);

0 commit comments

Comments
 (0)