views:

648

answers:

1

I want to remove AssemblyInfo.cpp, because of some metadata errors that sometimes come up.

Is AssemblyInfo.cpp useful for anything? Or can it be removed without any problem?

A: 

Why not just fix the errors? On that note, what errors are you getting?

This file provides information such as a version number which is definately needed in order to use the assembly you have built.

Chris Lively
The errors are described in http://stackoverflow.com/questions/810827/lnk2022-metadata-operation-failed-driving-me-insane ... as for how the file is "definitely needed", well it seems to work fine without it?!?
demoncodemonkey
Without that information the compiler can't determine if the assembly is 1. the right one and 2. out of date or not. The problem you linked to boils down to a mismatch between builds of the assembly. By neutering it you no longer get the mismatch error because the compiler can't tell that there is a difference.
Chris Lively
So, in effect, you haven't solved the problem. Instead you've just hidden it.
Chris Lively
I'm not so sure. With or without the assemblyinfo, if I make a significant change to the shared DLL, the referencing DLL gets rebuilt, and with an unsignificant change the referencing DLL does not get rebuilt. So I can't see any difference in that respect, other than that nonsensical error disappears.
demoncodemonkey