Error NU1102: Unable to find package runtime.osx-arm64.Microsoft.DotNet.ILCompiler with version (= 7.0.4)

Yahya Zein 0 Reputation points
2023-04-11T00:52:56.7733333+00:00

Hey all, I'm getting the below error when trying to build a solution for the first time on my Mac (with an M1 chip). The problem being that when looking at the versions for this nuget package here -> https://www.nuget.org/packages/runtime.osx-arm64.Microsoft.DotNet.ILCompiler/ it seems that there isn't a version for 7.0.4? And only for the .NET 8 preview. I'd love to change the target framework to .NET 8 however reading up on here -> https://devblogs.microsoft.com/dotnet/announcing-dotnet-8-preview-2/ it seems like Visual Studio for Mac support isn't yet available. Do I have much options here? Or is it that I'm missing an sdk (I have installed both .NET 8 preview and .NET 7 sdks)

Error NU1102: Unable to find package runtime.osx-arm64.Microsoft.DotNet.ILCompiler with version (= 7.0.4)
  - Found 2 version(s) in nuget.org [ Nearest version: 8.0.0-preview.1.23110.8 ] (NU1102) (CharityAdmin.Api)
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
701 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 57,731 Reputation points
    2023-04-17T16:30:45.8966667+00:00

    the .net 7 version of Microsoft.DotNet.ILCompiler does not support Mac arm. you need to wait for .net 8. you could use visual audio code on Mac with net 8. There is a prerelease channel for visual studio Mac, but I don't believe net 8 support is there yet.

    1 person found this answer helpful.
    0 comments No comments