|
Hello,
I'm trying to publish my application with ClickOnce from VS 2005, but publish failes with messages like: Unable to copy file "c:\somefile.dll" to "bin\Debug\myProject.publish\myProject_1_0_0_1\somefile.dll". Could not find file "c:\somefile.dll".
I know than those files (somefile.dll in my example) are in multifile assembly (c:\someassembly.netmodule) that is referenced by assembly that I'm referencing to (assembly1.dll). I dont want to distribute that assembly (assembly1.dll) with my ClickOnce deployment. So I excluded it in project options Publish->Application Files, there are listed only that assembly I'm referencing to (assembly1.dll), multifile assembly (someassembly.netmodule) is not listed there, nor assemblys from that multifile assembly, so I cant exclude them, and VS tryes to copy them to deployemt folder. How can I prevent VS from tryint to do that?
I found some nasty workaround to my problem: in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets _CopyFilesToPublishFolder target I commented out Copy section that copys assemblys from _ReferenceScatterPaths. After doing that everythig looks fine, but there must be something I dont know, or there are some problems with ClickOnce and multifile assemblys.
Please excuse my English.
Bes Regards.
Juozas. |