问题描述
您好我需要为解决方案中的文件夹提供一个相对路径
thsiis完整路径: c:\users\priya.sasidharan\documents\visual studio 2010 \Projects\ProjectAddIn3 \ProjectAddIn3 \Templates\Data.xml
我这样给了@〜\ Templates\Data.xml但它不是wrking。它显示以下错误
''C:\ Users \ priya.sasidharan \Documents \〜\ProjectAddIn3 \ProjectAddIn3 \Templates\Data.xml''不能找到
Hi i need to give a relative path for the folder in the solution
thsiis the complete path:c:\users\priya.sasidharan\documents\visual studio 2010\Projects\ProjectAddIn3\ProjectAddIn3\Templates\Data.xml
I gave like this@"~\Templates\Data.xml but its not wrking.it is showing the following error
''C:\Users\priya.sasidharan\Documents\~\ProjectAddIn3\ProjectAddIn3\Templates\Data.xml'' could not be found
推荐答案
这篇关于如何为文件夹提供相对路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!