You've already forked com.unity.ide.cursor
mirror of
https://github.com/boxqkrtm/com.unity.ide.cursor.git
synced 2026-05-14 22:30:10 +00:00
## [2.0.1] - 2020-03-19 When Visual Studio installation is compatible with C# 8.0, setup the language version to not prompt the user with unsupported constructs. (So far Unity only supports C# 7.3). Use Unity's TypeCache to improve project generation speed. Properly check for a managed assembly before displaying a warning regarding legacy PDB usage. Add support for selective project generation (embedded, local, registry, git, builtin, player).
31 lines
696 B
C#
31 lines
696 B
C#
using System.IO;
|
|
using System.Text;
|
|
|
|
namespace Microsoft.Unity.VisualStudio.Editor
|
|
{
|
|
public interface IFileIO
|
|
{
|
|
bool Exists(string fileName);
|
|
|
|
string ReadAllText(string fileName);
|
|
void WriteAllText(string fileName, string content);
|
|
}
|
|
|
|
class FileIOProvider : IFileIO
|
|
{
|
|
public bool Exists(string fileName)
|
|
{
|
|
return File.Exists(fileName);
|
|
}
|
|
|
|
public string ReadAllText(string fileName)
|
|
{
|
|
return File.ReadAllText(fileName);
|
|
}
|
|
|
|
public void WriteAllText(string fileName, string content)
|
|
{
|
|
File.WriteAllText(fileName, content, Encoding.UTF8);
|
|
}
|
|
}
|
|
} |