0
我想爲MEF插件編寫nuspec。 我可以將xxx.dll複製到內容目錄中,如下所示。我怎樣才能爲MEF插件文件編寫Nuspec
<files>
<file src="Alhambra\bin\Release\Plugins\Alhambra.Plugin.SqlServer.dll" target="content\Plugins\Alhambra.Plugin.SqlServer.dll" />
<file src="Alhambra\bin\Release\Alhambra.dll" target="lib\Alhambra.dll" />
</files>
但我不能在用戶項目中設置文件屬性來複制輸出目錄。
感謝您的任何建議或代碼片段。
請注意,從nuget控制檯使用''install-package''命令時不起作用。它會嘗試將這些文件添加爲解決方案項目。 – miracle2k 2012-12-31 12:50:59