Skip to content

Commit 32ac664

Browse files
authored
Replace net7 with net8 in dogfooding and workflow docs (dotnet#75453)
1 parent c804303 commit 32ac664

File tree

12 files changed

+238
-238
lines changed

12 files changed

+238
-238
lines changed

docs/coding-guidelines/adding-api-guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ the implementation without compat concerns in future releases.
2424

2525
### Determine target framework
2626

27-
`net7.0` is the target framework version currently under development and the new apis
28-
should be added to `net7.0`. [More Information on TargetFrameworks](https://docs.microsoft.com/en-us/dotnet/standard/frameworks)
27+
`net8.0` is the target framework version currently under development and the new apis
28+
should be added to `net8.0`. [More Information on TargetFrameworks](https://docs.microsoft.com/en-us/dotnet/standard/frameworks)
2929

3030
## Making the changes in repo
3131

docs/coding-guidelines/project-guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Below is a list of all the various options we pivot the project builds on:
2525
## Individual build properties
2626
The following are the properties associated with each build pivot
2727

28-
- `$(BuildTargetFramework) -> Any .NETCoreApp or .NETFramework TFM, e.g. net7.0`
28+
- `$(BuildTargetFramework) -> Any .NETCoreApp or .NETFramework TFM, e.g. net8.0`
2929
- `$(TargetOS) -> Windows | Linux | OSX | FreeBSD | [defaults to running OS when empty]`
3030
- `$(Configuration) -> Release | [defaults to Debug when empty]`
3131
- `$(TargetArchitecture) - x86 | x64 | arm | arm64 | [defaults to x64 when empty]`
@@ -60,7 +60,7 @@ A cross-targeting project which targets specific platform with `$(NetCoreAppCurr
6060
A full or individual project build is centered around BuildTargetFramework, TargetOS, Configuration and TargetArchitecture.
6161

6262
1. `$(BuildTargetFramework), $(TargetOS), $(Configuration), $(TargetArchitecture)` can individually be passed in to change the default values.
63-
2. If nothing is passed to the build then we will default value of these properties from the environment. Example: `net7.0-[TargetOS Running On]-Debug-x64`.
63+
2. If nothing is passed to the build then we will default value of these properties from the environment. Example: `net8.0-[TargetOS Running On]-Debug-x64`.
6464
3. When building an individual project (either from the CLI or an IDE), all target frameworks are built.
6565

6666
We also have `RuntimeOS` which can be passed to customize the specific OS and version needed for native package builds as well as package restoration. If not passed it will default based on the OS you are running on.

docs/project/dogfooding.md

Lines changed: 218 additions & 218 deletions
Large diffs are not rendered by default.

docs/workflow/building/libraries/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The libraries build has two logical components, the native build which produces
7676

7777
The build settings (BuildTargetFramework, TargetOS, Configuration, Architecture) are generally defaulted based on where you are building (i.e. which OS or which architecture) but we have a few shortcuts for the individual properties that can be passed to the build scripts:
7878

79-
- `-framework|-f` identifies the target framework for the build. Possible values include `net7.0` (currently the latest .NET version) or `net48` (the latest .NETFramework version). (msbuild property `BuildTargetFramework`)
79+
- `-framework|-f` identifies the target framework for the build. Possible values include `net8.0` (currently the latest .NET version) or `net48` (the latest .NET Framework version). (msbuild property `BuildTargetFramework`)
8080
- `-os` identifies the OS for the build. It defaults to the OS you are running on but possible values include `windows`, `Unix`, `Linux`, or `OSX`. (msbuild property `TargetOS`)
8181
- `-configuration|-c Debug|Release` controls the optimization level the compilers use for the build. It defaults to `Debug`. (msbuild property `Configuration`)
8282
- `-arch` identifies the architecture for the build. It defaults to `x64` but possible values include `x64`, `x86`, `arm`, or `arm64`. (msbuild property `TargetArchitecture`)

docs/workflow/ci/triaging-failures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ and for libraries runs is defined [here](../../../eng/pipelines/libraries/helix-
2323

2424
Many test runs use a non-default product configuration, to allow re-using existing test assets to stress various aspects of the system.
2525
Determine the precise test configuration under which the test has failed. This might be evident from the test job name. For example,
26-
`net7.0-windows-Release-x86-CoreCLR_checked-jitstress1-Windows.10.Amd64.Open` is a libraries test run on Windows with a Release x86 libraries
26+
`net8.0-windows-Release-x86-CoreCLR_checked-jitstress1-Windows.10.Amd64.Open` is a libraries test run on Windows with a Release x86 libraries
2727
build, Checked coreclr build, and setting the `COMPlus_JitStress=1` configuration setting, in the `Windows.10.Amd64.Open` Helix queue.
2828

2929
You need to be careful when reproducing failures to set all the correct environment variables. In the above example, if you look at the

docs/workflow/debugging/coreclr/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Keeping with latest version of Visual Studio is recommended.
6666
},
6767
{
6868
"name": "CORE_LIBRARIES",
69-
// for example net7.0-windows-Debug-x64
69+
// for example net8.0-windows-Debug-x64
7070
"value": "${cmake.installRoot}\\..\\..\\runtime\\<tfm>-windows-<configuration>-<arch>\\"
7171
}
7272
],

docs/workflow/testing/host/using-apphost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ Alternatives to this method include copying the desired apphost to the appropria
2727

2828
For a [framework-dependent application](https://docs.microsoft.com/dotnet/core/deploying/#publish-framework-dependent), you can set the `DOTNET_ROOT` environment variable to point at a local .NET layout.
2929

30-
The [libraries tests](../libraries/testing.md) construct and use such a layout based on your local runtime and libraries build as part of the `libs.pretest` subset. To use that layout, set `DOTNET_ROOT=<repo_root>/artifacts/bin/testhost/net7.0-<os>-<configuration>-<arch>`. Note that the host components (`hostfxr`, `hostpolicy`) in that layout are not from the local build.
30+
The [libraries tests](../libraries/testing.md) construct and use such a layout based on your local runtime and libraries build as part of the `libs.pretest` subset. To use that layout, set `DOTNET_ROOT=<repo_root>/artifacts/bin/testhost/net8.0-<os>-<configuration>-<arch>`. Note that the host components (`hostfxr`, `hostpolicy`) in that layout are not from the local build.

eng/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ function Get-Help() {
7575
Write-Host "Libraries settings:"
7676
Write-Host " -allconfigurations Build packages for all build configurations."
7777
Write-Host " -coverage Collect code coverage when testing."
78-
Write-Host " -framework (-f) Build framework: net7.0 or net48."
79-
Write-Host " [Default: net7.0]"
78+
Write-Host " -framework (-f) Build framework: net8.0 or net48."
79+
Write-Host " [Default: net8.0]"
8080
Write-Host " -testnobuild Skip building tests when invoking -test."
8181
Write-Host " -testscope Scope tests, allowed values: innerloop, outerloop, all."
8282
Write-Host ""

eng/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ usage()
6464
echo "Libraries settings:"
6565
echo " --allconfigurations Build packages for all build configurations."
6666
echo " --coverage Collect code coverage when testing."
67-
echo " --framework (-f) Build framework: net7.0 or net48."
68-
echo " [Default: net7.0]"
67+
echo " --framework (-f) Build framework: net8.0 or net48."
68+
echo " [Default: net8.0]"
6969
echo " --testnobuild Skip building tests when invoking -test."
7070
echo " --testscope Test scope, allowed values: innerloop, outerloop, all."
7171
echo ""

eng/regenerate-download-table.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<Branch Include="Main" Abbr="7.0.X" />
17+
<Branch Include="Main" Abbr="8.0.X" />
1818

1919
<Platform Include="Windows (x64)" Abbr="win-x64" />
2020
<Platform Include="Windows (x86)" Abbr="win-x86" />

src/coreclr/nativeaot/docs/compiling.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The rest of this document covers advanced topics only. Adding an explicit packag
88

99
For using daily builds, you need to make sure the `nuget.config` file for your project contains the following package sources under the `<packageSources>` element:
1010
```xml
11-
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
11+
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
1212
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
1313
```
1414

@@ -21,13 +21,13 @@ from the project's root directory. New package sources must be added after the `
2121

2222
Once you have added the package sources, add a reference to the ILCompiler package either by running
2323
```bash
24-
> dotnet add package Microsoft.DotNet.ILCompiler -v 7.0.0-*
24+
> dotnet add package Microsoft.DotNet.ILCompiler -v 8.0.0-*
2525
```
2626

2727
or by adding the following element to the project file:
2828
```xml
2929
<ItemGroup>
30-
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
30+
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="8.0.0-*" />
3131
</ItemGroup>
3232
```
3333

@@ -49,17 +49,17 @@ Targeting win-arm64 on a Windows x64 host machine,
4949

5050
To target win-arm64 on a Windows x64 host on an advanced scenario where the SDK support is not sufficient (note that these scenarios will generate warnings for using explicit package references), in addition to the `Microsoft.DotNet.ILCompiler` package reference, also add the `runtime.win-x64.Microsoft.DotNet.ILCompiler` package reference to get the x64-hosted compiler:
5151
```xml
52-
<PackageReference Include="Microsoft.DotNet.ILCompiler; runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="7.0.0-preview.2.22103.2" />
52+
<PackageReference Include="Microsoft.DotNet.ILCompiler; runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="8.0.0-preview.2.22103.2" />
5353
```
5454

55-
Note that it is important to use _the same version_ for both packages to avoid potential hard-to-debug issues (use the latest version from the [dotnet7](https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet7/NuGet/Microsoft.DotNet.ILCompiler/7.0.0-preview.2.22103.2/versions)). After adding the package reference, you may publish for win-arm64 as usual:
55+
Note that it is important to use _the same version_ for both packages to avoid potential hard-to-debug issues (use the latest version from the [dotnet8](https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet8/NuGet/Microsoft.DotNet.ILCompiler/)). After adding the package reference, you may publish for win-arm64 as usual:
5656
```bash
5757
> dotnet publish -r win-arm64 -c Release
5858
```
5959

6060
Similarly, to target linux-arm64 on a Linux x64 host, in addition to the `Microsoft.DotNet.ILCompiler` package reference, also add the `runtime.linux-x64.Microsoft.DotNet.ILCompiler` package reference to get the x64-hosted compiler:
6161
```xml
62-
<PackageReference Include="Microsoft.DotNet.ILCompiler; runtime.linux-x64.Microsoft.DotNet.ILCompiler" Version="7.0.0-preview.2.22103.2" />
62+
<PackageReference Include="Microsoft.DotNet.ILCompiler; runtime.linux-x64.Microsoft.DotNet.ILCompiler" Version="8.0.0-preview.2.22103.2" />
6363
```
6464

6565
You also need to specify the sysroot directory for Clang using the `SysRoot` property. For example, assuming you are using one of ARM64-targeting [Docker images](../../../../docs/workflow/building/coreclr/linux-instructions.md#Docker-Images) employed for cross-compilation by this repo, you may publish for linux-arm64 with the following command:

src/coreclr/nativeaot/docs/optimizing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Since `PublishTrimmed` is implied to be true with Native AOT, some framework fea
3939
## Options related to code generation
4040
* `<IlcOptimizationPreference>Speed</IlcOptimizationPreference>`: when generating optimized code, favor code execution speed.
4141
* `<IlcOptimizationPreference>Size</IlcOptimizationPreference>`: when generating optimized code, favor smaller code size.
42-
* `<IlcInstructionSet>`: By default, the compiler targets the minimum instruction set supported by the target OS and architecture. This option allows targeting newer instruction sets for better performance. The native binary will require the instruction sets to be supported by the hardware in order to run. For example, `<IlcInstructionSet>avx2,bmi2,fma,pclmul,popcnt,aes</IlcInstructionSet>` will produce binary that takes advantage of instruction sets that are typically present on current Intel and AMD processors. Run `ilc --help` for the full list of available instruction sets. `ilc` can be executed from the NativeAOT package in your local nuget cache e.g. `%USERPROFILE%\.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\7.0.0-...\tools\ilc.exe` on Windows or `~/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/7.0.0-.../tools/ilc` on Linux.
42+
* `<IlcInstructionSet>`: By default, the compiler targets the minimum instruction set supported by the target OS and architecture. This option allows targeting newer instruction sets for better performance. The native binary will require the instruction sets to be supported by the hardware in order to run. For example, `<IlcInstructionSet>avx2,bmi2,fma,pclmul,popcnt,aes</IlcInstructionSet>` will produce binary that takes advantage of instruction sets that are typically present on current Intel and AMD processors. Run `ilc --help` for the full list of available instruction sets. `ilc` can be executed from the NativeAOT package in your local nuget cache e.g. `%USERPROFILE%\.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\8.0.0-...\tools\ilc.exe` on Windows or `~/.nuget/packages/runtime.linux-arm64.microsoft.dotnet.ilcompiler/8.0.0-.../tools/ilc` on Linux.
4343

4444
## Special considerations for Linux/macOS
4545

0 commit comments

Comments
 (0)