放假前还好好的,今天打开工程,一编译,出这个错误了,请教大家,怎么办啊?错误如下:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3022,9): error MSB3491: Could not write lines to file "obj\CPTV.csproj.FileList.txt". Access to the path 'D:\PRO\CPTV\obj\CPTV.csproj.FileList.txt' is denied.谢谢各位!
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3022,9): error MSB3491: Could not write lines to file "obj\CPTV.csproj.FileList.txt". Access to the path 'D:\PRO\CPTV\obj\CPTV.csproj.FileList.txt' is denied.谢谢各位!
解决方案 »
- 网站被攻击
- seesion信息不能连接到下一页面
- HTML显示的问题
- CS页如何设置前台的样式类
- Page.User 有什么用?
- 写了三年ASP,懂点Delphi,想学asp.net,但不知如何入门,请高手指教?
- 小问题有哪位朋友可以帮我解决的关于DataGrid中FindControl失效问题谢谢各位了解决后立即揭贴请近来看下代码!
- 关于面向对象的简单问题,,,在事件里怎么不能更改属性呢?
- C#这句是什么意思?info+="<table width=\"100%\" height=\"30\" ;谢谢
- 判断上传图片的宽度
- 求一个IIS防盗链(防下载)的方法
- 高分求助:关于后台与JS变量互调的问题
using System.IO;
using System.Text; class Test
{
public static void Main()
{
string path = @"c:\temp\MyTest.txt"; // Create the file if it exists.
if (!File.Exists(path))
{
File.Create(path);
} if ((File.GetAttributes(path) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly)
{
// Show the file.
File.SetAttributes(path, FileAttributes.Normal);
Console.WriteLine("The {0} file is no longer read only.", path);
}
else
{
// Hide the file.
File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.ReadOnly);
Console.WriteLine("The {0} file is now read only.", path);
}
}
}