andrewlock / StronglyTypedId

A Rosyln-powered generator for strongly-typed IDs
MIT License
1.52k stars 80 forks source link

Ids with the same name in the same project are not supported #74

Closed hankovich closed 2 years ago

hankovich commented 2 years ago

For the following ids nothing will be generated if MyContracts.V1.MyId and MyContracts.V2.MyId are in the same project:

using StronglyTypedIds;

namespace MyContracts.V1
{
    [StronglyTypedId]
    public partial struct MyId
    {
    }
}

namespace MyContracts.V2
{
    [StronglyTypedId]
    public partial struct MyId
    {
    }
}
andrewlock commented 2 years ago

Thanks for flagging this - I've confirmed the issue, I'll get a fix out soon 👍