Repository navigation
Improve launching the TaskRunner - #548
Conversation
Launch the TaskRunner as .NETFramework (TaskRunner.exe) or .NETCoreApp (dotnet TaskRunner.dll) depending on the task dll target framework identifier. Fixes KirillOsenkov#403 Fixes KirillOsenkov#539 Note that unlike what was hinted in KirillOsenkov#403, the `TaskRunner.runtimeconfig.json` file is generated at build time and `RollForward` has been set to `LatestMajor` so that the TaskRunner.dll can run on any installed .NET (Core) runtime. Because "make sure the framework exists from step 2" might turn into a pretty expensive operation.
|
Note that this pull request is not a 100% working solution because both Since I'm not familiar with how the final application is packaged, I prefer to let you think about the best solution on how to package both TaskRunner executables. |
|
Thanks, I'll try to find time to get it all ironed out soon. |
|
How's this? |
|
If you could try it when you have time and let me know if any other .dlls are missing. |
|
Hmm I suppose a better solution would be to copy TaskRunner.dll to the same output directory during the build so that F5 works. |
Launch the TaskRunner as .NETFramework (TaskRunner.exe) or .NETCoreApp (dotnet TaskRunner.dll) depending on the task dll target framework identifier.
Fixes #403
Fixes #539
Note that unlike what was hinted in #403, the
TaskRunner.runtimeconfig.jsonfile is generated at build time andRollForwardhas been set toLatestMajorso that the TaskRunner.dll can run on any installed .NET (Core) runtime. Because "make sure the framework exists from step 2" might turn into a pretty expensive operation.