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

How to avoid double writes for ijwhost.dll in NuGet packages? #34213

Closed
dedale opened this issue Jul 24, 2023 · 1 comment
Closed

How to avoid double writes for ijwhost.dll in NuGet packages? #34213

dedale opened this issue Jul 24, 2023 · 1 comment
Labels
Area-NuGet untriaged Request triage from a team member

Comments

@dedale
Copy link

dedale commented Jul 24, 2023

Description

Our repo depends on two custom NuGet packages for .NET 6.0 C++/CLI components.
Both include a specific version of ijwhost.dll depending on the SDK used to build the packages.
This create double writes.
I guess there is no real problem at runtime, both versions should be compatible.
But we do not want to add explicit exclusions in our double write checker tool.

To Reproduce

ijwhost.dll is included in the nuspec with:

<file src="..." target="x64" />

And in the second package by putting ijwhost.dll in deps/netcore folder.

Fix attempts

  • Referencing Microsoft.NETCore.App.Host.win-64 in dependencies does not work (DotNetPlatform not supported)
  • frameworkReference in the nuspec does not work either (not recognized).

It seems the only option is to create a custom NuGet package including only ijwhost.dll.

See also #24310

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NuGet untriaged Request triage from a team member labels Jul 24, 2023
@ghost
Copy link

ghost commented Jul 24, 2023

Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue!

If you believe this issue was closed out of error, please comment to let us know.

Happy Coding!

@ghost ghost closed this as completed Jul 24, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NuGet untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant