Duplicated Content Folder and files

Hi everyone!

My problem is, that I have two instances of my .xnb files.
Ones in the [project_folder]\Content\bin\WindowsGL, and anothers in [project_folder\bin\WindowsGL\Debug\Content\ .
It’s a bit frustrating, because I have only 12 content files (.dae and .png files) and the .xnb files take 62 MB together. Due to the duplicated instances of therse .xnb files, my [project_folder] is more than 130 MB. (And I will have more content files later). Is there any why to reduce .xnb files’ sizes, or at least have only 1 instances of those files?
Should I set the Content.mgcb 's output directory to the [project_folder]\bin\WindowsGL\Debug\Content\ folder? I’m afraid of that this would cause some anomaly, that couldn’t be resolved by the system.

Can anyone help this issue? I’m sure there are some solution to this.
Thanks!

Okey, I found that if I choose Texture Format: “DxtCompressed”, the .png files are converted into much smaller .xnb files. Now my [project_folder] is “only” 42 MB, it’s much more acceptable.
But I’m still searching for solution to the duplicated .xnb files if there is.

Hi :slightly_smiling:
I have noticed the order of the files in the mgcb file matters: if the pipeline builds an effect and after a model uses an effect assigned from a model processor, it builds the xnb 2 times: the second one is named xxx_0.nxb.
But if you build the model before the effect, it skips the effect as it is already done.

Is it your case, having many files shared by objects ?
Concerning textures and models, I don’t know if there is the same mechanisms, as my models have a folder for each one and textures int them. Modyfing models to make them share the same files would be an option if the order in the mgcb prevails.

This is just how it works. If you don’t want duplicates you can manually use the pipeline tool to build your content and add links to the xnb’s in your game project.