dotnet-campus / SourceYard

Add a NuGet package only for dll reference? By using dotnetCampus.SourceYard, you can pack a NuGet package with source code. By installing the new source code package, all source codes behaviors just like it is in your project.
MIT License
50 stars 12 forks source link

提供忽略文件功能 #108

Closed lindexi closed 3 years ago

lindexi commented 3 years ago

不要在 SourceYard 里面包含的文件项,这些文件项将在打包时被排除

例如有一些文档是写入到项目里面,期望打包的时候,不要将这些文档打包添加到源代码包引用里面,以免被输出

又例如有一些调试使用的文件,例如 foo.coin 文件,不期望作为资源被其他项目引用

将不期望被源代码包引用的文件项加入到 SourceYardExcludeFileItem 列表即可在打包的时候被忽略引用,但文件依然会被添加到源代码里面,只是引用而已

加入方法如下

  <ItemGroup>
    <SourceYardExcludeFileItem Include="foo.coin" />
    <SourceYardExcludeFileItem Include="Resource\F1.md" />
  </ItemGroup>