Skip to content

Self contained NET core app does not have execute permission set #1676

@MichaelSimons

Description

@MichaelSimons
  1. dotnet new
  2. dotnet restore -r debian.8-x64
  3. dotnet publish -r debian.8-x64 -o out
  4. ./out/app

Expected Results
Application would run. I would expect the executable placed in the out directory to have owner execute permission.

Actual Results

bash: ./out/app: Permission denied

dotnet --info

.NET Command Line Tools (2.0.0-alpha-004782)

Product Information:
 Version:            2.0.0-alpha-004782
 Commit SHA-1 hash:  da15d5435f

Runtime Environment:
 OS Name:     debian
 OS Version:  8
 OS Platform: Linux
 RID:         debian.8-x64
 Base Path:   /usr/share/dotnet/sdk/2.0.0-alpha-004782/

dotnet msbuild /version

Microsoft (R) Build Engine version 15.2.2.21747

This appears to be a regression since msbuild 15.1.545.13942.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions