Tooling: What files are included in ASP.NET Core projects?

Created on 29 Nov 2016  Â·  4Comments  Â·  Source: aspnet/Tooling

I have a new .csproj ASP.NET Core project. I am trying to figure out what files are included in the project and how. The following items are defined in my .csproj:

<Compile Include="**\*.cs" />
<EmbeddedResource Include="**\*.resx" />
<Content Include="appsettings.json">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

This is the result:

  • all **\*.cs files are included ✓
  • all **\*.resx files are included ✓
  • appsettings.json is included ✓
  • compilersettings.json is included, but not defined in project file
  • wwwroot\**\* is included, but not defined in project file
  • web.config is included, but not defined in project file
  • .bowerrc is included, but it does not even exist
  • all Styles\**\*.less files are included, but Styles\**\*.otf are not

It's a bit strange and inconsistent. Are some well-known files included by default? Who decides what files are well-know and what files are not?

enhancement

Most helpful comment

I'm tying super hard to get it OSS asap. Stay tuned

All 4 comments

This is a good spot to ask a related question, since at least some of those are being published at the direction of Microsoft.NET.Sdk.Web ... Will Microsoft.NET.Sdk.Web go OSS soon?

I'm tying super hard to get it OSS asap. Stay tuned

We're actively working on getting it made public, just a few last things we need to get taken care of before we do. It's looking like it'll be ready in the next week or two at the moment.

@vijayrkn when we complete the work to get WebSDK opened up, could you update this issue please?

Was this page helpful?
0 / 5 - 0 ratings