【发布时间】:2018-10-21 16:32:17
【问题描述】:
我观察到 .Net 标准和 .Net Core 中的 .csproj 文件存在差异。
在 .Net 项目中,所有文件 (.cs,.js etc) 都包含在每个项目的 .csproj 文件中。例如:
<Compile Include="ViewModel\LiveViewViewModel.cs" />
<Compile Include="ViewModel\RegistrationViewModel.cs" />
<Compile Include="Views\LiveView.xaml.cs">
<DependentUpon>LiveView.xaml</DependentUpon>
</Compile>
但如果我看到新的 .Net Core .csproj 文件,则没有提及任何 .cs/.js 或任何文件。
我很想了解 .net 核心项目在编译时如何包含文件。
【问题讨论】: