Comments (9)
Thank you for that - I've found the issue! Your project worked for me and so I compared my command line with yours and realised that you are using the Visual Studio 2017 folder as part of your path. I never use that and always use something like d:\wip. The space in the path caused the command line arguments to get thrown off.
If you update the FunctionMonkey.Compiler package it should now work for you.
Thanks for your help - because of how I set up my environments it would have been super hard for me to find this on my own.
from functionmonkey.
There's been a few changes since my original blog post (not sure why you're getting that error though) and its properly documented over here so worth checking this:
http://functionmonkey.azurefromthetrenches.com/guides/gettingStarted.html
I'll update the blog post with a pointer to the new docs.
To add, what I meant by those files is the one you've entered into your solution. Sometimes people have made subtle differences when typing which cause a problem I haven't anticipated and so you don't get a very helpful message. Really appreciate people sharing this stuff as it helps me massively. Thanks!
from functionmonkey.
Monkey.zip
Here it is. Maybe I totally messed something up, but I tried it many times.
from functionmonkey.
Thanks for getting in touch!
Could you share the code for the command you are basing the function on please? And your IFunctionAppConfiguration implementation also. Thanks!
from functionmonkey.
Sorry, I forgot to add a link for the tutorial. I follwoed this one: https://www.azurefromthetrenches.com/build-elegant-rest-apis-with-azure-functions/
public class GetBlogPostQueryHandler : ICommandHandler<GetBlogPostQuery, BlogPost>
{
public Task<BlogPost> ExecuteAsync(GetBlogPostQuery command, BlogPost previousResult)
{
return Task.FromResult(new BlogPost
{
Body = "Our blog posts main text",
PostId = command.PostId,
Title = "Post Title"
});
}
}```
```cs
public class BlogPost
{
public Guid PostId { get; set; }
public string Title { get; set; }
public string Body { get; set; }
}
public class GetBlogPostQuery : ICommand<BlogPost>
{
public Guid PostId { get; set; }
}
public class ServerlessBlogConfiguration : IFunctionAppConfiguration
{
public void Build(IFunctionHostBuilder builder)
{
builder
.Setup((serviceCollection, commandRegistry) =>
{
commandRegistry.Discover<ServerlessBlogConfiguration>();
})
.Functions(functions => functions
.HttpRoute("/api/v1/post", route => route
.HttpFunction<GetBlogPostQuery>(HttpMethod.Get)
)
);
}
}
from functionmonkey.
Did the new docs help?
from functionmonkey.
Unfortuately not
I followed the instructions and try to compile hello world example.
I got this:
1>------ Build started: Project: Monkey, Configuration: Debug Any CPU ------ 1>Monkey -> C:\Users\Jan Skála\Documents\Visual Studio 2017\Projects\Talxis\Functions\Monkey\bin\Debug\netstandard2.0\bin\Monkey.dll 1> 1>Unhandled Exception: System.FormatException: String was not recognized as a valid Boolean. 1> at System.Boolean.Parse(String value) 1> at FunctionMonkey.Compiler.Program.Main(String[] args) in D:\wip\myOpenSource\functionMonkey\Source\FunctionMonkey.Compiler\Program.cs:line 22 1>C:\Users\Jan Skála\.nuget\packages\functionmonkey.compiler\0.10.1-beta000\build\netstandard1.0\FunctionMonkey.Compiler.targets(10,5): error MSB3073: The command "dotnet "C:\Users\Jan Skála\.nuget\packages\functionmonkey.compiler\0.10.1-beta000\build\netstandard1.0\..\..\tools\netcoreapp2.0/FunctionMonkey.Compiler.dll" C:\Users\Jan Skála\Documents\Visual Studio 2017\Projects\Talxis\Functions\Monkey\bin\Debug\netstandard2.0\bin\Monkey.dll" exited with code -532462766. 1>Done building project "Monkey.csproj" -- FAILED.
If you want, I can zip you the project.
from functionmonkey.
If you could zip the project for me that would be great! Thank you!
from functionmonkey.
Works like a charm, will try to publish to azure. Thanks once again.
from functionmonkey.
Related Issues (20)
- CamelCaseJsonSerializer does not work for ExpandoObject
- HttpResponseHandler not used for BadParameterResponse in http.csharp.handlebars HOT 1
- Receive and add CancellationToken to DI to enable for graceful shutdowns HOT 1
- Compiling Azure Functions with NuGet package dependencies fails HOT 13
- Problems with StorageQueue in 4.0.56-beta4 HOT 2
- Event Grid Triggers
- Unable to upload a file
- HowTo BeforeServiceProviderBuild HOT 1
- Solution Structure
- Http Trigger: AuthorizationLevel.Anonymous runs ClaimsPrincipalAuthorization but it should be ignored HOT 3
- How to access Cookie (and QueryString) collection ?
- Future of Function Monkey HOT 10
- Compiler Build Error with Entity Framework Core HOT 4
- Add Validators via Assembly search not working HOT 2
- Primitives / Arrays in HTTP body
- Need a way to access full HttpContext HOT 2
- FunctionMonkey.Compiler can't be built
- Accessing request headers
- Azure App Configuration in Configuration.
- CosmosDB lease container appears inoperable
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 functionmonkey.