Skip to content

Commit 6209908

Browse files
committed
changes from testing anyCPU
1 parent d635e43 commit 6209908

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

content/learning-paths/servers-and-cloud-computing/dotnet-migration/1-create-orchardcore-app.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,19 @@ In this section, you will learn how to create and compile a basic [OrchardCore](
1414

1515
1. Launch an Azure Cobalt instance running Ubuntu 24.04, and open port 8080 to the internet. For instructions on how to do this, see the [Create an Azure Cobalt 100 VM](../../cobalt) Learning Path.
1616

17-
2. **Install .NET SDK**: Follow the instructions on the [.NET download page](https://dotnet.microsoft.com/download) to install the SDK for your operating system.
17+
2. **Install .NET SDK**:
1818

19-
3. **Verify installations**: Open a terminal and run the following commands to verify the installations:
19+
```bash
20+
wget https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb
21+
sudo dpkg -i packages-microsoft-prod.deb
22+
sudo apt-get update
23+
sudo apt-get install -y dotnet-sdk-8.0
24+
```
25+
26+
3. **Verify installations**:
2027

2128
```bash
2229
dotnet --version
23-
node --version
2430
```
2531

2632
## Step 2: Install the OrchardCore Templates

content/learning-paths/servers-and-cloud-computing/dotnet-migration/3-any-cpu.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ layout: learningpathall
1010

1111
In this section, you will learn how to configure and run your OrchardCore application on both Arm and x86 architectures using the .NET AnyCPU configuration. This approach allows your application to be architecture agnostic, providing flexibility and ease of deployment across different hardware platforms.
1212

13+
The AnyCPU feature has been around since .NET 2, but it's current incarnation was released in .NET Framework 4.5.
14+
1315
## Configure the project for AnyCPU
1416

1517
To make your OrchardCore application architecture agnostic, you need to configure it to use the AnyCPU platform target. This allows the .NET runtime to choose the appropriate architecture at runtime.
@@ -35,10 +37,16 @@ To make your OrchardCore application architecture agnostic, you need to configur
3537
4. Run the application:
3638

3739
```bash
38-
dotnet run
40+
dotnet run --urls http://0.0.0.0:8080
3941
```
4042

41-
Your application should now be runnable on any architecture.
43+
Your application should now be runnable on any architecture. All you have to do is copy the `MyOrchardCoreApp` directory to any computer with the .NET 8 Framework installed and run
44+
45+
```bash
46+
dotnet ./bin/Release/net8.0/MyOrchardCoreApp.dll --urls http://0.0.0.0:8080
47+
```
48+
49+
From within the `MyOrchardCoreApp` directory.
4250

4351
## Benefits of architecture agnostic applications
4452

content/learning-paths/servers-and-cloud-computing/dotnet-migration/4-dotnet-versions.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ layout: learningpathall
88

99
# Evaluate .NET versions for performance on Arm
1010

11-
In this section, we will explore the performance characteristics of different .NET versions on Arm architecture. Understanding which versions perform best and the features they offer can help you make informed decisions when developing applications for Arm-based systems.
12-
13-
## .NET versions overview
11+
Understanding which versions perform best and the features they offer can help you make informed decisions when developing applications for Arm-based systems.
1412

1513
.NET has evolved significantly over the years, with each version introducing new features and performance improvements. Here, we will focus on the key versions that have notable performance implications for Arm architecture.
1614

0 commit comments

Comments
 (0)