Skip to content

Commit

Permalink
feat(build): publish nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyho committed Jun 10, 2019
1 parent 915f2f5 commit 7e9704a
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 15 deletions.
Binary file added src/WeGouSharp/.assets/Resources.zip
Binary file not shown.
4 changes: 4 additions & 0 deletions src/WeGouSharp/.assets/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This file is the resources and configs for wegousharp.
If you dot't have them in you project, extract the zip file to your porgram directory

happy coding~
38 changes: 23 additions & 15 deletions src/WeGouSharp/WeGouSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
<OutputType>exe</OutputType>
-->
<PackageId>WegouSharp</PackageId>
<Version>0.0.1</Version>
<Version>0.0.4</Version>
<Authors>Hoyho</Authors>
<Company>here2say</Company>
<Title>wechat public account scrawler helper</Title>
<Title>Wechat public account scrawler helper</Title>
<Owners>Hoyho</Owners>
<RepositoryUrl>https://github.com/hoyho/WeGouSharp</RepositoryUrl>
<Description>a powerful spider tool for wechat official account</Description>
<!-- <NuspecFile>wegousharp.nuspec</NuspecFile> -->
<Description>A powerful spider tool for wechat official account</Description>
<LicenseUrl>https://raw.githubusercontent.com/hoyho/WeGouSharp/master/LICENSE</LicenseUrl>
<ProjectUrl>https://github.com/hoyho/WeGouSharp</ProjectUrl>

</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="4.8.0" />
Expand All @@ -28,22 +30,28 @@
<PackageReference Include="OpenCvSharp3-AnyCPU" Version="3.3.1.20171117" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.0" />
<PackageReference Include="RestSharp" Version="106.3.1" />
<!--
<PackageReference Include="OpenCvSharp3-WithoutDll" Version="3.3.1.20171117" />
-->
</ItemGroup>


<ItemGroup>
<None Update="log4net.config" Pack="true" >
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Content Include="log4net.config" buildAction="Content" copyToOutput="true" Pack="false" >
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<None Update="Resource\**" CopyToOutputDirectory="PreserveNewest" Pack="true" />
<Content Include="Resource\**" buildAction="Content" copyToOutput="true" Pack="false">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<None Update="wegousharpsettings.json" Pack="true">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="wegousharpsettings.json" CopyToOutputDirectory="PreserveNewest" Pack="false" />
</ItemGroup>

<ItemGroup>
<None Include="readme.txt" pack="true" PackagePath="." />
</ItemGroup>


</Project>
23 changes: 23 additions & 0 deletions src/WeGouSharp/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
!!!! Important Note for NuGet User !!!!
!!!! Nuget用户重要说明 !!!!

Since dotnetcore/dotnet cli(for nuget) don't support distributing conent and tools anymore
Actually, you still can do that, but they file is just a link from cache. And there's many potential issues.

You may need to add Resource file manually.

Please download resource from GitHub and put it to published folder or add to your project and publish it

Resource mentioned here include some configurations and dependences like driver , etc


由于dotnetcore/dotnet cli用于nuget的接口现在不支持发布静态资源文件和工具集了(其实也能发布,只是拿到的是一链接文件,又有一堆坑,已经不建议这么使用)

因此你需要手动添加可能需要的资源文件

资源文件可从GitHub仓库下载, 请把下载的资源文件放在发布目录下,
或者添加到你的项目,然后作为发布文件输出

这里所说的资源包括一些配置文件,依赖项如gecko驱动之类的东西。


0 comments on commit 7e9704a

Please sign in to comment.