|
| 1 | +# F# (.NET Core Latest) |
| 2 | + |
| 3 | +## Summary |
| 4 | + |
| 5 | +*Develop F# and .NET Core (latest) based applications. Includes all needed SDKs, extensions, and dependencies.* |
| 6 | + |
| 7 | +| Metadata | Value | |
| 8 | +|----------|-------| |
| 9 | +| *Contributors* | The VS Code Team, F# team | |
| 10 | +| *Definition type* | Dockerfile | |
| 11 | +| *Languages, platforms* | .NET Core, F# | |
| 12 | + |
| 13 | +## Using this definition with an existing folder |
| 14 | + |
| 15 | +Note that only the integrated terminal is supported by the Remote - Containers extension. You may need to modify `launch.json` configurations to include the following value if an external console is used. |
| 16 | + |
| 17 | +```json |
| 18 | +"console": "integratedTerminal" |
| 19 | +``` |
| 20 | + |
| 21 | +Beyond that, just follow these steps to use the definition: |
| 22 | + |
| 23 | +1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine. |
| 24 | + |
| 25 | +2. To use VS Code's copy of this definition: |
| 26 | + 1. Start VS Code and open your project folder. |
| 27 | + 2. Press <kbd>F1</kbd> select and **Remote-Containers: Add Development Container Configuration Files...** from the command palette. |
| 28 | + 3. Select the F# (.NET Core Latest) definition. |
| 29 | + |
| 30 | +3. To use latest-and-greatest copy of this definition from the repository: |
| 31 | + 1. Clone this repository. |
| 32 | + 2. Copy the contents of `containers/dotnetcore-latest-fsharp/.devcontainer` to the root of your project folder. |
| 33 | + 3. Start VS Code and open your project folder. |
| 34 | + |
| 35 | +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. |
| 36 | + |
| 37 | +5. Finally, press <kbd>F1</kbd> and run **Remote-Containers: Reopen Folder in Container** to start using the definition. |
| 38 | + |
| 39 | +## Testing the definition |
| 40 | + |
| 41 | +This definition includes some test code that will help you verify it is working as expected on your system. Follow these steps: |
| 42 | + |
| 43 | +1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine. |
| 44 | +2. Clone this repository. |
| 45 | +3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...** |
| 46 | +4. Select the `containers/dotnetcore-latest-fsharp` folder. |
| 47 | +5. When prompted click "Restore" in the notification to restore packages. |
| 48 | +6. After the folder has opened in the container, press <kbd>F5</kbd> to start the project. |
| 49 | +7. You should see "Hello Remote World from the F# Container!" in a terminal window after the program executes. |
| 50 | +8. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. |
| 51 | + |
| 52 | +## License |
| 53 | + |
| 54 | +Copyright (c) Microsoft Corporation. All rights reserved. |
| 55 | + |
| 56 | +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). |
0 commit comments