Browse Source

添加nuget相关信息

世龙 苏 7 years ago
parent
commit
5ef71370f2

+ 2 - 1
CommonLibrary/CommonLibrary.csproj

@@ -62,10 +62,11 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="IpV4AddressAttribute.cs" />
+    <Compile Include="IpAddressAttribute.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>
+    <None Include="package.nuspec" />
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>

+ 2 - 2
CommonLibrary/IpV4AddressAttribute.cs → CommonLibrary/IpAddressAttribute.cs

@@ -5,9 +5,9 @@
     using System.Net;
     using System.Web.Mvc;
 
-    public class IpV4AddressAttribute : RegularExpressionAttribute, IClientValidatable
+    public class IpAddressAttribute : RegularExpressionAttribute, IClientValidatable
     {
-        public IpV4AddressAttribute()
+        public IpAddressAttribute()
             : base(@"^([\d]{1,3}\.){3}[\d]{1,3}$")
         {
         }

BIN
CommonLibrary/Properties/AssemblyInfo.cs


+ 31 - 0
CommonLibrary/package.nuspec

@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<package>
+  <metadata>
+    <!--*-->
+    <id>CommonLibrary</id>
+    <!--*-->
+    <version>1.0.0</version>
+    <title>CommonLibrary</title>
+    <!--*-->
+    <authors>SKZH</authors>
+    <owners>SKZH</owners>
+    <!--
+    <licenseUrl></licenseUrl>
+    <projectUrl></projectUrl>
+    <iconUrl></iconUrl>
+-->
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <!--*-->
+    <description>SKZH Common Library</description>
+    <!--*-->
+    <releaseNotes>SKZH Common Library</releaseNotes>
+    <copyright>Copyright © Microsoft 2018</copyright>
+    <tags>
+    </tags>
+    <dependencies>
+      <!--
+      <dependency id="SampleDependency" version="1.0" />
+-->
+    </dependencies>
+  </metadata>
+</package>

BIN
nuget/nuget.exe