Skip to content

Commit 51e88a5

Browse files
authored
Add import lib and imports (#51393)
* Add import lib and imports Fixes #50734 The sample code was missing the needed "Imports" statement, and the declaration was commented out. ALso, the project needed to import the type library. * Add new snippets5000.json
1 parent 1029d7c commit 51e88a5

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrInterop/VB/Class1.vb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ Imports System.Runtime.InteropServices
77
Imports System.Windows.Forms
88

99
' <snippet40>
10+
Imports INKEDLib
1011

1112
Class Sample
12-
'Private s As IInkCursor
13+
Private s As IInkCursor
1314

1415
End Class
1516
' </snippet40>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"host": "visualstudio"
3+
}

samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrInterop/VB/vbvbalrinterop.vbproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
<TargetFrameworks>net4.8</TargetFrameworks>
66
</PropertyGroup>
77

8+
<ItemGroup>
9+
<COMReference Include="INKEDLib">
10+
<WrapperTool>tlbimp</WrapperTool>
11+
<VersionMinor>0</VersionMinor>
12+
<VersionMajor>1</VersionMajor>
13+
<Guid>8405d0df-9fdd-4829-aead-8e2b0a18fea4</Guid>
14+
<Lcid>0</Lcid>
15+
<Isolated>false</Isolated>
16+
<EmbedInteropTypes>true</EmbedInteropTypes>
17+
</COMReference>
18+
</ItemGroup>
19+
820
<ItemGroup>
921
<Reference Include="System.Windows.Forms" />
1022
</ItemGroup>

0 commit comments

Comments
 (0)