We still have quite a few projects that depends windows platform. I met
Set-ItemProperty: Cannot find drive. A drive with the name 'IIS' does not exist. issue when I was running a powershell script, and I couldn't find an answer until I asked my colleague Matthew.
Powershell 7 is supposed to support all platforms, so it removed those windows specific features.You should use Powershell for windows instead.
Yes, this solved the issue. Thanks!
I keep my config files on github, and I use hard-link for most of the config files. It's convenient, as I can check the new changes easily and submit some of the changes when necessary. However, the default behavior of vim troubles me. It always changed the inode when I save the config file!
tldr; the solution is: put the following line in your
Though this way fixed Vim's behavior, I sadly found that
git pull will change the config file's inode as well. So there is actually no feasible solution. I have abandoned this hard link approach. If you have better solutions to maintain all your config files in one repository, please let me know!
Sometimes we need to delete all the bin/obj folders in a solution to resolve issues in Rider or Visual Studio. I assume you already have your preferred method for this task, but I would like to share my approach here in case someone else is unaware of how to do it in GitBash or MSys terminal:
find . -iname "bin" -print0 | xargs -0 echo
find . -iname "obj" -print0 | xargs -0 echo
read -p "The above folders are going to be deleted, are you sure? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]; then
find . -iname "bin" -print0 | xargs -0 rm -rfv
find . -iname "obj" -print0 | xargs -0 rm -rfv