Adds resx to proj gen
This commit is contained in:
parent
e79aefce8b
commit
f4e3bb768d
|
|
@ -195,12 +195,10 @@ functions
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the list of files
|
// Get the list of files
|
||||||
var filesString = String.Join(Environment.NewLine,
|
var filesString
|
||||||
Directory.GetFiles(projectDir, "*.cs", SearchOption.AllDirectories)
|
= String.Join(Environment.NewLine,
|
||||||
.Select(p => p.Substring(projectDir.Length).Trim(Path.DirectorySeparatorChar))
|
BuildFileList(projectDir, "*.cs", "Compile"),
|
||||||
.Where(p => !p.StartsWith("obj"))
|
BuildFileList(projectDir, "*.resx", "EmbeddedResource"));
|
||||||
.Select(p => String.Format(
|
|
||||||
@"<Compile Include=""{0}"" />", p)));
|
|
||||||
|
|
||||||
var packageReferences = dependencies.Where(r => !projectMapping.ContainsKey(r.Key))
|
var packageReferences = dependencies.Where(r => !projectMapping.ContainsKey(r.Key))
|
||||||
.ToDictionary(k => k.Key, k => (string)k.Value);
|
.ToDictionary(k => k.Key, k => (string)k.Value);
|
||||||
|
|
@ -302,6 +300,15 @@ functions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static string BuildFileList(string projectDir, string pattern, string elementName)
|
||||||
|
{
|
||||||
|
return String.Join(Environment.NewLine,
|
||||||
|
Directory.GetFiles(projectDir, pattern, SearchOption.AllDirectories)
|
||||||
|
.Select(p => p.Substring(projectDir.Length).Trim(Path.DirectorySeparatorChar))
|
||||||
|
.Where(p => !p.StartsWith(@"obj\"))
|
||||||
|
.Select(p => String.Format(@"<{0} Include=""{1}"" />", elementName, p)));
|
||||||
|
}
|
||||||
|
|
||||||
private static string GetProjectKTargets(string packagesDir)
|
private static string GetProjectKTargets(string packagesDir)
|
||||||
{
|
{
|
||||||
var projectK = Directory.GetDirectories(packagesDir, "ProjectK*")
|
var projectK = Directory.GetDirectories(packagesDir, "ProjectK*")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue