Giter VIP home page Giter VIP logo

dotnet-sql-dev's Introduction

dotnet-sql-dev

A simple example of a .NET 5.0 container development environment for VSCode with a related SQL Server 2019 container

Installation

Download and unpack or git clone this repo to a folder of your choosing.

Usage

Ctrl-Shift-P (or F1) and then Remote Containers: Open Folder in Container... choosing the folder where you unpacked or cloned this repo.

The files of interest are in the .devcontainer folder:

Please note that all of the above only engage the development container. You may also want to build a container image for testing and deployment as part of the project. See ASP.NET Core in a Container for an example, although, given the above, you would not need to install .NET or C# locally, as it is already in the development container. The development container builds, and the application contain is built.

To begin building an ASP.NET app, for instance, you might try:

  • Launch the VSCode terminal (Ctrl-Shift-`), then dotnet new webapi --no-https
  • In VSCode, Ctrl-Shift-P then .NET: Generate Assets for Build and Debug
  • For some reason, I needed to restart VSCode after the above.
  • In VSCode, Ctrl-Shift-P then Docker: Add Docker Files to Workspace..., then .NET: ASP.NET Core, then Linux, then 5000. I select Yes to generate the Docker Compose files, but this is not necessary if you only need a Dockerfile.

For a decent introduction to developing inside a container with VSCode, see this article.

Contributing

Please open an issue to suggest changes.

License: Apache 2.0

dotnet-sql-dev's People

Contributors

bowmanjd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.