-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDeltaNaming.cs
27 lines (21 loc) · 930 Bytes
/
DeltaNaming.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.DotNet.HotReload.Utils.Generator;
/// Properties describing names of the artifacts for a given revision of a baseline assembly
public class DeltaNaming {
readonly string _baseAssemblyPath;
readonly int _rev;
public DeltaNaming (string baseAssemblyPath, int rev) {
_rev = rev;
_baseAssemblyPath = baseAssemblyPath;
}
public string Dmeta => _baseAssemblyPath + "." + Rev + ".dmeta";
public string Dil => _baseAssemblyPath + "." + Rev + ".dil";
public string Dpdb => _baseAssemblyPath + "." + Rev + ".dpdb";
public string UpdateHandlerInfo => _baseAssemblyPath + "." + Rev + ".handler.json";
public int Rev => _rev;
public DeltaNaming Next()
{
return new DeltaNaming(_baseAssemblyPath, Rev+1);
}
}