8000 Passed config file is modified and becomes invalid · Issue #463 · dotnet-script/dotnet-script · GitHub
[go: up one dir, main page]

Skip to content 8000
Passed config file is modified and becomes invalid #463
Closed
@TFTomSun

Description

@TFTomSun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0