Skip to content

Project system fails to load when extension is not .csproj #4647

@ericstj

Description

@ericstj

Visual Studio Version:
VS 2019 RC

Summary:
I have an SDK based project using a custom SDK. It is not a C# project but I expect CPS to be able to load and handle it just fine. If I attempt to add it to a SLN as an ".msbuildproj" it fails. If I name it .ilproj and add it to the SLN manually in a text editor it also fails. If I rename it to .csproj the project system will load it.

dotnet build has no problem with the project regardless of extension which makes me think this is a project-system bug.

Steps to Reproduce:

  1. Load attached SLN.

Expected Behavior:
Both projects load correctly.

Actual Behavior:
csproj loads correctly, ilproj fails with error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found. despite it being idetntical to the csproj.

User Impact:
Lack of extensibility for non-default project types.

ilproj-repro.zip

/cc @zsd4yr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions