-
-
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
UpdateNugetPackages takes parameters and fixes common.nuspec requirements based on arch #4067
UpdateNugetPackages takes parameters and fixes common.nuspec requirements based on arch #4067
Conversation
…ents based on arch
✅ Build CefSharp 100.0.120-CI4443 completed (commit 32f8f93baf by @mitchcapper) |
Your likely the first person to use
This should have already been covered by build.ps1 as part of generating the packages. Is it not working? I'd prefer to keep all changes to the Do you need a specific target to use as part of your workflow? Happy to split that out as a new target if required |
Mostly rather than using my own scripts before to change versions I figure if UpdateNugetPackages.ps1 can do it all the better. Plus as it already has to happen on new versions officially makes it a bit easier. As for the build.ps1 instead for the feature change, no problem and will investigate why it did not work for me in current form. Last time I built with a custom version number and just x64 for the arches it still referenced the x86 redist package in the Common cefsharp package and failed to build. As for why, there is an annoying windows 10 21H2 docker issue where they did not put out windows base images that match the kernel version. This forces you to use hyperV rather than straight process isolation and it takes forever. This is fixed in w11 but not currently looking to upgrade. Building only x64 cuts time way down. |
Makes sense to use the same script if possible 👍 I'll merge the base changes later today so I can test when when I upgrade to
It's possible there's a mistake, happy to take a look when I get a minute.
Building only the arch you need sounds very reasonable to me 👍 I'm sticking with |
Confirming there is a problem, I've forgotten to remove the dependency. Should be a simple fix. |
I've tested locally and the |
Merged via cherry pick cfa5b41 Additional changes made in commit 78b682a
First commit to use the updated script is 684e76c Everything looks OK so far.
The nuspec dep should be fixed in commit 80ea921 If you are still having problems with #4066 then please let me know. |
Closes #4066
Summary:
The primary goal here is to only include the architectures the user wants to build in the required packages. There are also some code cleanup options for UpdateNugetPackages.ps1 to make it usable by more people. I debated if this should go in build.ps1 or UpdateNugetPackages.ps1 but it seemed more appropriate here (as the rest of the script is also doing version updates).
Changes:
NuGet\CefSharp.Common.nuspec
file to only require the cef dist files for the build users want. Rather than having an input file, or hardcoding the node data for the xml node we want added/removed we will just use the existing one as the template.- Added support for Async binding to return Task
- Added new QUnit Test cases
How Has This Been Tested?
Yes tried setting different values and still seemed to update everything. I didn't see any files with EnsureNuGetPackageBuildImports targets any more but I believe that xpath should be correct.
Screenshots (if appropriate):
Types of changes
Checklist: