GlitchEnzo / NuGetForUnity

A NuGet Package Manager for Unity
MIT License
3.26k stars 319 forks source link

Fix duplicated files in folder content and contentFiles #658

Open cyanial opened 5 months ago

cyanial commented 5 months ago

https://stackoverflow.com/questions/47468941/prevent-duplicating-files-in-nuget-content-and-contentfiles-folders

Test NuGetPackage: MongoDB.Libmongocrypt.

as far as i know, that a nuget package may have both content and contentFiles folder and the contain the same files.

from now on, i change the code to omit content folder when it has contentFiles and it works for my package.

And it fix my isuue https://github.com/GlitchEnzo/NuGetForUnity/issues/655

@JoC0de @GlitchEnzo ; Please help!!!

JoC0de commented 4 months ago

Sorry for the delay. Thanks for the workaround. Would be nice if we add a UnitTest, I could implement it but not sure when I have time.

cyanial commented 4 months ago

Sorry for the delay. Thanks for the workaround. Would be nice if we add a UnitTest, I could implement it but not sure when I have time.

never mind, i'm now using my own version, it works.

And i'm studying this project as well, i'm also trying to add some unit test. but i'm a new starter in C#, so forgive for my poor c# skills.