Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
NETSDK1237 warns you when you list an assembly in PublishReadyToRunPartialAssemblies but also compile it into a ReadyToRun composite image. You can only use partial compilation for assemblies compiled separately. The SDK compiles the assembly fully into the composite image and ignores the PublishReadyToRunPartialAssemblies setting for it.
NETSDK1237 appears when you set both PublishReadyToRunComposite to true and include assemblies in PublishReadyToRunPartialAssemblies in your project file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PublishReadyToRun>true</PublishReadyToRun>
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
</PropertyGroup>
<ItemGroup>
<!-- NETSDK1237 is emitted for each assembly listed here -->
<PublishReadyToRunPartialAssemblies Include="SomeAssembly" />
</ItemGroup>
</Project>
To resolve this warning, choose one of the following options:
- Remove the assemblies from
PublishReadyToRunPartialAssembliesif you want them compiled fully into the composite image. - Set
PublishReadyToRunCompositetofalseif you want to compile assemblies partially and separately instead of into a composite image.