VB.NET-MISMATCH ERROR

VB.NET-MISMATCH ERROR

cturlington
Collaborator Collaborator
570 Views
2 Replies
Message 1 of 3

VB.NET-MISMATCH ERROR

cturlington
Collaborator
Collaborator

Hello,

 

I am using Civil 3d 2016.

 

I am getting a common error, screen shot attached for reference.  Is this error in reference to the Target Framework setting or is this likely to be something else?

0 Likes
Accepted solutions (2)
571 Views
2 Replies
Replies (2)
Message 2 of 3

Jeff_M
Consultant
Consultant
Accepted solution
You can ignore that error. If you are building for "AnyCPU" you will get that warning since the AcCoreMGD.dll was built for x64 only. Your code should still be fine to load and run.
Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3

tyronebk
Collaborator
Collaborator
Accepted solution

If the waring message bothers you, add another property group entry to the *.vbproj project file:

<PropertyGroup>
  <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>

To easily edit the .vbproj file, right click on the project in Visual Studio in the Solution Explorer and Unload Project. Then right click on the project again and the option to edit the .vbproj file appears. Edit and save the file. Right click on the project again to reload it. The warning should no longer show.