MichalStrehovsky / SeeSharpSnake

Self-contained C# game in 8 kB
618 stars 63 forks source link

Platform linker not found #2

Open ghost opened 4 years ago

ghost commented 4 years ago

Running this command:

dotnet publish -r win-x64 -c Release /p:Mode=CoreRT

Produces this result:

error : Platform linker not found. To fix this problem, download and install
Visual Studio 2017 from http://visualstudio.com. Make sure to install the
Desktop Development for C++ workload.

Is Visual Studio really required to make these examples work? Is it possible whatever its looking for is in C:\Windows\Microsoft.NET? I dont mind a 153 MB download of DotNet, but asking for a 80 GB install [1] to build "hello world" is a little much.

  1. https://blogs.msdn.microsoft.com/techtalks/mvp/installation-size-of-different-visual-studio-2017-workloads
MichalStrehovsky commented 4 years ago

Is it possible whatever its looking for is in C:\Windows\Microsoft.NET

https://github.com/MichalStrehovsky/SeeSharpSnake#%EF%B8%8F-warning-additional-requirements-needed-for-the-below-configuration - we need the platform linker and a couple import libraries only.

I've filed https://github.com/dotnet/corert/issues/7940 to get rid of it. It is an up-for-grabs issue.