You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
I referenced a project with a nuget package. The referenced project contains one interface with at least one method that returns types from the nuget package.
I excluded this interface and the interface is successfully ignored by SimpleStubs.
However, the using directive to the nuget package is still there and I cannot build the UnitTest project.
I have to reference the nuget package to make it build.
The text was updated successfully, but these errors were encountered:
Does the file containing the excluded interface contain any other interfaces? SimpleStubs will copy the using directives from a given file if there is at least one interface in that file that is not ignored.
Ok thanks. I suspect that this is copying the usings from the whole namespace, not just from the files containing non-ignored interfaces.
If the ignored interface was in a different namespace, I believe the using would not be copied. We should probably just copy the usings from the files containing used interfaces instead of resolving all usings in the namespace.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I referenced a project with a nuget package. The referenced project contains one interface with at least one method that returns types from the nuget package.
I excluded this interface and the interface is successfully ignored by SimpleStubs.
However, the using directive to the nuget package is still there and I cannot build the UnitTest project.
I have to reference the nuget package to make it build.
The text was updated successfully, but these errors were encountered: