1
我想要編寫一個命令行界面,開始掃描相關文件夾(/ dlls)中的DLL,但一直拋出此錯誤:無法找到部分路徑'/ Users/danielshroff/Projects/Meh-Rewrite/Meh-Rewrite/bin/Debug/dlls)'。路徑存在,我已經複製並跟隨它到底使用取景器轉到文件夾找不到在Visual Studio中的路徑的一部分的Mac
編輯:我也用全路徑,但沒有運氣試圖
using System.IO;
namespace MehRewrite
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("MEH System Version 1.0");
Console.WriteLine("Loading Core System");
Console.WriteLine("Declaring Startup Variables");
String dlls = null;
Console.WriteLine("Startup Variables Declared");
Console.WriteLine("Searching for dlls");
foreach (var file in Directory.GetFiles(@"./dlls)", "*.dll"))
{
dlls = dlls + file;
Console.WriteLine(file); }
int present = dlls.IndexOf("tinyMath.dll", StringComparison.Ordinal);
Console.Write("Enter Secure Mode? ");
variables.secure = Console.ReadLine();