new classlib -o SjFunctions
dotnet build
However, after I add my using statement and right click the NT editor and add the reference, I get this error:
The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
using System;
using System.IO;
using System.Text;
using System.Net;
using System.Net.Http;
using System.Net.Sockets;
namespace SjFunctions
{
public class Sj{
public void Put(string path, string content){
using (FileStream fs = File.Create(path))
{
Byte[] data = new UTF8Encoding(true).GetBytes(content);
fs.Write(data, 0, data.Length);
}
}
}
}

Comment