Reputation: 686
My understanding is that you can right click the project and choose New Item and then Application Manifest File to embed the manifest file in the application.
I've done this but when I go to the project properties and look at the Application Tab, I can see the manifest is greyed out. This is the case whether the manifest file I've just created is in the project or not - it's always greyed out.
Although being greyed out it does say Embed manifest with default settings. This says to me one of two things - 1) it is greyed out because there is not a manifest in the debug folder with the dll so you have to rely on an embedded one or 2) the one I have just created is not embedded in the project.
If it is 1), and an embedded one is being used then where is it. Other than the one I've just created, I cannot find any more!!
I've tried restarting Visual Studio, rebuilding etc. I've searched the internet and the consensus is that what I've done should work.
The other possibility which has just occurred is that manifest files do not work with dll plugins :-0
Upvotes: 2
Views: 1464
Reputation: 141678
The other possibility which has just occurred is that manifest files do not work with dll plugins :-0
That's correct. Manifests are for executables only for Visual Studio. If you really need to embed a manifest in a DLL, say for registration-free COM activation, you will need to resort to using mt.exe
via the command line and embedding it your DLL yourself, or invoking csc.exe
and compiling your application by command line.
Upvotes: 1