8000 Make `dotnet run file.cs` compiled program location user-configurable · Issue #49130 · dotnet/sdk · GitHub
[go: up one dir, main page]

Skip to content
Make dotnet run file.cs compiled program location user-configurable #49130
@orthoxerox

Description

@orthoxerox

Is your feature request related to a problem? Please describe.

Many enterprises have software restriction policies on their computers that block locations inside %USERPROFILE% and %TEMP% to defend against malware. Any local development is restricted to a specific work folder.
Right now, dotnet run uses %TEMP% on Windows: https://github.com/dotnet/sdk/blob/main/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs#L452 and would fail on a machine with such a group policy.

Describe the solution you'd like

Please provide a way to configure the path dotnet run uses. Ideally it should be an environment variable (e.g., DOTNET_RUN_ARTIFACTS_PATH) to avoid typing an extra parameter every time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0