cloudfoundry-attic / cf-dotnet-sdk

Cloud Foundry .NET SDK
Other
18 stars 13 forks source link

Target .NETStandard #118

Open JohannesRudolph opened 8 years ago

JohannesRudolph commented 8 years ago

Instead of targeting net45 it appears to the cf-dotnet-sdk could easily target .NETStandard (1.5 or higher). This way the library could be used in .NET Core Apps and on other platforms supporting .NET Standard.

It may make sense to go all in on the new project.json toolchain to build the nuget package from a unified codebase, though that may require major work. This way for example a cleaner API for wpa81 and win81 could be exposed that doesn't throw NotImplementedException at runtime in certain places.

See this for a reference on .NETStandard: https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md

ghost commented 6 years ago

I've filed a PR https://github.com/cloudfoundry/cf-dotnet-sdk/pull/134

I've created 4 projects targeting .NET Core 2.0

It's not a full porting including the unit test but better than nothing! Now i can do some kind of app monitoring within my app in .net core!

VenkateshSrini commented 6 years ago

Hi, I have attempted to convert most of the project to .NET standard 2.0 except the cloud manifest project. it is available in https://github.com/VenkateshSrini/CloudFoundrySDKCore