mtrutledge / generator-dnn

Yeoman generator to scaffold DNN / DotNetNuke Modules and Themes.
MIT License
17 stars 10 forks source link

[MVC] Add Missing License.md and package.json to csproj template #23

Closed SkyeHoefling closed 6 years ago

SkyeHoefling commented 6 years ago

When creating a new MVC project the generated .csproj file is missing the following files:

I took a look at the template for SPA projects and they are included and as they should because it is easy to edit these files while inside Visual Studio.

When creating a new project I have to add these manually using the following syntax:

<Content Include="package.json" />
<Content Include="License.md" />

I would recommend grouping them with the packages.config and web.config's ItemGroup. Here is the entire ItemGroup for reference

<ItemGroup>
  <Content Include="package.json" />
  <Content Include="License.md" />
  <None Include="packages.config" />
  <Content Include="web.config" />
  <None Include="web.Debug.config">
    <DependentUpon>web.config</DependentUpon>
  </None>
  <None Include="web.Release.config">
    <DependentUpon>web.config</DependentUpon>
  </None>
</ItemGroup>