public void CreateTransformFile()

in src/Microsoft.VisualStudio.SlowCheetah/Transformer/JsonTransformer.cs [42:65]


        public void CreateTransformFile(string sourcePath, string transformPath, bool overwrite)
        {
            if (string.IsNullOrWhiteSpace(sourcePath))
            {
                throw new ArgumentNullException(nameof(sourcePath));
            }

            if (string.IsNullOrWhiteSpace(transformPath))
            {
                throw new ArgumentNullException(nameof(transformPath));
            }

            if (!File.Exists(sourcePath))
            {
                throw new FileNotFoundException(Resources.Resources.ErrorMessage_SourceFileNotFound, sourcePath);
            }

            // If the file should be overwritten or if it doesn't exist, we create it
            if (overwrite || !File.Exists(transformPath))
            {
                var encoding = TransformUtilities.GetEncoding(sourcePath);
                File.WriteAllText(transformPath, Resources.Resources.JsonTransform_TransformFileContents, encoding);
            }
        }