-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Enhance the .NET example #401
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
Conversation
jfuss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple small things to address.
README.rst
Outdated
|
|
||
| You should then build your ZIP file using your normal build process. | ||
|
|
||
| You can find a .NET Core example in the `sam init` folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the wording here to be 'You can generate a .NET Core example by sam init --runtime dotnetcore'? While it is an example, its specific to cookiecutter and could be hard to parse. Generating the sample seems like a better experience to see and play with.
| @@ -0,0 +1,43 @@ | |||
|
|
|||
| Microsoft Visual Studio Solution File, Format Version 12.00 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have been committed? Looks like a ide generated file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfuss in dotnet world the Solution file "glues" the projects. It is an artifact used to make it easy to restore NuGet packages or build the projects in one go. It is an abstraction created by Microsoft.
Started with Visual Studio, but if you use JetBrains Rider, it recognises and uses it.
When you are using Visual Studio Code you do not need it, since VS Code opens a folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O cool. Ya am not a .NET dev :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem. Sharing is caring! ;)
|
@joaoasrosa This is really awesome! Thanks for doing it and then redoing it :). I am going to hold off and merge for right now. I want to pull down the commit(s) and run locally, as a sanity test (we don't have deep tests for any of this yet). Unfortunately, I am not in a spot to pull this down right now. I may have some time tomorrow when I get back from PyCon. If not, I will handle Wednesday for sure. |
|
@jfuss please let me know if I miss anything. Cheers |
README.rst
Outdated
| Transform: AWS::Serverless-2016-10-31 | ||
|
|
||
| Resources: | ||
| ExampleJavaFunction: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When possible, mind changing to ExampleDotNetFunction?
|
That is awesome @joaoasrosa, thank you so much for contributing to that! I knew there was a better way (Cake) but wasn't sure what .Net folks do these days -- Much appreciated! |
|
@heitorlessa thanks for pointing out. :) |
|
@jfuss did you confirm the solution in the PR? |
|
@joaoasrosa I did. Thanks for the reminder ping. |
…aces command (aws#401) * remove output-dir flag and add unformatted flag * fix Optional[bool] params
This PR enhance the .NET example in the
sam initexamples:By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.