Skip to content

Question re dotnet-svcutil and bootstrapper #4306

Open
@PhilPJL

Description

@PhilPJL

I'm trying to run dotnet-svcutil in the debugger and have an issue with the bootstrapper and package restore.

If I build the tool and run it from the command line, e.g.

dotnet-svcutil "http://localhost/WCFTest/Service1.svc?wsdl -d D:\WCFTest -r "C:\Users\passp\source\repos\WCF_Test\SharedDataContracts\bin\Debug\netstandard2.0\SharedDataContracts.dll" -v debug"

This works fine. I get a bootstrapper created at say "...\AppData\Local\Temp\dotnet-svcutil-lib_Temp\2020_Jul_15_14_44_27\SvcutilBootstrapper\bin\Debug\netcoreapp3.1" and this is fully populated with dependent assemblies like NewtonSoft.Json.dll (9.0.0.1).

If I run the same in the VS debugger the console output looks identical, up to 'Invoking bootstrapper...'. But none of the packages get restored in this case so the tool fails with " System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0...".

Any ideas?

I was hoping to see if there was anything I could do about #3812.

Metadata

Metadata

Assignees

Labels

toolingAn issues related to any tool shipped from this repo.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions