Resolve the full path to the key file
This commit is contained in:
parent
3886320508
commit
b50ae8bbeb
1 changed files with 7 additions and 0 deletions
|
@ -168,6 +168,13 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
};
|
||||
|
||||
var compilationOptions = context.ProjectFile.GetCompilerOptions(context.TargetFramework, configuration);
|
||||
|
||||
if (!string.IsNullOrEmpty(compilationOptions.KeyFile))
|
||||
{
|
||||
// Resolve full path to key file
|
||||
compilationOptions.KeyFile = Path.GetFullPath(Path.Combine(context.ProjectFile.ProjectDirectory, compilationOptions.KeyFile));
|
||||
}
|
||||
|
||||
// Add compilation options to the args
|
||||
compilerArgs.AddRange(compilationOptions.SerializeToArgs());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue