
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
- Git clone the Cosmos sources as per the instructions.
- Run make, sudo make install in the Cosmos folder.
- Run dotnet new --install ./source/templates/csharp/
- In a new folder, run dotnet new cosmosCSKernel -n jos
- Edit the Kernel.cs to enter a valid namespace (to replace the template string).
- 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?