我是C#的新手,如何设置项目文件的文件路径我已经尝试过了,但是它给出了默认的windows文件路径,该怎么做?sfdlg.InitialDirectory = Application.StartupPath + @"..\..\";
Application.StartupPath---> is my excutablefile path. from this path to come back two `root folders` i use `@&qu
当发布WPF应用程序并生成可执行文件时,我无法获取模板文件夹中的文件。当我复制我的文件夹和文件到bin中时,它可以工作,或者如果使用// var gparent = Directory.GetParent(Directory.GetParent(Directory.GetParent(StartUpPath
我需要一些路径的帮助!Project (root directory which contains the .sln file etc.)MyProj (contains the code)Project/TestResults
现在,对于这个项目,我需要有一个通用的文件夹,在那里我可以粘贴一堆文件,以便与应用程序一起使用,而不必将文件复制到多个位