Resolve the full path to the key file

This commit is contained in:
David Fowler 2015-11-06 05:24:13 -08:00
parent 3886320508
commit b50ae8bbeb

View file

@ -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());