Skip to content

Passed config file is modified and becomes invalid #463

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy