Skip to content

it does not work when include by GlobalPackageReference #15

@newbe36524

Description

@newbe36524

Description

try to include it in Directory.Packages.props as below, it does not work.
InterceptsLocationAttribute is generated, but none of logging medthods generated.

  <ItemGroup>
    <GlobalPackageReference Include="Microsoft.Build.CopyOnWrite" Version="1.0.334" />
    <GlobalPackageReference Include="AutoConstructor" Version="5.6.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </GlobalPackageReference>
    <GlobalPackageReference Include="stbychkov.AutoLoggerMessage" Version="1.0.9" />
  </ItemGroup>

if remove it from GlobalPackageReference and include in .csproj in the specific project, it works

Reproduction Steps

Expected behavior

Actual behavior

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions