Skip to content

Microsoft.XmlSerializer.Generator copies results to $(OutputPath) not $(OutDir) #75956

@damnlogin

Description

@damnlogin

Description

I am using Microsoft.XmlSerializer.Generator nuget package (v6.0.0) to generate xml serialization assemblies. The assembly gets correctly created but then results are not copied to $(OutDir) that I override with dotnet build /p:OutDir="some directory here"`.

According to Microsoft.Common.CurrentVersion.targets $(OutDir) must be used instead of $(OutputPath)

OutDir and OutputPath are distinguished for legacy reasons, and OutDir should be used if at all possible.

Reproduction Steps

Override $(OutDir) before building any project that references Microsoft.XmlSerializer.Generator nuget package.

Expected behavior

Serialization assembly gets copied to overridden $(OutDir).

Actual behavior

Serialization assembly gets copied to project local $(OutputPath) instead.

Regression?

No response

Known Workarounds

Override both $(OutDir) and $(OutputPath) msbuild properties.

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions