AssetBundles created without file extension

I use the following script to create my asset bundles (from the official docs):

[MenuItem ("Assets/Build AssetBundles")]
static void BuildAllAssetBundles()
{
     BuildPipeline.BuildAssetBundles( "AssetBundles" );
}

If I create them this way, the bundle files are created without any file extension which leads to the issue that no asset is reckognized. As soon as I add the .unity3d extension manually and load the asset bundle, everything is fine. No I have no idea whats going wrong and I have also no interests in fixing the bundles everytime I create them.

Any ideas?

I included the .unity file extension for the AssetBundle name in the Inspector. For example:
77237-assetbundleextension.png

Now, BuildAssetBundles generates my asset bundle with the file extension and this seems to be working well for me so far.

I made an editor script. I would prefer to put this in the same script as the build stuff but I don’t know how to check if the bundle building process has completed. Put this in a new editor script and name it ash_RenameAssetBundles.cs then just call it after your finished building;

using UnityEditor;
using System.IO;
using UnityEngine;

public class ash_RenameAssetBundles
{
    [MenuItem("Assets/Rename AssetBundles")]
    static void RenameAssetBundles()
    {
        string[] files = Directory.GetFiles("AssetBundles");

        foreach (var a in files)
        {
            if (!a.Contains("."))
            {
                File.Move(a, a + ".unity3d");
            }
        }
    }
}

I’m new to asset bundles so .unity3d might be a community convention, but that extension is not required, see this post:
https://forum.unity3d.com/threads/unity-5-3-bundles-unable-to-open-archive-file.372799/#post-2586219

Just a reminder, we don’t have an
official file extension “.unity3d” for
asset bundle, it’s not mandatory. You
can use whatever file extension as you
want, or without file extension.

But usually people use “.unity3d” as
the file extension just because we
used it in the official sample code at
first time…