ThisAssembly
ThisAssembly copied to clipboard
AOT , Single-file compilation error
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
- compile a program with the line above, shoudl work fine
- make a publish profile with the settings below
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
