Skip to content

Commit

Permalink
Call GetFullPath for shorter search path
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Svensson committed May 7, 2024
1 parent fc9e8af commit 428e1ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ internal void GenerateClientProxies()
private bool GenerateClientProxiesOutOfProcess(string generatedFileName, ClientCodeGenerationOptions options, SharedCodeServiceParameters sharedCodeServiceParameters)
{
// Call the console app from here if Net 6.0 or greater
string path = Path.Combine(Path.GetDirectoryName(typeof(CreateOpenRiaClientFilesTask).Assembly.Location),
"../net6.0/OpenRiaServices.Tools.CodeGenTask.dll");
string path = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(typeof(CreateOpenRiaClientFilesTask).Assembly.Location),
"../net6.0/OpenRiaServices.Tools.CodeGenTask.dll"));

if (!File.Exists(path))
throw new FileNotFoundException(path);
Expand Down

0 comments on commit 428e1ba

Please sign in to comment.