RazorLight: Can't build project referencing 2.0.0-beta* on MacOS

On latest MacOS with dotnet core 3.1.5, a 3.1 project referencing RazorLight will fail with:

/Users/georgiosd/Documents/studoyo/api/xxxx.csproj : error NU1102: Unable to find package Microsoft.CodeAnalysis.CSharp with version (>= 3.3.0)
/Users/georgiosd/Documents/studoyo/api/xxxx.csproj : error NU1102:   - Found 62 version(s) in nuget.org [ Nearest version: 3.0.0 ]
/Users/georgiosd/Documents/studoyo/api/xxxx.csproj : error NU1102: Unable to find package Microsoft.CodeAnalysis.Common with version (>= 3.3.0)
/Users/georgiosd/Documents/studoyo/api/xxx.csproj : error NU1102:   - Found 62 version(s) in nuget.org [ Nearest version: 3.0.0 ]
    0 Warning(s)
    2 Error(s)

I tried downgrading all the way down to beta1 and it fails with a different error.

Any ideas?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 30

Most upvoted comments

@georgiosd I think this issue might only happen on Mac, which is why I can’t reproduce it. It may be a duplicate of #292

I guess, my question is, how can I repro a Mac issue? What’s the best practice? I don’t own mac any more. Mine fried two years ago and I went Lenovo/Windows 10 Pro due to WSL support letting me run Linux inside Windows. One way would be to move to GitHub Actions for CI/CD and use a Mac host runner type. https://devblogs.microsoft.com/dotnet/continuous-integration-workflow-template-for-net-core-desktop-apps-with-github-actions/ But I am curious as you also run your own software company, what your best practices are?