c++/cli referencing .net project cannot access metadata

  • Thread starter Thread starter Potatos
  • Start date Start date
P

Potatos

Guest
Hi,

I try to use a c# assembly from a c++ cli project, so I referenced it as a project since both are in the same solution.

The solution compiles correctly but I get this error in the c++ cli project : "command-line error: cannot open metadata file "<c++cli projectpath>\c#assembly.dll" and intellisense doesnt display stuff from the c# assembly.

Seems like visual studio is looking for the assembly in the c++ project directory, where obviously it is not.

I got it to work briefly by adding the output path to "additionnal #using directories". But then I removed it, then added it again, and it doesnt even works anymore. Weird...

Am I missing something? Seems more like a bug to me.

If you got any idea please let me know, thanks !

Continue reading...
 
Back
Top