Comments (3)
Hi,
Sorry, but I don't have VS2010 to test with (or the disk space to install it). The code was written with 2013 and 2015. While I didn't deliberately make it incomaptible with 2010 I may well have used unsupported project types or syntax for the IDE and compiler of that age. I'm not sure what "files" would be "incompatible" or why, unless it was the PCL libraries either being unsupported or targeting unknown platforms.
As for your console project, that should defintely work (the test/sample app in the repository is a console app, and .Net 4 is a supported target of the library). It sounds like your problem is you've tried to setup the references manually and haven't done a complete job. By far the easiest way to make this work is going to be to use the Nuget package. https://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c seems like it has a 2010 compatible version of the Nuget package manager if that's not already included in your VS2010 install. From the package manager, install the 'RSSDP' package (http://www.nuget.org/packages/Rssdp/).
Assuming you can't do that for some reason, then you need to obtain and reference the dependencies used by RSSDP. You specifically mentioned System.Net.Http which I believe is one of those dependencies (Microsoft.Net.Http). RSSDP is dependent on the following nuget packages;
<dependency id="Microsoft.Net.Http" version="2.2.29" />
<dependency id="Microsoft.Bcl.Async" version="1.0.168" />
These are used for async/await and httpclient support on platforms that don't support one or other natively (I think 4.03 is in that list). You will need to download and unpack the binaries from those files, and then add the references to the binaries for the platform(s) you're working with to the same project(s) referencing the RSSDP assemblies. I am not sure if there is anything else you need to do - it maybe the Microsoft.Bcl.Async package also modified the build targets in the csproj when installed by Nuget. Easiest way to tell would be to install the Nuget package using a version of VS that supports it and see what changes are made to the csproj.
Again, the easiest way to get this to work is to use the Nuget package which does all this for you.
Hope that helps.
from rssdp.
Thank you for your response. There were indeed multiple syntax errors so I installed visual studio 2015 and everything works perfectly.
from rssdp.
👍
from rssdp.
Related Issues (20)
- Target .NET Standard 2.0
- How to remove "schemas-upnp-org:device" from Notify Device Type Messages HOT 2
- discovery HTTP-headers without CR+LF
- Unhandled exception when UdpSocket is disposed but inner disposed socket receives an input
- About the Location item in SSDProotDevice
- Newlines are not sent HOT 1
- RSSDP Not Finding All Devices HOT 1
- RSSDP can't find all the IP addresses on my LAN
- Advertise C# WCF app so that it appears in the Network explorer
- Upnp Pentest Toolkit Device(Error)
- Needing to call SearchAsync() repeatedly and unable to receive notifications from remote devices HOT 3
- DeviceUnavailable callback never called
- SearchAsync does not actually start an M-Search
- iOS and SearchAsync HOT 1
- Method when `SearchAsync` is ended with no response?
- uPnP discovery suddenly stopp working? HOT 10
- IndexOutOfRangeException in SsdpTraceLogger.WriteLogMessage HOT 1
- Cancellation Token for SearchAsync HOT 1
- RSSDP doesn't work HOT 2
- Cannot find any device on phone HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rssdp.