Though the MonoAOTCompiler Task is included in the SDK in https://github.com/dotnet/runtime/blob/main/src/mono/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/Sdk/Sdk.props and should be accessible when using the NuGet, adding the second option to the MonoAOTCompiler task README allows for greater visibility on how to directly implement one's own UsingTask.
Fixes #47630
</MonoAOTCompiler>
</Target>
```
+
+------------
+Use `UsingTask` directly
+## In the project file
+```
+<!-- Import the NuGet package into the project -->
+<ItemGroup>
+ <PackageReference Include="Microsoft.NET.Runtime.MonoAOTCompiler.Task" Version="<desired-dotnet-6-sdk-version>" GeneratePathProperty="true" />
+</ItemGroup>
+
+<UsingTask TaskName="MonoAOTCompiler"
+ AssemblyFile="$(PkgMicrosoft_NET_Runtime_MonoAOTCompiler_Task)/tools/<target-framework>/MonoAOTCompiler.dll" />
+
+<!-- Use the MonoAOTCompiler task in a target -->
+<Target>
+ <MonoAOTCompiler
+ CompilerBinaryPath="$(CompilerBinaryPath)"
+ Assemblies="@(Assemblies)"
+ <!-- Other parameters -->
+ >
+ <Output TaskParameter="CompiledAssemblies" ItemName="CompiledAssemblies" />
+ </MonoAOTCompiler>
+</Target>
+```
\ No newline at end of file