msbuild-tailwindcss
msbuild-tailwindcss copied to clipboard
Fresh install fails with build error
Hi there,
I installed your package in a fresh .NET 6 razor page app, but when running dotnet run, it fails with the following error:
EXEC : Input error : Must use --dir or --replace with multiple input files [XX.csproj] /Users/alex/.nuget/packages/bambutz.msbuild.tailwindcss/1.3.1/build/BamButz.MSBuild.TailwindCSS.targets(50,9): error MSB3073: The command "npm run postcss -- "" --config "/Users/alex/.nuget/packages/bambutz.msbuild.tailwindcss/1.3.1/build/../" -o ".min.css"" exited with code 1.
Not sure how I can debug this – perhaps someone could poke me in the right direction?
Thank you!
You could clone this repo and just build the project, it should then execute the targets. Probably a breaking change from postcss, you could try to fix the call in BamButz.MSBuild.TailwindCSS.targets.
I have similar issue, from time to time solution is built only from the second attempt, first build fails with this

I have just figured our, practically each solution Rebuild fails, and each solution Build after Clean fails, but starting from second Build it's ok.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have cloned the repo, but since I am fairly new to both Tailwind AND .net MVC, I don't understand how to run/test it. Could you explain it for a noob please?
You just need to build it with debug configuration. For more information, you should look up the .csproj file.