/dotnet-publish --no-restore does nothing
- 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:
- .net6.0 application
- previously running in photino .net
- minimal changes to use electron instead
- electronize build /target win /dotnet-publish --no-restore
- dotnet restore successfully
- attempt
electronize startas described above - 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