We can't build solution on vs for Mac version but the same solution can build on vs for windows (vs 2017) and it's worked.
How to fix on this problem ? and can support on both (vs on windows & vs on Mac)
/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets
I was trying to fix that problem like a two months and finally found what's wrong. I had backward slash '\' in project files which is Windows style path, but I am using Mac so it was creating directory with plain name 'wwwroot\test' (not nested). If I remove that folder it successfully builds.