ThisAssembly icon indicating copy to clipboard operation
ThisAssembly copied to clipboard

AOT , Single-file compilation error

Open avsteele opened this issue 3 months ago • 0 comments

Describe the Bug

The code below works normally but not when using certain publish profiles.

public const string versionString = 
    $"{ThisAssembly.Git.Commit}{(ThisAssembly.Git.IsDirty ? " !!WARNING !! UNCOMMTIED CHANGES" : "")}";

Steps to Reproduce

  1. compile a program with the line above, shoudl work fine
  2. make a publish profile with the settings below
Image

you will get error below on publish.

'ThisAssembly' is inaccessible due to its protection level

Expected Behavior

Exception with Stack Trace

'ThisAssembly' is inaccessible due to its protection level

Version Info

3.5.0

Additional Info

Thank you

Back this issue Back this issue

avsteele avatar Oct 02 '25 18:10 avsteele