Skip to content

Commit

Permalink
打包并发布到nuget.org平台
Browse files Browse the repository at this point in the history
  • Loading branch information
sndnvaps committed Feb 12, 2023
1 parent fa83bbb commit c3efa73
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 13 deletions.
7 changes: 7 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright © 2018-2023 Jimes Yang <sndnvaps@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

# It can download from Nuget.com use Powershell

Install-Package Phonedata -Version 1.1.0
Install-Package Phonedata -Version 1.2.1

# Test Platform:

Windows 7 x64
vs 2017
Windows 7 x64/Widnwos 10 x64
Net Framework v4.6.1
dotnet core 6.0

--------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions phonedata/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyVersion("1.2.0")]
[assembly: AssemblyFileVersion("1.2.0")]
[assembly: AssemblyVersion("1.2.1")]
[assembly: AssemblyFileVersion("1.2.1")]
Binary file added phonedata/phonedata.dotnet.1.2.1.nupkg
Binary file not shown.
7 changes: 5 additions & 2 deletions phonedata/phonedata.dotnet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>

</PropertyGroup>
<ItemGroup>
<None Include="App.config" />
Expand All @@ -14,5 +15,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<None Include="..\README.md" Pack="true" PackagePath="$(PackageReadmeFile)"/>
<None Include="..\LICENSE.txt" Pack="true" PackagePath="$(PackageLicenseFile)"/>
</ItemGroup>
</Project>
22 changes: 22 additions & 0 deletions phonedata/phonedata.dotnet.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>phonedata.dotnet</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>https://sndnvaps.mit-license.org/2018</licenseUrl>
<projectUrl>https://github.com/sndnvaps/Phonedata</projectUrl>
<releaseNotes>Forth release.</releaseNotes>
<copyright>Copyright 2018 - 2023</copyright>
<tags>v1.0.0 v1.0.2 v1.1.0 v1.2.1</tags>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<dependencies>
<group targetFramework=".NETStandard2.0" />
</dependencies>
<contentFiles>
<files include="any/netstandard2.0/phone.dat" buildAction="Content" />
</contentFiles>
</metadata>
</package>
6 changes: 3 additions & 3 deletions phonedata/phonedata.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<projectUrl>https://github.com/sndnvaps/Phonedata</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Third release.</releaseNotes>
<copyright>Copyright 2018 - 2019</copyright>
<tags>v1.0.0 v1.0.2 v1.1.0</tags>
<releaseNotes>Forth release.</releaseNotes>
<copyright>Copyright 2018 - 2023</copyright>
<tags>v1.0.0 v1.0.2 v1.1.0 v1.2.0</tags>
</metadata>
</package>
6 changes: 3 additions & 3 deletions phonedatacmd/phonedatacmd.dotnet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\phonedata\phonedata.dotnet.csproj" />
</ItemGroup>

<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
Expand All @@ -25,5 +24,6 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<None Include="..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>

0 comments on commit c3efa73

Please sign in to comment.