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

提供额外带上文件的方法 #75

Closed lindexi closed 4 years ago

lindexi commented 4 years ago

可以使用 PackSource 属性指定将某个文件或文件夹打包到源代码包的某个文件夹或文件

如下面写法

           <PackSource Include = "Foo\123.dll" OuputPath = "\analyzer\123.dll"/>
lindexi commented 4 years ago

按照约定的文件夹

lindexi commented 4 years ago
  <CompilePackSourceYard Include = "Foo\a.cs" OuputPath = "analyzer\a.cs"/>
  <NonePackSourceYard Include = "Foo\123.dll" OuputPath = "analyzer\1.dll"/>
walterlv commented 4 years ago

@lindexi

<SourceYardCompile Include="Foo\a.cs" SourcePackagePath="analyzer\a.cs" />
<SourceYardNone Include="Foo\123.dll" SourcePackagePath="analyzer\1.dll" />