Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

/dotnet-publish --no-restore does nothing

Open Keith-McKinley opened this issue 3 years ago • 0 comments

  • Version: 13.5.1.0
  • .net: .net6.0
  • Target: win (plan to use linux; arm64 soon)

attempting command electronize build /target win /dotnet-publish --no-restore in PS terminal of VS Code Results in "Build Electron Application... Arguments: target = win dotnet-publish = --no-restore Build ASP.NET Core App for win-x64..." but the cli shows: Build ASP.NET Core App for win-x64 under Release-Configuration... dotnet publish -r win-x64 -c "Release" --output "C:...\obj\desktop\win\bin" /p:PublishReadyToRun=true /p:PublishSingleFile=true --self-contained

Projects depend on nuget packages only available in private nuget registry with SSO credentials, so we must restore prior to build/publish, which has been done

Steps to Reproduce:

  1. .net6.0 application
  2. previously running in photino .net
  3. minimal changes to use electron instead
  4. electronize build /target win /dotnet-publish --no-restore
  5. dotnet restore successfully
  6. attempt electronize start as described above
  7. yield "C:\Program Files\dotnet\sdk\6.0.100\NuGet.targets(130,5): error : No such host is known." as an error

Note: the CLI output indicates the "/dotnet-publish --no-restore" is not being passed through to the actual dotnet command

Keith-McKinley avatar May 25 '22 02:05 Keith-McKinley