简体   繁体   中英

Get csproj path macros in file watcher in Rider

Is there a way to get a path to .csproj file in file watcher? I want to create a watcher that will launch third-party app with this argument. There is plenty of different macros (like solutionPath etc) but I didn't find what I need.

Try to add a new custom tool, there are some project-related macros there:

File | Settings | Tools | Custom Tools

在此处输入图片说明

I didn't find a simple way, so I ended up with a python script. It finds a file path with some regexps specific to my project. And I have added a custom file watcher that launches this script when needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM