waldo1001 / crs-al-language-extension

Make working with the (Dynamics NAV / 365) AL Language easier and more efficient.
MIT License
34 stars 43 forks source link

Bug while reorganize with a .net file #177

Open STuFfiZz opened 4 years ago

STuFfiZz commented 4 years ago

While working I found a new bug.

I am creating an on premises extension with a DotNet.al file. In this file I created my own assembly as my .dll is a custom one.

Here my code:

dotnet
{
    assembly("WebbrowserAddin")
    {
        Culture = 'neutral';
        Version = '1.0.0.0';
        PublicKeyToken = '74b4394bca2d751e';

        type(WebbrowserAddin.WebbrowserAddin; WebbrowserAddin)
        {
            IsControlAddIn = true;
        }
    }
}

After writing this and trying to reorganize the files, a error message appears: image

I debuged the whole thing and detected the problem: It is coming from the property IsControlAddIn = true; As the property is needed for my addin to work I can't just don't use the property. Or am I wrong?

A workaround is, that I cut the property out, reorganize and put it back in.