I have a C# solution and some referenced dll-s. Even though when compiling in visual studio(vs2010) it appears as it succeeded, when using the C# compiler it fails: missing dll apparently..
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?)
Does anyone know why is this happening?
As you haven’t given the code, it’s not clear what type
Attributeis meant to be. If it’sSystem.Attribute, I’d expect that to be found automatically via the default assembly references. If it’s a type in another assembly, you need to explicitly reference it from the command line: