Skip to content

Conflicts with ThisAssembly produced by Nerdbank.GitVersioning #124

@nathanwinder

Description

@nathanwinder

Describe the Bug

ThisAssembly conflicts with the "ThisAssembly" generated by Nerdbank.GitVersioning
https://github.com/dotnet/Nerdbank.GitVersioning

Steps to Reproduce

  1. Reference both Nerdbank.GitVersioning and ThisAssembly.Project
<PackageReference Include="ThisAssembly.Project" Version="1.0.9" Condition="!Exists('packages.config')"/>
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')">
  <PrivateAssets>all</PrivateAssets>
  <Version>3.5.113</Version>
</PackageReference>
public class ReproTest
{
  [Fact]
  public void Repro()
  {
    var fileVersion = ThisAssembly.AssemblyFileVersion; // 'ThisAssembly' does not contain a definition for 'AssemblyName'
  }
}

Expected Behavior

ThisAssembly.Project should not prevent Nerbbank.GitVersioning from creating ThisAssembly properties.

Exception with Stack Trace

Version Info

1.0.9

Additional Info

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions