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

project.assets.json processing #6

Closed
wants to merge 3 commits into from
Closed

Conversation

PedroDebevere
Copy link
Member

@PedroDebevere PedroDebevere commented Nov 2, 2023

Copy link
Member

@MichielOda MichielOda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intermediate review

Assemblers.Common/ProjectAssetsProcessor.cs Outdated Show resolved Hide resolved
private bool ShouldSkipPackage(LockFileTargetLibrary library)
{
// In dev packs, the Newtonsoft.Json and SharpZipLib packages were added as dependencies but only for runtime..
if(String.Equals(library.Name, "Newtonsoft.Json", StringComparison.OrdinalIgnoreCase))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this exclude Newtonsoft even when added directly to the project?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code checks if newntonsoft package was added next to the dev back (and will include it if this is the case) because for the dev pack it will only add it to the runtime entry (as we defined that as such in the nuspec for the dev pack)

if (assemblyFound == null)
return true;
}
else if(String.Equals(library.Name, "SharpZipLib", StringComparison.OrdinalIgnoreCase))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as for Newtonsoft

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same applies for this package as for Newtonsoft

Assemblers.Common/ProjectAssetsProcessor.cs Outdated Show resolved Hide resolved
Assemblers.Common/ProjectAssetsProcessor.cs Outdated Show resolved Hide resolved
Assemblers.Common/ProjectAssetsProcessor.cs Show resolved Hide resolved
Assemblers.Common/ProjectAssetsProcessor.cs Outdated Show resolved Hide resolved
Assemblers.Common/ProjectAssetsProcessor.cs Outdated Show resolved Hide resolved
@MichielOda
Copy link
Member

Closing this PR until we would need it again.

@MichielOda MichielOda closed this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants