theron-wang/VS2022-Editor-Support-for-Tailwind-CSS

Duplicated folder item found

Closed this issue · 1 comments

First of all, thank you very much for this extension!
I'm trying to use it with an existing project that already contains Tailwind but Visual Studio cannot load my solution project (load failed).
When I try to rebuild it, I always get the error: 'Duplicated folder item found in the project: "wwwroot\css\tailwind-input.css"'.
I deleted this file to test but I still get the same error.
I also deleted the tailwind.config.js file to test.
Is there anything special to do on an existing project?

Found how to solve it.
Had to open .csproj and comment :

  <ItemGroup>
    <Folder Include="wwwroot/css/tailwind-input.css" Set="Css" />
    <Folder Include="tailwind.config.js" Set="Css" />
  </ItemGroup>

Then build and uncomment it.