-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to build with EF 2.1.300-rc1-008673 #469
Comments
Did you have .net core sdk 2.1-rc installed? and please include the full stacktrace |
Hi @thiennn, sorry for the late answer. Yes, I've sdk 2.1-rc1 installed, build is 8673. the stack trace is the following: System.InvalidOperationException: No suitable constructor found for entity type 'Uri'. The following parameters could not be bound to properties of the entity: 'flags', 'uriParser', 'uri', 'uriString', 'uriString', 'dontEscape', 'baseUri', 'relativeUri', 'dontEscape', 'uriString', 'uriKind', 'baseUri', 'relativeUri', 'serializationInfo', 'streamingContext', 'baseUri', 'relativeUri'. |
The error looks weird. Did you make any change on the source code? Could you describle steps you have done. We haven't seen this kind of error. We have Ubuntu build on CI |
Well, everything was working, ,then I performed a dist upgrade sequence and the system updated dotnet sdk to 2.1.200-preview. At that point I started to face this error: "The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1." on build. I removed dotnet sdk and installed the latest one: 2.1.300-rc1. The build now is ok, but I've issues in building the model. I suspect it's something related to this one: dotnet/efcore#11074 If you go down 'til the boxofnotgoodery's comment, he is mentioning System.Uri as a possible issue's root cause. Anyhow, I badly suspect this could be an EF issue and not a simplecommerce's one, I've opened the issue just to track down that it's currently not working with 2.1.300-rc1. I was wondering too if there's a way to signal this problem to the EF's people. |
UH, just to answer to your question: no I've not any changes. I've downloaded the git repo and rebuild. |
Now we have upgraded to 2.1.0 RTM. Please install the official 2.1 SDK (v2.1.300) and try again |
I'll give it a try once back at home. |
Hi @thiennn, just upgrading to final dotnet 2.1.0 wasn't enough, I had to uninstall dotnet completely. Once reinstalled I performed a full clean/rebuild cycle and everything is fine. Thx |
Running the build script, the build fails with following error:
No suitable constructor found for entity type 'Uri'. The following parameters could not be bound to properties of the entity: 'flags', 'uriParser', 'uri', 'uriString', 'uriString', 'dontEscape', 'baseUri', 'relativeUri', 'dontEscape', 'uriString', 'uriKind', 'baseUri', 'relativeUri', 'serializationInfo', 'streamingContext', 'baseUri', 'relativeUri'.
Linux thinkMachine 4.4.0-124-generic #148-Ubuntu SMP Wed May 2 13:00:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: