My KeyCommands.cs model uses these two references...
using Bentley.MstnPlatformNET.InteropServices; using Bentley.Interop.MicroStationDGN;
Both are necessary because of this..
Application app = Utilities.ComApp;
app.CadInputQueue.SendCommand("mdl unload AppName", true);The C# compiler is unhappy. It tells me this...
1>CSC : warning CS1762: A reference was created to embedded interop assembly 'Bentley.Interop.MicroStationDGN, Version=8.0.0.0, Culture=neutral, PublicKeyToken=4bf6c96a266e58d4' because of an indirect reference to that assembly created by assembly 'Bentley.MicroStation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4bf6c96a266e58d4'. Consider changing the 'Embed Interop Types' property on either assembly.
It's a warning, so I can ignore it. But ignoring warnings, experience tells me, can lead to trouble. As far as I can see there's nought I can do about it. What's Bentley's view on Bentley.MicroStation and Bentley.Interop.MicroStationDGN and the Embed Interop Types property in those assemblies?