Click here to Skip to main content
15,066,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i run project using Release mode, I get following error:

"The type or namespace name 'Calculation' could not be found (are you missing a using directive or an assembly reference?)"

If I run in Debug mode, it goes fine.

Please also set your library mode release where namespace 'Calculation'.

and give the common path for release in build section for all libraries in Output path:
Move the missing dlls to the release folder of your project.
Go to your project properties and confirm on the Build tab, that your output directory is bin\release\.
We can't really sort that out for you - we don;t have access to your computer to see what the Calculation class (or namespace) is or where it is declared. It's not a standard .NET class, so it's up to you.

Start by finding all references to Calculation in your project (VS has a "Find in Files" tool which should help) and check if there is some #if code round it which excludes it under some circumstances.

If it is your own class, or in one of your assemblies, then you need to check that the version you are using for the Release build is the correct build level - try a clean and rebuild all and see if that solves it.

Sorry to be generic here, but we just don't have access to see anything more.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900