Added default configurations if none specified.
This commit is contained in:
parent
4a3491e5b8
commit
97c064af5c
|
|
@ -148,9 +148,16 @@ functions
|
||||||
var jsonText = File.ReadAllText(jsonPath);
|
var jsonText = File.ReadAllText(jsonPath);
|
||||||
|
|
||||||
var d = serializer.DeserializeObject(jsonText) as IDictionary<string, object>;
|
var d = serializer.DeserializeObject(jsonText) as IDictionary<string, object>;
|
||||||
var configs = GetObject(d, "configurations");
|
var configs = GetObject(d, "configurations") ?? new Dictionary<string, object>();
|
||||||
var dependencies = GetObject(d, "dependencies") ?? new Dictionary<string, object>();
|
var dependencies = GetObject(d, "dependencies") ?? new Dictionary<string, object>();
|
||||||
|
|
||||||
|
if(configs.Count == 0)
|
||||||
|
{
|
||||||
|
// If the project doesn't specify any configurations generate both
|
||||||
|
configs["k10"] = new Dictionary<string, object>();
|
||||||
|
configs["net45"] = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
// Get the list of files
|
// Get the list of files
|
||||||
var filesString = String.Join(Environment.NewLine,
|
var filesString = String.Join(Environment.NewLine,
|
||||||
Directory.GetFiles(projectDir, "*.cs", SearchOption.AllDirectories)
|
Directory.GetFiles(projectDir, "*.cs", SearchOption.AllDirectories)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue