microservices-demo / orders.net Goto Github PK
View Code? Open in Web Editor NEWThe orders service (written in .NET) for the Microservices Demo.
License: Apache License 2.0
The orders service (written in .NET) for the Microservices Demo.
License: Apache License 2.0
When HalKit NuGet dependency is added via project.json
{
"dependencies": {
"HalKit": "0.8.0"
},
Then the application in the runtime throws
System.MissingMethodException: Method not found: 'Void Tavis.UriTemplates.UriTemplate..ctor(System.String, Boolean)'.
at HalKit.Services.LinkResolver.ResolveLink(Link link, IDictionary`2 parameters)
at HalKit.HalClient.<SendRequestAsync>d__48`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at HalKit.HalClient.<SendRequestAndGetBodyAsync>d__47`1.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at CustomerOrdersApi.ProductsController.<>c__DisplayClass10_0.<Create>b__4(Task`1 task) in /app/Controllers/OrdersController.cs:line 130
at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) System.MissingMethodException: Method not found: 'Void Tavis.UriTemplates.UriTemplate..ctor(System.String, Boolean)'.
at HalKit.Services.LinkResolver.ResolveLink(Link link, IDictionary`2 parameters)
at HalKit.HalClient.<SendRequestAsync>d__48`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at HalKit.HalClient.<SendRequestAndGetBodyAsync>d__47`1.MoveNext()<---
When the same dependency is added as git submodule
git submodule add https://github.com/viagogo/HalKit/
cd HalKit/
git checkout v0.8.0
cd ..
git add HalKit/
git commit -m "use HalKit submoduile at tag v0.8.0"
git push
rm -fr HalKit/test # this folder is not needed for running
then everything works fine.
So it looks like dotnet restore
on linux does something strange.
PS. Adding the dependency on the latest version of Tavis.UriTemplates ("Tavis.UriTemplates": "1.1.0"
) also did not help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.