-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove targets* platform condition from project references #46377
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
@@ -674,4 +673,7 @@ | |||
<ItemGroup> | |||
<None Include="Resources\SR.resx" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Cryptography.OpenSsl\src\System.Security.Cryptography.OpenSsl.csproj" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OpenSSL is a Unix only project, can this cause any issues on non-Unix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a platform independent configuration in openssl
src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.IsolatedStorage/src/System.IO.IsolatedStorage.csproj
Outdated
Show resolved
Hide resolved
I'm worried about the additional references added to the assemblies. Did you consider setting Targets* properties to true during restore? A project is being restored when |
I think the compiler removes the additional references to assemblies which are not used. Compiler only adds the references its using. I verified this as well using system.drawing.common dll, where the system.events references is only present in windows assembly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So long you have made sure the produced packages/assemblies are the same as before the change.
That's right, but it also increases build times on configurations that don't need the P2P. Did you consider setting the Target* to true during restore? |
I can take a look at setting Targets* true during restore |
Related to #46338