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

Please support for Trim on self-contained apps #972

Open
zachcwillson opened this issue Apr 1, 2023 · 1 comment
Open

Please support for Trim on self-contained apps #972

zachcwillson opened this issue Apr 1, 2023 · 1 comment
Labels
Milestone

Comments

@zachcwillson
Copy link

Describe your problem, question, or feature in a clear and concise way. Please make sure you:

Repro steps:

  1. Setup dotnet 7 console app
  2. Add SimpleInjector reference to the csproj
  3. Update csproj with the following:
    <IsTrimmable>true</IsTrimmable> <PublishTrimmed>true</PublishTrimmed>
  4. Create a Registration.cs file and a few abstractions
  5. Create a Container and register abstractions in Container
  6. In Main, get reference to abstraction.
  7. Run dotnet publish --self-contained --configuration Release
  8. Observe the following warning: C:\Users\{username}\.nuget\packages\simpleinjector\5.4.1\lib\netstandard2.1\SimpleInjector.dll : warning IL2104: Assembly 'SimpleInjector' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [C:\Users\{username}\source\repos\{project}.csproj]
@dotnetjunkie dotnetjunkie added this to the v6.0 milestone Apr 1, 2023
@dotnetjunkie
Copy link
Collaborator

Added this feature request to a future milestone.

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

No branches or pull requests

2 participants