-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set IncludeBuildOutput false when assembly is empty #1776
Conversation
* No reason to have extra dll on disk. * Also adds a compile-time target to advise when a project is including an empty build output.
LGTM The only restriction i see is for module / theme projects which potentially may have no compile items but we still need their assemblies at runtime to retrieve the attributes we generate, and the assets files we embed on building. Maybe we will also precompile views at the module level which outputs a 2nd assembly. Normally there is at least a Otherwise good to use this property for all other libraries. I didn't know this property, thanks. |
Yeah, I was wondering if "Embedded" should also be a clue that silences the warning. Or the warning could be removed altogether to be honest if it gets false positives. The only time it lit up we're for the ".Target" packages, and you could tell from looking at them that the assembly wasn't strictly necessary. |
Hmm, as you want, but i think the warning is a good idea. You're right for empty ones. And in So maybe we just need to not import the new |
@jtkech okay, leaving warning in place sounds good to me. Though we might want to leave the oc.c.targets in all the d.b.targets --- the next PR about version management adds to that file, so the import would need to be brought back anyway if you'd like to merge that one. |
Did I break this PR by merging dev? |
Nope, this change was actually closed over by the other one, which added to the new .targets file. So this one can be closed because it's correctly reporting there are now zero diffs if you apply it. |
Okay, sent along #1780 based on that suggestion |
including an empty build output.