devlooped / nugetizer

A simple to understand packing model for authoring NuGet packages
https://clarius.org/nugetizer/
MIT License
255 stars 7 forks source link

Cleanup happens on every build #369

Closed Aleksanderis closed 1 year ago

Aleksanderis commented 1 year ago

Describe the Bug

Seems like packages cleanup happens on every build, even if GeneratePackageOnBuild=false (also tried PackOnBuild=false). Not sure if it's a desired behavior, but I would say it should be cleaning up only during packing. If it's a desired behaviour, then it would be good to have an option to control it like you want.

I can confirm that during such builds packages are not produced. It's just a build and cleanup what happens.

Cleaning up NuGet caches on every build makes my IDE (Rider) scream every time about missing references if consumer project is opened (sometimes only IDE restart helps to fix it).

Version Info

Currently latest version - 1.0.1

Aleksanderis commented 1 year ago

Found a good enough workaround for now:

kzu commented 1 year ago

Good catch @Aleksanderis! Will ship a fix today :)