Skip to content

Build error building on macOS 14 #2804

Open
@ghost

Description

Have you checked Github Issues for similar errors? YES

Exception
/Users/steve/.nuget/packages/cosmos.build/0.1.0-localbuild/build/Cosmos.Build.targets(185,9): error MSB4062: The "Cosmos.Build.Tasks.IL2CPU" task could not be loaded from the assembly /Users/steve/.nuget/packages/cosmos.build/0.1.0-localbuild/build/../tools/net48/Cosmos.Build.Tasks.dll. Could not load file or assembly 'Cosmos.Build.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5ae71220097cb983'. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [/Users/steve/source/jos/jos.csproj]

Visual Studio Output Logs
Post the entire output log given by Visual Studio for the build

How To Reproduce

  1. Git clone the Cosmos sources as per the instructions.
  2. Run make, sudo make install in the Cosmos folder.
  3. Run dotnet new --install ./source/templates/csharp/
  4. In a new folder, run dotnet new cosmosCSKernel -n jos
  5. Edit the Kernel.cs to enter a valid namespace (to replace the template string).
  6. Compile with dotnet build.

Screenshots
If applicable, add screenshots to help explain your problem.

Context
Before posting please confirm that the following are in order
[X] Both Cosmos VS Extensions are installed
[ ] In the NuGet Package Manager "Include prerelease" is selected
[ ] The Cosmos NuGet package store is selected (NOT nuget.org) in 'Manage NuGet Packages'
[X] The Cosmos NuGet packages are installed

I'm unclear why it is seemingly attempting to load the net48 version of Cosmos.Build.Tasks.dll despite the above. Have I missed a step?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions