Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call "dotnet CodeGenTask.dll" instead of "CodeGenTask.exe" #503

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -769,16 +769,16 @@ 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.exe");
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);

using var loggingServer = new CrossProcessLoggingServer();
var startInfo = new ProcessStartInfo
{
FileName = path,
FileName = "dotnet",
UseShellExecute = false,
CreateNoWindow = true,
};
Expand All @@ -787,7 +787,7 @@ private bool GenerateClientProxiesOutOfProcess(string generatedFileName, ClientC

string fileName = RiaClientFilesTaskHelpers.CreateAndWriteArgumentsToNewTempFile(arguments);

startInfo.Arguments = "@" + fileName;
startInfo.Arguments = path + " @" + fileName;

var process = Process.Start(startInfo);

Expand Down
Loading