Skip to content
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

Automatically restore & run the app from Visual Studio #5

Merged
merged 3 commits into from
Jun 25, 2020
Merged

Automatically restore & run the app from Visual Studio #5

merged 3 commits into from
Jun 25, 2020

Conversation

vijayrkn
Copy link
Collaborator

When this app is opened in 16.7 Preview 4 or above the connected services tab will show a restore option. Once the dependency is restored, the app can be run without any changes in the code.

image

@vijayrkn vijayrkn requested a review from bradygaster June 25, 2020 04:07
@@ -18,6 +18,7 @@ public class PortsOfEntryController : ControllerBase
private readonly DataContext dataContext;
private readonly IConfiguration configuration;
public PortsOfEntryController (DataContext dataContext, IConfiguration configuration) {
dataContext.Database.EnsureCreated();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇 oooo!

@@ -0,0 +1,69 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious what's the purpose of the arm template if we already have the cli script? not a complaint, just curious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VS automatically picks up the arm template on restore and creates all required resources as needed.

@vijayrkn vijayrkn merged commit ddef6d0 into bradygaster:master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants