Generate projects for net451
This commit is contained in:
parent
634f069c3c
commit
8b2dfabc30
|
|
@ -13,6 +13,7 @@ PublishProfiles/
|
||||||
_ReSharper.*
|
_ReSharper.*
|
||||||
nuget.exe
|
nuget.exe
|
||||||
*net45.csproj
|
*net45.csproj
|
||||||
|
*net451.csproj
|
||||||
*k10.csproj
|
*k10.csproj
|
||||||
*.psess
|
*.psess
|
||||||
*.vsp
|
*.vsp
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ default skipNet45='${false}'
|
||||||
|
|
||||||
var templates = new Dictionary<string, string> {
|
var templates = new Dictionary<string, string> {
|
||||||
{ "net45", net45 },
|
{ "net45", net45 },
|
||||||
|
{ "net451", net45 },
|
||||||
{ "k10", k10 },
|
{ "k10", k10 },
|
||||||
{ "web", web }
|
{ "web", web }
|
||||||
};
|
};
|
||||||
|
|
@ -42,6 +43,7 @@ default skipNet45='${false}'
|
||||||
if(skipNet45)
|
if(skipNet45)
|
||||||
{
|
{
|
||||||
templates.Remove("net45");
|
templates.Remove("net45");
|
||||||
|
templates.Remove("net451");
|
||||||
}
|
}
|
||||||
|
|
||||||
ProjectGenerator.MakeProjects(solutionPath, templates);
|
ProjectGenerator.MakeProjects(solutionPath, templates);
|
||||||
|
|
@ -149,6 +151,7 @@ functions
|
||||||
string projectName = projectDir.Substring(Path.GetDirectoryName(projectDir).Length).Trim(Path.DirectorySeparatorChar);
|
string projectName = projectDir.Substring(Path.GetDirectoryName(projectDir).Length).Trim(Path.DirectorySeparatorChar);
|
||||||
|
|
||||||
string net45Project = Path.Combine(projectDir, GetProjectFileName(projectName, "net45"));
|
string net45Project = Path.Combine(projectDir, GetProjectFileName(projectName, "net45"));
|
||||||
|
string net451Project = Path.Combine(projectDir, GetProjectFileName(projectName, "net451"));
|
||||||
string k10Project = Path.Combine(projectDir, GetProjectFileName(projectName, "k10"));
|
string k10Project = Path.Combine(projectDir, GetProjectFileName(projectName, "k10"));
|
||||||
|
|
||||||
var configs = new Dictionary<string, object>();
|
var configs = new Dictionary<string, object>();
|
||||||
|
|
@ -156,6 +159,10 @@ functions
|
||||||
solutionProjects[net45Project] :
|
solutionProjects[net45Project] :
|
||||||
GetProjectGuidFromFileOrCreateNew(net45Project);
|
GetProjectGuidFromFileOrCreateNew(net45Project);
|
||||||
|
|
||||||
|
configs["net451"] = solutionProjects.ContainsKey(net451Project) ?
|
||||||
|
solutionProjects[net451Project] :
|
||||||
|
GetProjectGuidFromFileOrCreateNew(net451Project);
|
||||||
|
|
||||||
configs["k10"] = solutionProjects.ContainsKey(k10Project) ?
|
configs["k10"] = solutionProjects.ContainsKey(k10Project) ?
|
||||||
solutionProjects[k10Project] :
|
solutionProjects[k10Project] :
|
||||||
GetProjectGuidFromFileOrCreateNew(k10Project);
|
GetProjectGuidFromFileOrCreateNew(k10Project);
|
||||||
|
|
@ -629,7 +636,7 @@ functions
|
||||||
|
|
||||||
private static string[] GetCandidates(string config)
|
private static string[] GetCandidates(string config)
|
||||||
{
|
{
|
||||||
if (config == "net45")
|
if (config == "net45" || config == "net451")
|
||||||
{
|
{
|
||||||
return new[] { "net45", "net40", "net35", "35", "net20" };
|
return new[] { "net45", "net40", "net35", "35", "net20" };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue