You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,31 +43,31 @@ This command installs the OrchardCore project templates, which you will use to c
43
43
44
44
1.**Create a new project**: Use the `dotnet` CLI to create a new OrchardCore application.
45
45
46
-
```bash
47
-
dotnet new occms -n MyOrchardCoreApp
48
-
```
46
+
```bash
47
+
dotnet new occms -n MyOrchardCoreApp
48
+
```
49
49
50
50
This command creates a new OrchardCore CMS application in a directory named `MyOrchardCoreApp`.
51
51
52
52
2.**Navigate to the project directory**:
53
53
54
-
```bash
55
-
cd MyOrchardCoreApp
56
-
```
54
+
```bash
55
+
cd MyOrchardCoreApp
56
+
```
57
57
58
58
## Step 4: Run the OrchardCore application
59
59
60
60
1.**Build the application**: Compile the application using the following command:
61
61
62
-
```bash
63
-
dotnet build
64
-
```
62
+
```bash
63
+
dotnet build
64
+
```
65
65
66
66
2.**Run the application**: Start the application with:
67
67
68
-
```bash
69
-
dotnet run --urls http://0.0.0.0:8080
70
-
```
68
+
```bash
69
+
dotnet run --urls http://0.0.0.0:8080
70
+
```
71
71
72
72
3.**Access the application**: Open a web browser and navigate to `http://[instance IP]:8080` to see your OrchardCore application in action, where `[instance IP]` is the public IP of your Azure Cobalt instance.
The `-mcpu=neoverse-n2` flag specifies the Cobalt architecture, and `-O3` ensures that maximum optimizations are completed (including SIMD opimizations).
117
117
118
-
In the next section, you will explore the tradeoffs of building native AOT arm64 binaries.
118
+
In the next section, you will explore how to make your build architecture agnostic with the anyCPU feature.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/dotnet-migration/3-any-cpu.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,25 +20,25 @@ To make your OrchardCore application architecture agnostic, you need to configur
20
20
2. Locate the `.csproj` file for your project.
21
21
3. Modify the `<PlatformTarget>` element to `AnyCPU`:
22
22
23
-
```xml
24
-
<PropertyGroup>
25
-
<PlatformTarget>AnyCPU</PlatformTarget>
26
-
</PropertyGroup>
27
-
```
23
+
```xml
24
+
<PropertyGroup>
25
+
<PlatformTarget>AnyCPU</PlatformTarget>
26
+
</PropertyGroup>
27
+
```
28
28
29
29
4. Save the changes to the `.csproj` file.
30
30
31
31
## Build once, run anywhere
32
32
33
-
```bash
34
-
dotnet build -c Release
35
-
```
33
+
```bash
34
+
dotnet build -c Release
35
+
```
36
36
37
37
4. Run the application:
38
38
39
-
```bash
40
-
dotnet run --urls http://0.0.0.0:8080
41
-
```
39
+
```bash
40
+
dotnet run --urls http://0.0.0.0:8080
41
+
```
42
42
43
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
0 commit comments