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

Unofficial VS2022 Tailwind CSS extension for IntelliSense, linting, sorting, and more to enhance the development experience in Visual Studio 2022.
https://marketplace.visualstudio.com/items?itemName=TheronWang.TailwindCSSIntellisense
MIT License
86 stars 5 forks source link

Duplicated folder item found #25

Closed jakSolutionsGithub closed 9 months ago

jakSolutionsGithub commented 9 months ago

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?

jakSolutionsGithub commented 9 months ago

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.