I think you'd probably have to check the redistribution license for Visual Studio to understand what's allowable - https://docs.microsoft.com/en-au/visualstudio/releases/2022/redistribution
An alternative could be to use dotnet-script - https://github.com/filipw/dotnet-script David On Thu, 21 Apr 2022 at 07:50, Greg Keogh <gfke...@gmail.com> wrote: > Folks, a colleague wants to provide csx (C# script) files with our > product. He has cloned this whole folder into the product release so that > the customer can run the scripts: > > C:\Program Files\Microsoft Visual > Studio\2022\Professional\Msbuild\Current\Bin\Roslyn > > I'm thinking "that looks fragile or illegal". Is there some formal and > safe way of guaranteeing that the csi.exe command is available on the > customer end? Is there some convention? > > Cheers, > *Greg Keogh* >