Skip to content

PublishAot warning with net8.0 #28823

@am11

Description

@am11

With this csproj:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <PublishAot>true</PublishAot>
  </PropertyGroup>

</Project>

dotnet publish is reporting a false positive warning:

/Users/am11/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.0-alpha.1.22527.6/build/Microsoft.DotNet.ILCompiler.SingleEntry.targets(51,5): warning : Delete explicit 'Microsoft.DotNet.ILCompiler' package reference in your project file. Explicit 'Microsoft.DotNet.ILCompiler' package reference can run into version errors.

Generating native code
...

Version used: 8.0.100-alpha.1.22528.3 (daily build)

cc @sbomer

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions