dotnet / dotnet/msbuild

Incorrect warning message generated when OutputType is Exe but AutoUnifyAssemblyReferences is false

Open
#4,206 0 comments 1 reaction 0 assignees View on GitHub
Area: Task: Resolve Assembly References (RAR) triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

See https://github.com/Azure/azure-webjobs-sdk/issues/1598#issuecomment-468501905

If OutputType is Exe but AutoUnifyAssemblyReferences is false, then ResolveAssemblyReferences will generate warnings telling you to set the
AutoGenerateBindingRedirects property to true even if it's already set to true.

The relevant code from the task is here: https://github.com/Microsoft/msbuild/blob/1e574340ca00a71678d7eb67f3f3e68d981fd994/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs#L1078-L1091

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.