Featured post
c# - How do I add interop assembly that changes its version number? -
my c# program uses com component via interop assembly. com component changes (methods added @ end of interface). i need build program in automated build , have interop assembly incrementing version number - can achieved using tlbimp pre-build step.
the problem reference in project file set specific version (say 4.0.0.34) - 1 interop assembly had when reference added. once number incremented automated build , pre-build step done version number store in project file no longer matches number in assembly properties , get
warning msb3245: not resolve reference. not locate assembly "interop.mycomcomponent, culture=neutral, version=4.0.0.34, processorarchitecture=msil". check make sure assembly exists on disk. if reference required code, may compilation errors.
and then
the type or namespace name 'mycomcomponent' not found (are missing using directive or assembly reference?)
can somehow tell visual studio don't want store exact assembly version inside project file , should use whatever version sees @ compile time?
i believe in .csproj file find attribute called specificversion
, in reference
element.
removing attribute may have effect seek.
- Get link
- X
- Other Apps
Comments
Post a Comment