Skip to content

AOT , Single-file compilation error #467

@avsteele

Description

@avsteele

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

Metadata

Metadata

Assignees

No one assigned

    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