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
Description
I am using
Microsoft.XmlSerializer.Generatornuget 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 withdotnet build/p:OutDir="some directory here"`.According to Microsoft.Common.CurrentVersion.targets
$(OutDir)must be used instead of$(OutputPath)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