Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform linker not found #2

Open
ghost opened this issue Jan 5, 2020 · 1 comment
Open

Platform linker not found #2

ghost opened this issue Jan 5, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 5, 2020

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
Copy link
Owner

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 dotnet/corert#7940 to get rid of it. It is an up-for-grabs issue.

AntonLapounov added a commit to dotnet/runtimelab that referenced this issue Mar 11, 2021
Reduce prerequisites to build and run samples on Windows.  Alleviates MichalStrehovsky/SeeSharpSnake#2.  I am keeping "CoreRT" references for consistency with other documentation.

Tested on Windows ARM64 with 1 GiB of RAM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant