Skip to content

Enhance the .NET example - #401

Merged
jfuss merged 12 commits into
aws:developfrom
joaoasrosa:dotnet
May 21, 2018
Merged

jfuss merged 12 commits into
aws:developfrom
joaoasrosa:dotnet

Conversation

@joaoasrosa

Copy link
Copy Markdown
Contributor

This PR enhance the .NET example in the sam init examples:

  • Adds the solution file
  • Adds Cake, the DSL to build .NET solution
  • Updates the README

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jfuss jfuss left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread 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.

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor

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 :)

Copy link
Copy Markdown
Contributor Author

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! ;)

@jfuss jfuss added the stage/in-progress A fix is being worked on label May 14, 2018
@jfuss

jfuss commented May 14, 2018

Copy link
Copy Markdown
Contributor

@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.

@joaoasrosa

Copy link
Copy Markdown
Contributor Author

@jfuss please let me know if I miss anything. Cheers

Comment thread README.rst Outdated
Transform: AWS::Serverless-2016-10-31

Resources:
ExampleJavaFunction:

Copy link
Copy Markdown
Contributor

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?

@heitorlessa

Copy link
Copy Markdown
Contributor

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!

@joaoasrosa

Copy link
Copy Markdown
Contributor Author

@heitorlessa thanks for pointing out. :)
Cake makes thing easier. I'm baking a more comprehensive example with containers. ;)

@joaoasrosa

Copy link
Copy Markdown
Contributor Author

@jfuss did you confirm the solution in the PR?

@jfuss

jfuss commented May 21, 2018

Copy link
Copy Markdown
Contributor

@joaoasrosa I did. Thanks for the reminder ping.

@jfuss
jfuss merged commit c54ed8c into aws:develop May 21, 2018
@joaoasrosa
joaoasrosa deleted the dotnet branch May 21, 2018 14:30
@joaoasrosa joaoasrosa mentioned this pull request May 21, 2018
qingchm pushed a commit to qingchm/aws-sam-cli that referenced this pull request Sep 17, 2021
…aces command (aws#401)

* remove output-dir flag and add unformatted flag

* fix Optional[bool] params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stage/in-progress A fix is being worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants