Skip to content

Packed contentFiles are included as source code even when they're some other form of content #5024

Open
@gulbanana

Description

@gulbanana

I've got an sdk project for building a nuget package which includes this section:

  <ItemGroup>
    <Content Include="wwwroot\*.d.ts" PackagePath="contentfiles\any\any\typings\" />
  </ItemGroup>

The goal is to provide typescript definition files to consumers of the package. I don't want them to be compiled as C# files, and the item isn't of type Compile.

The generated package contains the content files at the specified path. However, when my package is referenced by some project, it tries to compile the files with csc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions