I have the following code,
TextWriter writer = new StreamWriter(@"c:\temp\abc.txt")
but he raises it at compile time
Error 1 Access to a friend was granted to 'System, PublicKey = 00000000000000000400000000000000', but the output assembly is called 'System, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = zero. Try adding a link to 'System, PublicKey = 00000000000000000400000000000000' or changing the output of the assembly name to match. C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ mscorlib.dll System
Does anyone have an idea why?
source
share