dotnet / dotnet/wcf

dotnet-svcutil generates json which contains absolute path to the referenced assembly.

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

Description

When I run `dotnet-svcutil` the generated file `dotnet-svcutil.params.json` contains absolute path to the dll.
That's not what should go to source control system.

![image](https://github.com/dotnet/wcf/assets/9202028/c8325b83-00bf-4752-a4a1-07a8d91250a7)

Here's is a solution to reproduce the issue:
[TypesAreNotReused.zip](https://github.com/dotnet/wcf/files/14902229/TypesAreNotReused.zip)

1. cd to TypesAreNotReused project.
2. Run `dotnet-svcutil '.\AdAlliance (RTL) Service Definition - 12mar2024.wsdl' -n "*,MBS.Saleshouse.Webservices.Lib.RTL" -d RTL`
3. Look into generated `dotnet-svcutil.params.json`

I also modeled the situation of checking out on different machine where paths are obviously different. Just renamed the solution folder.
I tried to update the service `dotnet-svcutil -u` afterwards.
I see the path completely removed from the file, and types not reused. How come?

P.S. I'd expect the relative path to proj file, not to dll directly.

This is a continuation of [this discussion](https://developercommunity.visualstudio.com/t/WCF-Connected-Services---Compile-Error/10603813#TPIN-N10628932-N10632565).

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.