Skip to content

Commit

Permalink
docs: update .Net versions
Browse files Browse the repository at this point in the history
Co-Authored-By: Julia March <[email protected]>
  • Loading branch information
davlgd and juliamrch committed Feb 27, 2024
1 parent 88b8251 commit e37dab1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion content/changelog/2024-02-27-images-update-part2.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: The best is yet to come
excludeSearch: true
---

Earlier this month, we published [a first set of updates](/changelog/2024-02-02-images-update/) for Docker, Erlang, Go, Haskell, Ruby and Rust. Some days ago, we finished this work and all our images are now up-to-date. This process occurred with no impact for our users.
Earlier this month, we published [a first set of updates](/changelog/2024-02-02-images-update/) for Docker, Erlang, Go, Haskell, Ruby and Rust. Some days ago, we finished this work and all images are now up-to-date. This process occurred with no impact for our users.

Check warning on line 15 in content/changelog/2024-02-27-images-update-part2.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-02-27-images-update-part2.md#L15

[Google.We] Try to avoid using first-person plural like 'we'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'we'.", "location": {"path": "content/changelog/2024-02-27-images-update-part2.md", "range": {"start": {"line": 15, "column": 21}}}, "severity": "WARNING"}

Check warning on line 15 in content/changelog/2024-02-27-images-update-part2.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-02-27-images-update-part2.md#L15

[Google.We] Try to avoid using first-person plural like 'we'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'we'.", "location": {"path": "content/changelog/2024-02-27-images-update-part2.md", "range": {"start": {"line": 15, "column": 160}}}, "severity": "WARNING"}

Check warning on line 15 in content/changelog/2024-02-27-images-update-part2.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/changelog/2024-02-27-images-update-part2.md#L15

[Google.We] Try to avoid using first-person plural like 'our'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'our'.", "location": {"path": "content/changelog/2024-02-27-images-update-part2.md", "range": {"start": {"line": 15, "column": 258}}}, "severity": "WARNING"}

As mentioned in a previous post, this enables [the new `healtcheck` feature](/changelog/2024-02-26-healthcheck-for-everyone/) available for all applications. New images include security patches, Linux kernel 6.7.1, OpenSSL 3.2.1 and Node.js 20.11.0 by default. For the latter, you can change it in the updated images via the `CC_NODE_VERSION` [environment variable](/doc/reference/reference-environment-variables/#commons-to-all-applications).

Expand Down
2 changes: 1 addition & 1 deletion content/doc/reference/reference-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ If `TAILSCALE_LOGIN_SERVER` is provided, the agent will be configured to reach a
|`CC_DOTNET_PROFILE` | Override the build configuration settings in your project. | Release |
|`CC_DOTNET_PROJ` | The name of your project file to use for the build, without the .csproj / .fsproj / .vbproj extension. | |
|`CC_DOTNET_TFM` | Compiles for a specific framework. The framework must be defined in the project file. Example : `net5.0` | |
|`CC_DOTNET_VERSION` | Choose the .NET Core version between `5.0`,`6.0`. | 6.0 |
|`CC_DOTNET_VERSION` | Choose the .NET Core version between `6.0`,`8.0`. | 8.0 |
|`CC_RUN_COMMAND` | Custom command to run your application. | |

## Elixir
Expand Down
12 changes: 6 additions & 6 deletions static/partials/language-specific-deploy/dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

### .NET version

The default version used on Clever Cloud is `6.0`. You can change it to `5.0` by setting the `CC_DOTNET_VERSION` environment variable to `5.0`. No support will be provided for end-of-life versions.
The default version used on Clever Cloud is `8.0`. You can change it by setting the `CC_DOTNET_VERSION` environment variable to `6.0`. We don't support non-LTS and older versions.

Check warning on line 6 in static/partials/language-specific-deploy/dotnet.md

View workflow job for this annotation

GitHub Actions / vale

[vale] static/partials/language-specific-deploy/dotnet.md#L6

[Google.We] Try to avoid using first-person plural like 'We'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'We'.", "location": {"path": "static/partials/language-specific-deploy/dotnet.md", "range": {"start": {"line": 6, "column": 136}}}, "severity": "WARNING"}

Check notice on line 6 in static/partials/language-specific-deploy/dotnet.md

View workflow job for this annotation

GitHub Actions / vale

[vale] static/partials/language-specific-deploy/dotnet.md#L6

[Google.Acronyms] Spell out 'LTS', if it's unfamiliar to the audience.
Raw output
{"message": "[Google.Acronyms] Spell out 'LTS', if it's unfamiliar to the audience.", "location": {"path": "static/partials/language-specific-deploy/dotnet.md", "range": {"start": {"line": 6, "column": 157}}}, "severity": "INFO"}

### Requirements

Expand All @@ -17,10 +17,10 @@ Let's take an example with the [simple-feed-reader project](https://github.com/d

First, you need to add the `APP_FOLDER=SimpleFeedReader` environment variable to define the application folder inside the Git repository.

During deployment, the `SimpleFeedReader.csproj` file and the target framework `net5.0` are automatically detected. Then, the .NET project is published:
During deployment, the runtime automatically detects the `SimpleFeedReader.csproj` file and the target framework `net8.0`. Then, it publishes the .NET project:

```bash
dotnet publish --framework net5.0 --configuration Release
dotnet publish --framework net8.0 --configuration Release
```

No additional configuration is required (unless multiple project files or target frameworks are present, see the documentation below).
Expand All @@ -41,7 +41,7 @@ If your project file defines multiple targets, like :
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0;net6.0</TargetFramework>
<TargetFramework>net6.0;net8.0</TargetFramework>
</PropertyGroup>
...
```
Expand All @@ -51,7 +51,7 @@ You must specify the one you want to run, with the `CC_DOTNET_TFM` environment v
If `CC_DOTNET_TFM` is specified, then the executable produced by this target is used to start the application.

```bash
CC_DOTNET_TFM=net5.0
CC_DOTNET_TFM=net6.0
```

### Dependencies
Expand Down Expand Up @@ -84,7 +84,7 @@ CC_DOTNET_PROFILE=Debug

If you need to run a custom command (or just pass options to the program), you can specify it through the `CC_RUN_COMMAND` environment variable.

For instance, you can have `CC_RUN_COMMAND=./bin/Release/net5.0/myapp <options>`.
For instance, you can have `CC_RUN_COMMAND=./bin/Release/net6.0/myapp <options>`.

### Private dependencies

Expand Down

0 comments on commit e37dab1

Please sign in to comment.