我有一个C#解决方案和一些引用的dll-s。即使在Visual Studio编译(VS2010),当它表现为它成功,使用C#编译器失败时:显然缺少DLL ..C#编译器找不到dll;在VS2010中编译的解决方案
csc /t:library /out:test.dll test.cs
test.cs(22,10): error CS0246: The type or namespace name
'Attribute' could not be found (are you missing a using directive
or an assembly reference?)
有谁知道为什么会出现这种情况?
您修改缺省响应文件? (csc.rsp.cfg或类似的东西)。如果这是一个简短的测试程序,您可以提供代码吗?我认为这只是你试图找到的System.Attribute? –
@乔恩飞碟双向它不是system.attribute,粘贴时引用here..the文件被另一个DLL,之前因为working..and我做了修改响应file..not测试工作我已经缩短了名字.. – agatha