WSL2用Linux写C#代码在linux目录下可以运行,在windows目录下运行不了

/usr/share/dotnet/sdk/3.1.409/Microsoft.Common.CurrentVersion.targets(4651,5): error MSB3021: Unable to copy file "/mnt/d/C#学习/myApp/obj/Debug/netcoreapp3.1/myApp" to "bin/Debug/netcoreapp3.1/myApp". Access to the path is denied. [/mnt/d/C#学习/myApp/myApp.csproj]

The build failed. Fix the build errors and run again.

在linux目录下可以正常运行,在windows目录下报错这个,求大佬解决急!!!!!!

路径错误,windows环境下没有这样的目录。

/mnt/d/C#学习/myApp/obj/Debug/netcoreapp3.1/myApp"

您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~

如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~

ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632