Skip to content

Commit a4834b7

Browse files
committed
Work around changed $(PublishDepsFilePath) value in recent SDKs
- do not attempt to copy aspnetcorev2_inprocess.dll, even when RID specified
1 parent 17499e4 commit a4834b7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Servers/IIS/IIS/test/testassets/TestTasks/InjectRequestHandler.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ private static void Main(string[] args)
5252
}
5353
else
5454
{
55-
bitness.Add(new JProperty(aspnetcoreV2Name, new JObject(
55+
var bitnessString = rid.Substring(rid.Length - 3, 3);
56+
bitness.Add(new JProperty($"{bitnessString}/{aspnetcoreV2Name}", new JObject(
5657
new JProperty("rid", rid),
5758
new JProperty("assetType", "native")
5859
)));
59-
var outputFolder = Path.GetDirectoryName(depsFile);
60-
var bitnessString = rid.Substring(rid.Length - 3, 3);
61-
File.Copy(Path.Combine(outputFolder, bitnessString, aspnetcoreV2Name), Path.Combine(outputFolder, aspnetcoreV2Name), overwrite: true);
6260
}
6361

6462
targetLibrary =

0 commit comments

Comments
 (0)