MS Addin 开发常用 DLL 引用配置推荐

本文收集了在 MS 二次开发的过程中常用的 DLL 引用配置,方便今后开辟新项目直接拷贝使用,在使用的过程中,会根据需要,逐渐添加。

Command 配置

1
2
3
4
5
6
<ItemGroup>
<EmbeddedResource Include="AddinAndKeyIn\ExtendedCommands.xml">
<LogicalName>CommandTable.xml</LogicalName>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>

MS 引用列表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<Reference Include="Bentley.DgnDisplayNet">
<HintPath>$(Bentley)\Bentley.DgnDisplayNet.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.DgnPlatformNET">
<HintPath>$(Bentley)\Bentley.DgnPlatformNET.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.EC.Persistence3">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.EC.Persistence3.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.ECObjects.Interop3">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.ECObjects.Interop3.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.ECObjects.MixedMode3">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.ECObjects.MixedMode3.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.ECObjects3">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.ECObjects3.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.ECSystem3">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.ECSystem3.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.General.1.0">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.General.1.0.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.Platform">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.Platform.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.UI">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.UI.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.Windowing">
<HintPath>$(Bentley)\Assemblies\ECFramework\Bentley.Windowing.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.GeometryNET">
<HintPath>$(Bentley)\Bentley.GeometryNET.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.GeometryNET.Common">
<HintPath>$(Bentley)\Bentley.GeometryNET.Common.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.GeometryNET.Structs">
<HintPath>$(Bentley)\Bentley.GeometryNET.Structs.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.Interop.MicroStationDGN">
<HintPath>$(Bentley)\Assemblies\Bentley.Interop.MicroStationDGN.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.MicroStation">
<HintPath>$(Bentley)\Assemblies\Bentley.MicroStation.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.MicroStation.Interfaces.1.0">
<HintPath>$(Bentley)\Assemblies\Bentley.MicroStation.Interfaces.1.0.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.MicroStation.Ribbon">
<HintPath>$(Bentley)\Assemblies\Bentley.MicroStation.Ribbon.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.MicroStation.WinForms.Controls">
<HintPath>$(Bentley)\Assemblies\Bentley.MicroStation.WinForms.Controls.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.MicroStation.WPF">
<HintPath>$(Bentley)\Assemblies\Bentley.MicroStation.WPF.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.MicroStation.WPF">
<HintPath>$(Bentley)\Assemblies\Bentley.MicroStation.WPF.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.PrintAPI">
<HintPath>$(Bentley)\Assemblies\Bentley.PrintAPI.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.PrintDefinitions">
<HintPath>$(Bentley)\Assemblies\Bentley.PrintDefinitions.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.PrintEngine">
<HintPath>$(Bentley)\Assemblies\Bentley.PrintEngine.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.PrinterConfigurationEditor">
<HintPath>$(Bentley)\Assemblies\Bentley.PrinterConfigurationEditor.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.PrintFoundation">
<HintPath>$(Bentley)\Assemblies\Bentley.PrintFoundation.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.PrintManager">
<HintPath>$(Bentley)\Assemblies\Bentley.PrintManager.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.TerrainModelNET">
<HintPath>$(Bentley)\Assemblies\Bentley.TerrainModelNET.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.TerrainModelNET.Formats">
<HintPath>$(Bentley)\Assemblies\Bentley.TerrainModelNET.Formats.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Bentley.TerrainModel.ElementTemplate">
<HintPath>$(Bentley)\Assemblies\Bentley.TerrainModel.ElementTemplate.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="ustation">
<HintPath>$(Bentley)\ustation.dll</HintPath>
<private>False</private>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(Bentley)\Assemblies\Newtonsoft.Json.dll</HintPath>
<private>False</private>
</Reference>

Sw 引用列表

1
2
3
4
5
6
<Reference Include="SWOpenRoadsSDK">
<HintPath>$(SWORD)\sw_Standards\mdlapps\SWOpenRoadsSDK.dll</HintPath>
</Reference>
<Reference Include="SWOrdCPPSDK">
<HintPath>$(SWORD)\sw_Standards\mdlapps\SWOrdCPPSDK.dll</HintPath>
</Reference>

测试插件引用

1
2
3
<Reference Include="MSAddinTest">
<HintPath>$(Bentley)\Mdlapps\MSAddinTest.dll</HintPath>
</Reference>