Skip to content

The name 'IsDirtyString' does not exist in the current context #281

@dkoshy

Description

@dkoshy

Describe the Bug

After adding latest stable version(3.0.5) to my project and building below issue is happening.

Error CS0103 The name 'IsDirtyString' does not exist in the current context ..\ThisAssembly.Git.IsDirty.g.cs 19 Active

Steps to Reproduce

Add this library to function app project targeting .net 6.0 framework.

partial class ThisAssembly
{
    partial class Git
    {
        /// <summary>
        /// Gets whether the current repository is dirty.
        /// </summary>
        public static bool IsDirty => bool.TryParse(IsDirtyString, out var dirty) && dirty;
    }
}

Expected Behavior

project should build successfully.

Version Info

.net6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions