diff --git a/.gitignore b/.gitignore
index c7cb52f..7ec3d89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,7 +6,9 @@
[Bb]in/
[Oo]bj/
.idea/
+.vs/
+*.nupkg
*.userprefs
*.suo
*.pidb
diff --git a/IntelUpnpDlna.nuspec b/IntelUpnpDlna.nuspec
new file mode 100644
index 0000000..17f37c0
--- /dev/null
+++ b/IntelUpnpDlna.nuspec
@@ -0,0 +1,25 @@
+
+
+
+ IntelUpnpLib
+ 1.0.0
+ IntelUpnpLib
+ Generoso Martello
+ G-Labs
+ https://github.com/genielabs/intel-upnp-dlna/blob/master/LICENSE
+ https://github.com/genielabs/intel-upnp-dlna/
+ false
+ UPnP /DLNA library for .Net / Mono
+ UPnP /DLNA libray for .Net / Mono
+
+ G-Labs
+ upnp dlna ssdp
+
+
+
+
+
+
+
+
+
diff --git a/UPnP/AssemblyInfo.cs b/UPnP/AssemblyInfo.cs
deleted file mode 100644
index ee1d8ec..0000000
--- a/UPnP/AssemblyInfo.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using System.Runtime.InteropServices;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-
-//
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-//
-[assembly: AssemblyTitle("Developper stack for UPnP Technology")]
-[assembly: AssemblyDescription("Developper stack for UPnP Technology")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-//
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-
-[assembly: AssemblyVersion("1.0.0.0")]
-
-//
-// In order to sign your assembly you must specify a key to use. Refer to the
-// Microsoft .NET Framework documentation for more information on assembly signing.
-//
-// Use the attributes below to control which key is used for signing.
-//
-// Notes:
-// (*) If no key is specified, the assembly is not signed.
-// (*) KeyName refers to a key that has been installed in the Crypto Service
-// Provider (CSP) on your machine. KeyFile refers to a file which contains
-// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
-// following processing occurs:
-// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
-// in the KeyFile is installed into the CSP and used.
-// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
-// When specifying the KeyFile, the location of the KeyFile should be
-// relative to the project output directory which is
-// %Project Directory%\obj\. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
-// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
-// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
-// documentation for more information on this.
-//
-[assembly: AssemblyDelaySign(false)]
-[assembly: ComVisible(false)]
diff --git a/UPnP/UPnP.csproj b/UPnP/UPnP.csproj
index 96a32c0..2804549 100644
--- a/UPnP/UPnP.csproj
+++ b/UPnP/UPnP.csproj
@@ -1,5 +1,14 @@
netstandard2.1
+ 1.0.0
+ 1.0.0
+ 2.0.0
+ false
+ false
+ false
+ false
+ false
+ false
-
\ No newline at end of file
+
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..11cdeaa
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,34 @@
+version: 1.0.{build}
+image: Visual Studio 2017
+configuration: Debug
+before_build:
+ - nuget restore
+build:
+ project: .\UPnP\UPnP.sln
+ verbosity: minimal
+test:
+ assemblies:
+ only:
+ - UPnP/bin/Debug/netstandard2.1/UPnP.dll
+after_test:
+ - ps: .\nuget_pack.ps1
+artifacts:
+ - path: '*.nupkg'
+ name: UPnP nupkg
+ type: NuGetPackage
+deploy:
+ - provider: GitHub
+ auth_token:
+ secure: 1aMBEFi1qBAoV4H+LYx7hoVLgXJfndGoQ8I8qjLsoxXNA1zS+zgQHi2zVlRrmw1v
+ draft: false
+ prerelease: false
+ on:
+ appveyor_repo_tag: true
+ - provider: NuGet
+ api_key:
+ secure: ER771ujBnbfc/o+8QyM3XZInr0JyFfv3GIdDyQZfZtNUuCCkDn4cFEc1ZJGCYkpt
+ skip_symbols: false
+ artifact: /.*\.nupkg/
+ on:
+ appveyor_repo_tag: true
+
diff --git a/nuget_pack.ps1 b/nuget_pack.ps1
new file mode 100644
index 0000000..2a366e0
--- /dev/null
+++ b/nuget_pack.ps1
@@ -0,0 +1,19 @@
+$project = "SerialPortLib"
+$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..'
+#$version = [System.Reflection.Assembly]::LoadFile("$root\$project\bin\Debug\$project.dll").GetName().Version
+
+$versionStr = "{0}" -f ($env:APPVEYOR_REPO_TAG_NAME)
+
+if (-not ([string]::IsNullOrEmpty($versionStr))) {
+ Write-Host "Setting $project .nuspec version tag to $versionStr"
+
+ $content = (Get-Content $root\$project\$project.nuspec)
+ $content = $content -replace '\$version\$',$versionStr
+
+ $content | Out-File $root\$project\$project.compiled.nuspec
+
+ & nuget pack $root\$project\$project.compiled.nuspec
+}
+else {
+ Write-Host "Version string is empty, possibly dry run or APPVEYOR_REPO_TAG_NAME environment variable is not set"
+}