dotnet / dotnet/runtime

Version for package `Microsoft.XmlSerializer.Generator` could not be resolved.

Open
#122,719 3 comments 0 reactions 0 assignees View on GitHub
area-Serialization untriaged
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

### Description

Updating `Microsoft.XmlSerializer.Generator` nuget to 10.0.1 results in this error during build.

`dotnet restore` works fine.

However `dotnet build` fails:

```
Version for package `Microsoft.XmlSerializer.Generator` could not be resolved.
/Users/jazz/.nuget/packages/microsoft.xmlserializer.generator/10.0.1/build/Microsoft.XmlSerializer.Generator.targets(51,5): warning MSB3073: The command "dotnet Microsoft.XmlSerializer.Generator "obj/Debug/net10.0/.dll" --force --quiet obj/Debug/net10.0/sgen.rsp" exited with code 1.
```

Reverting package to to 10.0.0 works fine

### Reproduction Steps

Update to 10.0.1

``

Try to build the project.

PS. My project does not have the `DotNetCliToolReference` various MS sources mention I should remove it, because it's apparently deprecated? Is it deprecated or not?? https://github.com/dotnet/docs/issues/26253 https://github.com/dotnet/sdk/issues/45193 (the reason I removed it was because otherwise serialization assembly would not generate in v10.0.0

### Expected behavior

Build should work fine.

### Actual behavior

Error above

### Regression?

Yes, 10.0.0 works fine.

### Known Workarounds

_No response_

### Configuration

_No response_

### Other information

_No response_

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.