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

ILLink fails on when only .NET Core 3 is installed (Microsoft.AspNetCore.Blazor.Mono) #6726

Closed
natemcmaster opened this issue Jan 15, 2019 · 3 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed

Comments

@natemcmaster
Copy link
Contributor

Microsoft.AspNetCore.Blazor.Mono 0.8.0-preview1-20181126.1 contains a tool illink.dll which only runs on .NET Core 2.x. This means builds will fail on machines which only have .NET Core 3.x SDKs will fail.

2019-01-15T23:23:03.2879513Z   It was not possible to find any compatible framework version
2019-01-15T23:23:03.2881025Z   The specified framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
2019-01-15T23:23:03.2886552Z     - Check application dependencies and target a framework version installed at:
2019-01-15T23:23:03.2892068Z         F:\vsagent\11\.dotnet\x64\
2019-01-15T23:23:03.2896169Z     - Installing .NET Core prerequisites might help resolve this problem:
2019-01-15T23:23:03.2896890Z         https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
2019-01-15T23:23:03.2897099Z     - The .NET Core framework and SDK can be installed from:
2019-01-15T23:23:03.2898295Z         https://aka.ms/dotnet-download
2019-01-15T23:23:03.2898690Z     - The following versions are installed:
2019-01-15T23:23:03.2899551Z         3.0.0-preview-27113-06 at [F:\vsagent\11\.dotnet\x64\shared\Microsoft.NETCore.App]
2019-01-15T23:23:03.2904079Z         3.0.0-preview-27219-3 at [F:\vsagent\11\.dotnet\x64\shared\Microsoft.NETCore.App]
2019-01-15T23:23:03.3300512Z F:\vsagent\11\s\src\Components\Blazor\Build\src\targets\Blazor.MonoRuntime.targets(439,5): error MSB3073: The command "dotnet "F:\vsagent\11\s\.nuget\packages\microsoft.aspnetcore.blazor.mono\0.8.0-preview1-20181126.1\build\netstandard1.0\../../tools/illink/illink.dll" -l none --verbose --strip-security true --exclude-feature com --exclude-feature sre -v false -c link -u link -b true -d "F:\vsagent\11\s\.nuget\packages\microsoft.aspnetcore.blazor.mono\0.8.0-preview1-20181126.1\build\netstandard1.0\../../tools/mono/bcl/" -d "F:\vsagent\11\s\.nuget\packages\microsoft.aspnetcore.blazor.mono\0.8.0-preview1-20181126.1\build\netstandard1.0\../../tools/mono/bcl/Facades/" -o "F:\vsagent\11\s\src\Components\Blazor\testassets\StandaloneApp\obj\Release\netstandard2.0\blazor\linker/" -x "F:\vsagent\11\s\src\Components\Blazor\Build\src\targets\BuiltInBclLinkerDescriptor.xml" -x "F:\vsagent\11\s\src\Components\Blazor\testassets\StandaloneApp\obj\Release\netstandard2.0\blazor\linker.descriptor.xml" -a "F:\vsagent\11\s\.nuget\packages\microsoft.extensions.dependencyinjection\3.0.0-preview.19059.4\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.dll" -a "F:\vsagent\11\s\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\3.0.0-preview.19059.4\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll" -a "F:\vsagent\11\s\.nuget\packages\microsoft.jsinterop\0.8.0-preview1-20181126.4\lib\netstandard2.0\Microsoft.JSInterop.dll" -a "F:\vsagent\11\s\.nuget\packages\mono.webassembly.interop\0.8.0-preview1-20181126.4\lib\netstandard2.0\Mono.WebAssembly.Interop.dll" -a "F:\vsagent\11\s\src\Components\Blazor\Blazor\src\bin\Release\netstandard2.0\Microsoft.AspNetCore.Blazor.dll" -a "F:\vsagent\11\s\src\Components\Browser\src\bin\Release\netstandard2.0\Microsoft.AspNetCore.Components.Browser.dll" -a "F:\vsagent\11\s\src\Components\Components\src\bin\Release\netstandard2.0\Microsoft.AspNetCore.Components.dll" -a "F:\vsagent\11\s\src\Components\Blazor\testassets\StandaloneApp\obj\Release\netstandard2.0\StandaloneApp.dll"" exited with code -2147450730. [F:\vsagent\11\s\src\Components\Blazor\testassets\StandaloneApp\StandaloneApp.csproj]
natemcmaster pushed a commit to natemcmaster/AspNetCore that referenced this issue Jan 15, 2019
@natemcmaster natemcmaster added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates area-blazor Includes: Blazor, Razor Components labels Jan 15, 2019
@mkArtakMSFT mkArtakMSFT added this to the 3.0.0-preview3 milestone Feb 6, 2019
@RemiBou
Copy link
Contributor

RemiBou commented Feb 11, 2019

I have a full repro here type "docker build -t toss .", I'll try to fix it by manually installing net core 2

@SteveSandersonMS
Copy link
Member

This is fixed in #7792, though we may choose not to merge that in time for Preview 3 (because it causes an app size regression). So the netcore2.0 requirement may remain for Preview 3.

@SteveSandersonMS
Copy link
Member

Will be fixed with #8782

@SteveSandersonMS SteveSandersonMS added 2 - Working blocked The work on this issue is blocked due to some dependency and removed 1 - Ready blocked The work on this issue is blocked due to some dependency labels Mar 25, 2019
@SteveSandersonMS SteveSandersonMS added Done This issue has been fixed and removed 2 - Working blocked The work on this issue is blocked due to some dependency labels Mar 26, 2019
@mkArtakMSFT mkArtakMSFT removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels May 9, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed
Projects
None yet
Development

No branches or pull requests

7 participants