18 Replies
![](https://utfs.io/f/aeb9357b-47d5-48a0-99fc-5d90faa4b138-1nq2cb.png)
You have a space in one of your paths?
dotnet swagger tofile --output C:\Users\user\Desktop\RF-V48_4G GPS_tracking_bracelet\navtrack-main\api.json bin\Debug\net6.0\Navtrack.Api.dll v1
ugh
I replaced these spaces with underscores but I accidentally left one
thanks!
@phaseshift is there a way to escape the spaces tho? Perhaps single quotes?Depends what shell the command is running in.
Wrap in double quotes is normally ok
![](https://utfs.io/f/f170475f-87ff-4c9d-a29d-4e55fc9fb686-1nq2cb.png)
@phaseshift single quotes don't work, just confirmed
so does double quotes cuz of the enclosing quotes
Yeah, so escape them
![](https://utfs.io/f/beee8c90-098b-4cdb-8ac4-20553d17eec6-1nq2cb.png)
Nope. Google it
![](https://utfs.io/f/7b9e033e-473a-48ed-9840-6bfa1a6d77da-1nq2cb.png)
that works but kinda looks ugly
Don't use spaces 🤷♂️
I feel DevOps when they have to deal with such issues daily
Nobody in dev ops puts spaces in paths 😅
How to: Escape Special Characters in MSBuild - MSBuild
Learn how to escape special characters so you can use these characters as literals in MSBuild project files.
I will keep it that way since Microsoft recommends it
thanks and merry xmas! 😛
don't use msbuild for targets, use Nuke
just don't, you're wasting your time
@AntonC agreed, I actually use Nuke myself but that's a project I wanted to run