Skip to content

[Bug] #2167 breaks building WPF applications #2181

@batzen

Description

@batzen

Describe the bug
The fixes made for #2167 seem to break building WPF applications because version attributes are added as duplicates.

Expected Behavior

Build should work and assembly info should not have duplicate attributes.

Actual Behavior

Assemblyinfo has duplicate version attributes.

Possible Fix

MarkupCompilePass1DependsOn should not be modified to contain UpdateAssemblyInfo.

Steps to Reproduce

Context

Tried to compile with the latest gitversiontask version.
Version 5.2.2 works fine. Only 5.2.3 shows this issue.

Your Environment

.NET Core SDK (reflecting any global.json):
Version: 3.1.101
Commit: b377529961

Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.101\

Host (useful for support):
Version: 3.1.2
Commit: 916b5cba26

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions