Description
dotnet-script myscript --configfile PathToMzConfigFile
The nuget.config gets copied to the temporary project location. But for some reason it is modified, which is from my point of view not ok. For example nuget.org gets automatically added, which I don't want in an enterprise environment.
Unfortunately even some important parts are completely removed. The whole packageSourceCredentials section gets removed, which makes dotnet-script fail, when accessing the repositories that require those credentials.
Is there any workaround to avoid that modification?
From my point of view the best solution would be if dotnet-script is executed in the context of the script file. Then the nuget logic to find the config in any folder above would also work, which doesn't currently.
The other solution would be to find the nuget.config in the directories above when creating the temp project, and copy it unmodified into the temp script project folder.