// 应用程序所在目录,即bin/debug DirectoryInfo exePath = new DirectoryInfo(Environment.CurrentDirectory); // 上两级的目录找到Resources中的资源 String modelPath = exePath.Parent.Parent.FullName + @"\Resources\model.stl";
string modelPath = System.IO.Path.Combine(Environment.CurrentDirectory, path2: @"Resources/model.stl");