FS#70018 - dotnet-sdk: Incomplete package?
Attached to Project:
Community Packages
Opened by IMBJR (IMBJR) - Tuesday, 16 March 2021, 17:38 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 19 April 2021, 07:03 GMT
Opened by IMBJR (IMBJR) - Tuesday, 16 March 2021, 17:38 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 19 April 2021, 07:03 GMT
|
Details
Description:
In attempting to create a webasm project with Visual Studio Code, the OmniSharp installation reports, in part: [fail]: OmniSharp.MSBuild.ProjectLoader The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the <UsingTask> 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. The location that ends in ../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll does not exist as part of the packaging of dotnet-sdk. Downloading the Microsoft official release of shows that @ /sdk/5.0.103/Sdks/Microsoft.NET.Sdk.Razor/tasks there is indeed a net46 directory, suggesting that the Arch package is missing that directory. Additional info: Package dotnet-sdk version 5.0.3.sdk103-2 |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Monday, 19 April 2021, 07:03 GMT
Reason for closing: Upstream
Additional comments about closing: https://github.com/dotnet/source-build/i ssues/2006
Monday, 19 April 2021, 07:03 GMT
Reason for closing: Upstream
Additional comments about closing: https://github.com/dotnet/source-build/i ssues/2006
https://github.com/OmniSharp/omnisharp-vscode/issues/4360
https://github.com/OmniSharp/omnisharp-vscode/issues/4360#issuecomment-801181468
It is indeed a packaging issue, but I'm not sure whether the fault lies with the dotnet-team or with the maintainer.
There are later releases out of the dotnet SDK (e.g. 5.0.201), hopefully it will be resolved there.
...
[fail]: OmniSharp.MSBuild.ProjectLoader
The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/share/dotnet/sdk/5.0.202/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the <UsingTask> 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.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file '/home/imbjr/projects/blazor/blazor.csproj'.
/home/imbjr/projects/blazor/blazor.csproj
/usr/share/dotnet/sdk/5.0.202/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.ScopedCss.targets(118,3): Error: The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/share/dotnet/sdk/5.0.202/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the <UsingTask> 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.
[0] https://github.com/dotnet/source-build/issues/2006