Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Nuget restoring package

Vote:
 

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.

https://stackoverflow.com/questions/58767292/nuget-v4-contentfiles-not-getting-copied-to-output#answer-58838487

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

Regards Luc Gosso

#270160
Jan 18, 2022 11:34
Vote:
 

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.

#270163
Jan 18, 2022 14:19
Vote:
 

you killed the discussion! alrighty

#270164
Jan 18, 2022 14:22
Vote:
 

The reason it's not working as nice as it could, is because the modules don't leverage incremental builds https://docs.microsoft.com/en-us/visualstudio/msbuild/incremental-builds?view=vs-2022&viewFallbackFrom=vs-2019 in their MSBuild target.

#270165
Edited, Jan 18, 2022 14:24
Vote:
 

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.

#283578
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.