Skip to content

Commit ce634b7

Browse files
committed
for generic windows builds, use win-foo as the RID, instead of win7-foo. #194
1 parent 4829dd0 commit ce634b7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gen_build.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ public static string rid_front_half(string toolset)
381381
switch (toolset)
382382
{
383383
case "v110_xp":
384-
return "win7";
384+
// for our builds, v110_xp should always correspond to a win-whatever RID
385+
return "win";
385386
case "v110":
386387
return "win8";
387388
case "v110_wp80":
@@ -3560,17 +3561,17 @@ private static void gen_nuspec_sqlcipher(string top, string root, string plat)
35603561
case "windows":
35613562
f.WriteStartElement("file");
35623563
f.WriteAttributeString("src", Path.Combine(root, "cb\\bin\\sqlcipher\\v140\\plain\\x86\\sqlcipher.dll"));
3563-
f.WriteAttributeString("target", string.Format("runtimes\\win7-x86\\native\\sqlcipher.dll"));
3564+
f.WriteAttributeString("target", string.Format("runtimes\\win-x86\\native\\sqlcipher.dll"));
35643565
f.WriteEndElement(); // file
35653566

35663567
f.WriteStartElement("file");
35673568
f.WriteAttributeString("src", Path.Combine(root, "cb\\bin\\sqlcipher\\v140\\plain\\x64\\sqlcipher.dll"));
3568-
f.WriteAttributeString("target", string.Format("runtimes\\win7-x64\\native\\sqlcipher.dll"));
3569+
f.WriteAttributeString("target", string.Format("runtimes\\win-x64\\native\\sqlcipher.dll"));
35693570
f.WriteEndElement(); // file
35703571

35713572
f.WriteStartElement("file");
35723573
f.WriteAttributeString("src", Path.Combine(root, "cb\\bin\\sqlcipher\\v140\\plain\\arm\\sqlcipher.dll"));
3573-
f.WriteAttributeString("target", string.Format("runtimes\\win8-arm\\native\\sqlcipher.dll"));
3574+
f.WriteAttributeString("target", string.Format("runtimes\\win-arm\\native\\sqlcipher.dll"));
35743575
f.WriteEndElement(); // file
35753576

35763577
f.WriteStartElement("file");
@@ -4533,14 +4534,14 @@ private static void gen_nuget_targets_windows(string top, string tname, string f
45334534
f.WriteAttributeString("Condition", " '$(OS)' == 'Windows_NT' ");
45344535

45354536
f.WriteStartElement("Content");
4536-
f.WriteAttributeString("Include", string.Format("$(MSBuildThisFileDirectory)..\\..\\runtimes\\win7-x86\\native\\{0}", filename));
4537+
f.WriteAttributeString("Include", string.Format("$(MSBuildThisFileDirectory)..\\..\\runtimes\\win-x86\\native\\{0}", filename));
45374538
f.WriteElementString("Link", string.Format("{0}\\{1}", "x86", filename));
45384539
f.WriteElementString("CopyToOutputDirectory", "PreserveNewest");
45394540
f.WriteElementString("Pack", "false");
45404541
f.WriteEndElement(); // Content
45414542

45424543
f.WriteStartElement("Content");
4543-
f.WriteAttributeString("Include", string.Format("$(MSBuildThisFileDirectory)..\\..\\runtimes\\win7-x64\\native\\{0}", filename));
4544+
f.WriteAttributeString("Include", string.Format("$(MSBuildThisFileDirectory)..\\..\\runtimes\\win-x64\\native\\{0}", filename));
45444545
f.WriteElementString("Link", string.Format("{0}\\{1}", "x64", filename));
45454546
f.WriteElementString("CopyToOutputDirectory", "PreserveNewest");
45464547
f.WriteElementString("Pack", "false");

0 commit comments

Comments
 (0)