Skip to content

Commit 24698bd

Browse files
committed
AOT: Move note about project files from Console page to NativeAOT page
1 parent ef17a2d commit 24698bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/appendix/Appendix-A:-NativeAOT-on-PC.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ FNA now has support for [NativeAOT](https://learn.microsoft.com/en-us/dotnet/cor
66

77
To get started, please read through the [official NativeAOT documentation](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/). Make sure to install the prerequisites listed for your OS.
88

9+
To make a NativeAOT build, you should make .NET 8 project files for your game - instead of the usual FNA.csproj, you will reference FNA.Core.csproj. The code and content should largely be able to stay the same, with the exception of code that requires a JIT (i.e. you can't emit IL at runtime, as you might expect from ahead-of-time compilation).
10+
911
To make your .csproj compatible with NativeAOT, add the following:
1012
```
1113
<PropertyGroup>

docs/appendix/Appendix-B:-FNA-on-Consoles.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ FNA supports deploying to Xbox and Nintendo Switch via NativeAOT. FNA does not h
66

77
## General Advice
88

9-
For all console builds, you should make .NET 8 project files for your game - instead of the usual FNA.csproj, you will reference FNA.Core.csproj. The code and content should largely be able to stay the same, with the exception of code that requires a JIT (i.e. you can't emit IL at runtime, as you might expect from ahead-of-time compilation).
10-
119
While the runtimes require a console NDA, there are some things you can do to make your game more robust that just-so-happens to make console support easier, without access to any particular SDK. If you're familiar with consoles, none of these will be surprising:
1210

1311
### NativeAOT
1412

15-
All platforms use NativeAOT as the runtime. If you want a solid head-start, you should read Appendix A. Don't underestimate this step, especially if your game heavily depends on .NET's reflection features!
13+
All console builds use NativeAOT as the runtime. If you want a solid head-start, you should read Appendix A. Don't underestimate this step, especially if your game heavily depends on .NET's reflection features!
1614

1715
### Window Size Changes
1816
Even if your window is not resizable, operating systems (including Windows!) may forcibly change the window size for a multitude of reasons, and so the graphics device will reset.

0 commit comments

Comments
 (0)