jrusbatch
jrusbatch
CC#
Created by jrusbatch on 12/11/2022 in #help
❔ How can I prevent content files from ProjectReferences being copied on build?
Thanks, I didn't know about ErrorOnDuplicatePublishOutputFiles. Setting that to true would be useful if I could eliminate the existing cases!
6 replies
CC#
Created by jrusbatch on 12/11/2022 in #help
❔ How can I prevent content files from ProjectReferences being copied on build?
Eh, yeah, was hoping there was something not so... hacky. I think that approach might cross the line beyond which the solution is worse than the original problem. :\ It would be easier to migrate the test project to use NLog's programmatic configuration API and stop relying on a physical config file so I could delete it, for example, but that also felt too involved.
6 replies
CC#
Created by Gage on 11/25/2022 in #help
✅ EF Core, All models into one collection
var allObjects = new List<object>();

allObjects.AddRange(db.Foos);
allObjects.AddRange(db.Bars);
var allObjects = new List<object>();

allObjects.AddRange(db.Foos);
allObjects.AddRange(db.Bars);
5 replies