Comments (6)
I've hidden the release from NuGet while we investigate. Thanks for reporting it so quickly!
We'll keep this issue updated. I've referenced the PR that seems to be one causing this.
from moq4.
Hmm. Yes, I can reproduce this too, although it doesn't make much sense.
First up, the easy solution for us is to just make InterfaceProxy public here, although I'd rather not, if possible.
Quite a bit of the internet meanwhile seems to suggest that this happens in other places when people don't realise that they're implicitly creating new assemblies, I think, which would suggest we'd just need to add the new assembly that we're creating somewhere to our InternalsVisibleTo config. I can't see anything anywhere that would give any more detail on that though, and I've spent a little while looking for the sort of obvious issues that might mess this up. Any more ideas on why this might be happening here @kzu? Nothing obvious jumps out to me.
For now, I think I'd suggest that for now we make InterfaceProxy public (and mark it as deprecated to avoid people depending on it), then release a working version with that to get the current release out. Once that's out the way we can then try and spend further time to work out what the issue is and make it internal again in future, to tidy this up a bit, but at least it's not a release-blocking problem at that point. Sound reasonable?
from moq4.
How about making it public with EditorBrowsable.Never?
/kzu from mobile
On Feb 20, 2014 7:15 PM, "Tim Perry" [email protected] wrote:
Hmm. Yes, I can reproduce this too, although it doesn't make much sense.
First up, the easy solution for us is to just make InterfaceProxy public
here, although I'd rather not, if possible.Quite a bit of the internet meanwhile seems to suggest that this happens
in other places when people don't realise that they're implicitly creating
new assemblies, I think, which would suggest we'd just need to add the new
assembly that we're creating somewhere to our InternalsVisibleTo config. I
can't see anything anywhere that would give any more detail on that though,
and I've spent a little while looking for the sort of obvious issues that
might mess this up. Any more ideas on why this might be happening here
@kzu https://github.com/kzu? Nothing obvious jumps out to me.For now, I think I'd suggest that for now we make InterfaceProxy public
(and mark it as deprecated to avoid people depending on it), then release a
working version with that to get the current release out. Once that's out
the way we can then try and spend further time to work out what the issue
is and make it internal again in future, to tidy this up a bit, but at
least it's not a release-blocking problem at that point. Sound reasonable?Reply to this email directly or view it on GitHubhttps://github.com//issues/98#issuecomment-35675937
.
from moq4.
I have published this fix for now. @kapdave plz update to the latest version and it should be fixed.
from moq4.
Thank you guys!
from moq4.
Great work!
from moq4.
Related Issues (20)
- Mocking Blobclient.DownloadContentAsync() HOT 3
- Poll on SponsorLink HOT 1
- Should allow null references as constructor parameters. HOT 1
- Replacement for Moq.MethodCallReturns'2 HOT 3
- The public API is still missing nullable reference type annotations HOT 1
- a minor changes to improve the readability HOT 2
- Mock verification slow with It.Is(Expression) HOT 5
- [Feature Request] Make it possible to moq concrete classes HOT 1
- Moq dependency uprev is not working as expected HOT 1
- SponsorLink Integration Makes Moq Unuasable due to PII and GDPR Requirements HOT 9
- Add the ability to compare ref argument by value HOT 1
- Cannot cast inside the Action<T> parameter of Verify method
- Wrong Setup by using String interpolation within It.Is<string> HOT 4
- Question: would it make sense to call verify all on a strict mock when the mock gets disposed?
- `DefaultValueProvider` extensibility
- Some source code files is filled with comments like: "Unmerged change from project "
- Exception throw in dotnet8 (working in dotnet6) HOT 2
- VerifySet throws TargetInvocationException when constructer refers to itself
- Add ability for asynchronously waiting for an invocation
- Moq library throwing TypeIniatilizationException. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moq4.