小编HoN*_*uRu的帖子

这些库可以用我的C#应用​​程序分发吗?

我在C#应用程序中包含了这些库或命名空间,并将解决方案作为免费软件发布.我使用Visual C#Express 2008.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Media;
using System.Management;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Drawing.Text;
Run Code Online (Sandbox Code Playgroud)

是否可以将应用程序作为免费软件或我在这里违反任何许可证?

c# licensing distribution

2
推荐指数
1
解决办法
167
查看次数

C# - 列出目录时出现问题 - DirectoryNotFoundException

我收到"DirectoryNotFoundException"错误,这里是代码:

string directorio = "D:\MUSICA\La Trampa - El Mísero Espiral De Encanto";
DirectoryInfo dir = new DirectoryInfo(directorio);
DirectoryInfo[] dirs = dir.GetDirectories(); <------------This is the line I'm having this problem.
Run Code Online (Sandbox Code Playgroud)

我相信它是在它试图解析该字符串的波浪部分时引起的Mísero.该目录D:\MUSICA\La Trampa - El Mísero Espiral De Encanto存在,因为我可以看到它,并且还有一些文件.有没有办法以正确的方式发送这个字符串?

谢谢

c# io file

0
推荐指数
1
解决办法
462
查看次数

标签 统计

c# ×2

distribution ×1

file ×1

io ×1

licensing ×1