Closed Tronald closed 7 years ago
Which version of VS are you using?
2012 Professional.
I've only tested adding a reference to the lib in VS 2015 and 2018. Here it works well for .NET 4.5 projects. I can only guess that VS 2012 is too old to "know" about .NET Core.
Maybe this is of any help.
I believe you are correct. This is most likely the issue. Will try in a more recent copy of VS when able.
For now, you could use v0.6.3.0 of the lib. It does not contain the latest features, but is separated into UWP/NetFx. The NetFx part is "pure .NET 4.5", so you could use that.
I'll close this issue, because it seems to be VS 2012 related.
Last follow up in case anyone working in a "pre .NET Core" environment needs this library.
I downloaded the .zip containing the most recent release directly to see if I could get it to work in a "pure .NET 4.5" project. It is working great. With that said I have only used the features available in the WebDavSession class which may not be targeting newer .NET Core features.
I would recommend trying this method first as the v0.6.3.0 NetFx library is pretty limited in it's WebDavSession properties. This will allow you to work around the Nuget "target" verification. With that said, rigorously test the features you need, as errors will occur if you start targeting things you don't have a framework for.
.NET Standard 1.1 includes .NET Framework 4.5. When trying to install via Nuget for a .NET 4.5 project in VS the following error occurs.