Skip to content

Setting GenerateAssemblyInfo=false stops source generator from running #407

@MagicAndre1981

Description

@MagicAndre1981

Describe the Bug

After Updating ThisAssembly to from 1.5.0 to 2.0.0 I can no longer access the ThisAssembly.Info properties like ThisAssembly.Info.Description

image

As they come from 3rd party tools, not from my project:

image

Steps to Reproduce

update from "ThisAssembly.AssemblyInfo" to 2.0:

<PackageReference Include="ThisAssembly.AssemblyInfo" Version="2.0.0">

Expected Behavior

code can be called var Description = ThisAssembly.Info.Description; fine as in 1.5.0

In my csproj I have set thoise 2 entries:

<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>

and I no longer see the genereted ThisAssembly.AssemblyInfo.g.cs file only the ApplicationConfiguration.g.cs which includes the generated calls for ApplicationConfiguration.Initialize();

Back this issue
Back this issue

Metadata

Metadata

Assignees

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