'VS2022 throws error message 'file already exists' on dbml file addition

I had to add a dbml file in C# Windows Form application. On adding a new dbml file, VS2022 throws error message indicating that the file is already present even though the file is newly created and has a unique name. Please share your inputs in case you have faced similar issue in VS2022.

A file with name 'DataClasses1.dbml.layout' already exists. Please give a unique name to the item you are adding, or delete the existing first.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source