dotnet / dotnet/wcf

Question re dotnet-svcutil and bootstrapper

Open
#4,306 4 comments 0 reactions 1 assignee Claimed by @imcarolwang View on GitHub
tooling
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

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 [https://github.com/dotnet/wcf/issues/3812](https://github.com/dotnet/wcf/issues/3812).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.