Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Error when running on WebAPI + SPA #29

Closed
Nordes opened this issue Jun 4, 2019 · 2 comments
Closed

Error when running on WebAPI + SPA #29

Nordes opened this issue Jun 4, 2019 · 2 comments
Labels
wontfix This will not be worked on

Comments

@Nordes
Copy link

Nordes commented Jun 4, 2019

While running on a SPA project (WebAPI + VueJS) i got the following error:

C:\Users\nordes\.nuget\packages\illink.tasks\0.1.5-preview-1841731\build\ILLink.Tasks.targets(451,5): error MSB4044: The "CheckEmbeddedRootDescriptor" task was not given a value for the required parameter "AssemblyPath". 

The log prior to that in verbose are normal msbuild dll creation and all.

Full log:

PS C:\GitRepo\gitlab\MyProject> dotnet-warp  --verbose
Running Publish...
Running dotnet publish -c Release -r win-x64 -o "C:\GitRepo\gitlab\MyProject\dotnetwarp_temp" "C:\GitRepo\gitlab\MyProject"
Microsoft (R) Build Engine version 16.0.443+g5775d0d6bb for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Persisting no-op dg to C:\GitRepo\gitlab\MyProject\obj\MyProject.csproj.nuget.dgspec.json
  Restore completed in 199.15 ms for C:\GitRepo\gitlab\MyProject\MyProject.csproj.
C:\Program Files\dotnet\sdk\3.0.100-preview3-010431\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(151,5): message NETSDK1057: You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview [C:\GitRepo\gitlab\MyProject\MyProject.csproj]
  MyProject -> C:\GitRepo\gitlab\MyProject\bin\Release\netcoreapp2.2\win-x64\MyProject.dll
C:\Users\nordes\.nuget\packages\illink.tasks\0.1.5-preview-1841731\build\ILLink.Tasks.targets(451,5): error MSB4044: The "CheckEmbeddedRootDescriptor" task was not given a value for the required parameter "AssemblyPath". [C:\GitRepo\gitlab\MyProject\MyProject.csproj]

Publish failed. Set --verbose flag for more info.

Any idea how to fix this?

(It looks a bit like: dotnet/linker#428 )

@Hubert-Rybak
Copy link
Owner

You are using .NET Core 3.0 preview SDK, which has some problems like one you described. In preview 5, there is already similiar Single File Deployment functionality (https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0-preview-5/).
From path you supplied, I can see that you are building .NET Core 2.2 project.
You can add global.json file to root solution folder with

dotnet new globaljson

This will create global.json file with current project SDK entry, so it will use .NET Core 2.2 SDK instead of 3.0, which should fix that issue. Let me know if it helped

@stale
Copy link

stale bot commented Aug 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 3, 2019
@stale stale bot closed this as completed Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants