-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabled manifest generation for exes to allow ClickOnce deployment #1924
Conversation
The manifests are required, I don't have time to go into the details at the moment. You'll need to look for another solution. Surprisingly others use clickonce and I've never seen a report of the subprocess being a problem. |
This is the exact problem I am having: #500 Unfortunately the fix they mention in that issue will not work for me because I have to use I will look into another option but if you were able to let me know why the manifest is required that may help me figure out what other options I have. |
Is there a reason you need to add it as a reference? You can also build your own subprocess, it's a single c# file. Go through the git history of the manifests, that will give you some clues. If you distrib a subprocess without one, expect problems. |
It is not added as a reference, I am using the NuGet package. Short answer is I am using The reason adding the file as content works for others is because that tells the MSBUILD to add the assembly as a I don't consider deploying my own subprocess an option because it will just add a maintenance headache that I will never hear the end of from my fellow developers. In the end I have to move on so I will just have to put a dirty hack in the build script until I have time to look into this further, sorry for wasting your time but thanks for the conversation, it will help me later when I try to find another solution to this problem. |
It's a valid option, and shouldn't be dismissed out of hand. Maintenance burden is very small.
Good luck 👍 |
@taylorjonl We are running into the same issue, what was your "dirty hack"? |
@mkmorse, if you are deploying through Visual Studio you should follow the steps in issue 500. If you are using MSBUILD to do the work you can fix it by moving the second .EXE to the "Files" list instead of the "Dependencies" list, e.g.:
If you are using
It isn't the perdiest script ever and doesn't have much error logic but it gets the job done. It is still a work in progress. |
@taylorjonl Thanks for the information, much appreciated. |
No, as @amaitland stated it causes bad stuff and as soon as the client tries to startup the BrowserSubClient it immediately crashes. |
From memory you specifically need the compatibility section to avoid crashing. |
@taylorjonl Just as an FYI we were able to disable manifest generation (your change) and deploy through ClickOnce without having to modify the manifests, so thanks! |
Right now if you try to deploy one of the CefSharp executables in a ClickOnce deployment it will fail to download with this error:
There are ways around it, e.g. you can deploy the files as data files instead, but with this change it should work by default.