Try our conversational search powered by Generative AI!

Nuget restoring package


Hi all!

CMS 12

Is it just me having zip packages restored all times I build?

Ive learned this is because how the nuget in .net 5 works, there is no after install event anymore. so instead it is runing "restore" every time you build, and the way to copy over files, is to have a build event in the nuget pack that moves the zip to modules.

In my solution it is mainly the tinymce package Modified on every build ...

Regards Luc Gosso

Jan 18, 2022 11:34

Hi, with a future update of CMS UI, most (all?) of these modules will only be updated when they're missing or has been updated.

Jan 18, 2022 14:19

you killed the discussion! alrighty

Jan 18, 2022 14:22

The reason it's not working as nice as it could, is because the modules don't leverage incremental builds in their MSBuild target.

Edited, Jan 18, 2022 14:24

Luc, I don't think you need to store the zip files in your source control system. Those are quite big files that do not need to be versioned by you. They are part of CMS nuget packages and will be automatically restored. You can easily gitignore the whole modules/_protected folder and remove those files from repository.

Jul 12, 2022 21:05
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.