
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Experts,
I am creating custom addins in autodesk inventor and am facing an issue while referencing the Autodesk.Inventor.Interop.dll.
My two .csproj files refer to the dll as below. The version is 22.0.0.0. However when I open the solution in Visual Studio 2019, click on the property of Autodesk.Inventor.Interop in References, it targets to a different version 24.0.0.0 and to a different path as well for both the projects :
<Reference Include="Autodesk.Inventor.Interop, Version=22.0.0.0, Culture=neutral, PublicKeyToken=d84147f8b4276564, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>False</EmbedInteropTypes>
<HintPath>..\..\..\..\..\..\Program Files\Autodesk\Inventor 2018\Bin\Public Assemblies\Autodesk.Inventor.Interop.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Inventor.Interop, Version=22.0.0.0, Culture=neutral, PublicKeyToken=d84147f8b4276564, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.Inventor.Interop\v4.0_22.0.0.0__d84147f8b4276564\Autodesk.Inventor.Interop.dll</HintPath>
</Reference>
When building the solution, I am not sure which version it is referring to and as a result the addin is working for some users and not working for others.
I'd really appreciate your help to understand why this happens and how to resolve the issue.
Best Regards,
Abhik Dey
Solved! Go to Solution.