-
Notifications
You must be signed in to change notification settings - Fork 24
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
Source not being generated #132
Comments
Which version of wpf are you using? I believe generators only work on 5.1 of the SDK |
How do I change to 5.1 of the SDK? my project file looks like this:
|
Do you mean the .Net SDK? because the lastest version of that I can find is 5.0.8. My Visual Studio is upto date. |
I found this issue which appears to have a work around dotnet/wpf#3404 Which is to add the following to my project file:
Seems that this will be on by default in .net 6. This is obviously not the fault of StrongInject so I'm closing this. |
It's also on by default in dotnet SDK 5.0.2 |
I have a .net 5 WPF project that I tried to use StronInject on. But the injection code is not being generated.
My Container is as follows:
However when I build the build fails I get the following errors in my build output (but strangely not in my Errors list)
The text was updated successfully, but these errors were encountered: