I have a COM server which is supposed to be used as reg free COM.
This means i have a manifest file describing the reg free COM. A project being referencing the manifest can be compiled and ran without the COM being registered.
I'd like to create a nuget package with this COM server. This means that during the package installation nuget must add the manifest file to the project references. So i created a package which contains the manifest as a lib file. I thought this guarantees
adding the files as a project reference. However this doesn't happen. I even explicitly added the manifest as a reference file.
Here comes the nuspec file:
<reference file="DSCCameraCom.X.manifest" />
<title>ForestGuard Camera Library</title>
<description>The package contains infrastructure binaries</description>
<file src="bin\Debug\avcodec-53.dll" target="content\avcodec-53.dll" />
<file src="bin\Debug\avdevice-53.dll" target="content\avdevice-53.dll" />
<file src="bin\Debug\avfilter-2.dll" target="content\avfilter-2.dll" />
<file src="bin\Debug\avformat-53.dll" target="content\avformat-53.dll" />
<file src="bin\Debug\avutil-51.dll" target="content\avutil-51.dll" />
<file src="bin\Debug\postproc-51.dll" target="content\postproc-51.dll" />
<file src="bin\Debug\swresample-0.dll" target="content\swresample-0.dll" />
<file src="bin\Debug\swscale-2.dll" target="content\swscale-2.dll" />
<file src="bin\Debug\DSCCameraCom.pdb" target="lib\DSCCameraCom.pdb" />
<file src="bin\Debug\DSCCameraCom.dll" target="lib\DSCCameraCom.dll" />
<file src="bin\Debug\DSCCameraCom.X.manifest" target="lib\DSCCameraCom.X.manifest" />
Have i done something wrong? Is there any way to add the manifest to project references during the package installation?