msbuild-tailwindcss icon indicating copy to clipboard operation
msbuild-tailwindcss copied to clipboard

Fresh install fails with build error

Open Ducki opened this issue 3 years ago • 5 comments

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!

Ducki avatar Jan 03 '22 18:01 Ducki

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.

BamButz avatar Jan 03 '22 19:01 BamButz

I have similar issue, from time to time solution is built only from the second attempt, first build fails with this image

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.

ibober avatar Jan 07 '22 19:01 ibober

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.

stale[bot] avatar Mar 08 '22 20:03 stale[bot]

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?

image

rus19023 avatar Jul 14 '22 20:07 rus19023

You just need to build it with debug configuration. For more information, you should look up the .csproj file.

BamButz avatar Jul 15 '22 10:07 BamButz