Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

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.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -