Skip to content

Could not load file or assembly AutoLoggerMessageGenerator.BuildOutput #24

@SKProCH

Description

@SKProCH

Description

Hello. Seems like when I publish my project, AutoLoggerMessageGenerator.BuildOutput.dll doesn't get copied to publish folder and app fails with:

Could not load file or assembly 'AutoLoggerMessageGenerator.BuildOutput, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Reproduction Steps

  1. Create project
  2. Add package
<PackageReference Include="stbychkov.AutoLoggerMessage" Version="1.0.10">
	<PrivateAssets>all</PrivateAssets>
	<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
  1. Publish

Expected behavior

Probably AutoLoggerMessageGenerator.BuildOutput should be copied to publish folder. This is build folder:

Image

Actual behavior

Publish folder:

Image

Regression?

No response

Known Workarounds

No response

Configuration

.NET SDK:
Version: 10.0.100-preview.3.25201.16
Commit: 9dee3cf508
Workload version: 10.0.100-preview.3.25208.1
MSBuild version: 17.14.0-preview-25177-05+903614e16

But seems like this is unrelated to SDK version and configuration

Other information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions