Deploying with ClickOnce #3613
Replies: 4 comments 4 replies
-
To better support Add the following to a <CefSharpBuildAction>Content</CefSharpBuildAction> IMPORTANT :
For reference: Currently using AnyCPU with clickonce isn't working as detailed in #3319 (comment) #3407 (comment) for instructions (the code is the same regardless of .Net version). |
Beta Was this translation helpful? Give feedback.
-
As it turns out, getting a ClickOnce deployment to work with the component has been extremely tricky. Using various hints throughout this site and various other sites online, I think we've spent a couple hundred hours on trying to get this to work so far. The next major obstacle that we discovered is the the Subprocess.exe file is being effectively duplicated in the ClickOnce manifest and we don't know how to avoid that, even though we only have it referenced a single time for inclusion into that manifest. I've seen notes on other sites stating that there might be issues referencing a second EXE file in a project (since the first is the project executable itself). Do you know how to properly configure the base .csproj to avoid the .exe file being considered a duplicate when msbuild.exe is used to publish the ClickOnce app? Thank you. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this additional advice. One other thing to note that complicated things is that we needed to sign the manifest after we did an update to it. It was at that point that the process failed. However, it appears we're finally at a spot where we can move forward with pushing this to production. If we run into more issues, we'll look into the above advice. We might still want to send you a log, but we'll see. We've already spent abundant time on this and have much more to do with the project. Thank you again for your timely responses and consideration. |
Beta Was this translation helpful? Give feedback.
-
For anyone else that ends up here I've created a more detailed guide for publishing using |
Beta Was this translation helpful? Give feedback.
-
After deploying with ClickOnce and attempting to bring up the view that uses the cefSharp browser component, the application fails with the error "Could not find file or assembly 'CEFSHARP.CORE.RUNTIME.DLL' or one of its dependencies."
Our project has the main references for cefsharp.wpf, cefsharp.core, and cefsharp as all Copy Local=True. There's nothing else special we're trying to do to get that component to deploy to the desktop.
I've found references to developers in the past having issues with doing this type of deployment but the links are many years old and there doesn't seem to be a concrete solution that ends up being given. One of the solutions points to a non-existent directory to be xcopied during the post-build...but I see how that would help for a ClickOnce deployment anyway.
I see an old discussion (#3402) from here that might have some relevance, but there was no resolution.
Is there a simple list of steps we need to do to get this to deploy and run properly via ClickOnce? My guess is that there's a bunch of file dependencies missing. My other concern with this is that if/when we upgrade the component, this process would have to be repeated otherwise all the dependent files will be invalid.
Beta Was this translation helpful? Give feedback.
All reactions