Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议修改文件路径的生成方法 #1

Open
yushiro opened this issue Jul 30, 2013 · 4 comments
Open

建议修改文件路径的生成方法 #1

yushiro opened this issue Jul 30, 2013 · 4 comments

Comments

@yushiro
Copy link

yushiro commented Jul 30, 2013

所有的文件路径, 都不要直接用string拼接, 这种方式会在linux下无法正常运行。

建议用Path.Combine(m_localPath, "Setting.txt")这种形式

还有你的m_localPath为啥要写的那么复杂, 我一般都是用下列方式直接取到exe文件的运行路径

m_localPath = AppDomain.CurrentDomain.BaseDirectory;
string tmpFolder = Path.Combine(m_localPath, "Temp");

@h31h31
Copy link
Owner

h31h31 commented Jul 31, 2013

没有考虑过LINUX下的情况,一些语法的细节问题没有你这么细心, 我的观点是能用先.以后慢慢优化..谢谢

@yushiro
Copy link
Author

yushiro commented Jul 31, 2013

本来想fork后, 再pull request的, 不过感觉改动量很大, 不知道这种方式是否合适。

@h31h31
Copy link
Owner

h31h31 commented Aug 1, 2013

已经修改过一次了,如果还有要修改的地方,你提交代码,一起交流,

@Moonerve
Copy link

Moonerve commented Aug 5, 2017

怎么上传图片?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants