Skip to content
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

Move unused files causing heavier "AnyOS" binaries #1223

Merged
merged 1 commit into from Aug 24, 2021

Conversation

cheenamalhotra
Copy link
Member

No description provided.

@cheenamalhotra cheenamalhotra added this to In progress in SqlClient v4.0 via automation Aug 24, 2021
@cheenamalhotra cheenamalhotra added this to the 4.0.0-preview1 milestone Aug 24, 2021
@Wraith2
Copy link
Contributor

Wraith2 commented Aug 24, 2021

AAsyncCallContext is surprising but if it builds it's fine.

@cheenamalhotra
Copy link
Member Author

The "AnyOS" binaries we build for lib\netcore and lib\netstandard don't contain any source code, they just throw "Not Supported Exception". That's why anything added to those binaries (via default itemgroup without conditions) is going to only add up to size and has no use.

Any new file (containing source-code) should be always added to an ItemGroup with a "non-AnyOS" condition in this case.
When you add a new file directly via Visual Studio it won't recognize the right conditions, manual intervention is needed when adding new files.

SqlClient v4.0 automation moved this from In progress to Reviewer approved Aug 24, 2021
@cheenamalhotra cheenamalhotra merged commit 58ec32c into dotnet:main Aug 24, 2021
SqlClient v4.0 automation moved this from Reviewer approved to Done Aug 24, 2021
@Wraith2
Copy link
Contributor

Wraith2 commented Aug 24, 2021

Good to know. I'll try to be more careful in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants