Contentless/Contentless/Config.cs
Max Kopjev a10689e3bb
Add auto syncing references (#4)
* Add extraction of project file path.

* Add field for reference syncing in config file.

* Add new dependencies.

* Add sync algorithm for references.

* Update version

* Fix ups

* Rename ReferenceHeader

* Fix message

* Check arguments count.

* Fix

* Revert "Update version"

This reverts commit e24d75d18a.

* Change error logic - no return

* Add adding new references.

* Add more true NuGet support.

* Fix braces.

* Fix First call.

---------

Co-authored-by: Ell <me@ellpeck.de>
2023-12-21 17:48:16 +01:00

33 lines
759 B
C#

using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Contentless;
public class Config {
[JsonProperty("exclude")]
public string[] ExcludedFiles = {"bin/", "obj/"};
[JsonProperty("logSkipped")]
public bool LogSkipped = true;
[JsonProperty("overrides")]
public Dictionary<string, Override> Overrides = new();
[JsonProperty("references")]
public string[] References = Array.Empty<string>();
}
public class Override {
[JsonProperty("importer")]
public string Importer;
[JsonProperty("processor")]
public string Processor;
[JsonProperty("processorParams")]
public Dictionary<string, string> ProcessorParams = new();
[JsonProperty("copy")]
public bool Copy;
}