These are chat archives for Ruhrpottpatriot/GW2.NET

26th
Jul 2016
Robert Logiewa
@Ruhrpottpatriot
Jul 26 2016 14:09
Currently we are using PCL to make GW2.NET available to as many users as possible, but .netstandard, or the thing replacing .netstandard, whose name I forgot, is replacing PCL, therefore we are migrating to it
after we implemented HTTP client ofc
Darnell Williams
@Seeker1437
Jul 26 2016 20:59
oh .net core?
Robert Logiewa
@Ruhrpottpatriot
Jul 26 2016 20:59
yeah, that
Darnell Williams
@Seeker1437
Jul 26 2016 21:00
resources are embedded b default :O
{
  "version": "1.0.0-*",
  "compilationOptions": {
    "emitEntryPoint": true
  },

  "resource": [
    "fakedata.json"
  ],

  "dependencies": {
    "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
    "Microsoft.AspNet.Owin": "1.0.0-rc1-final",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
    "Nancy.Linker": "0.3.0"
  },

  "commands": {
    "web": "Microsoft.AspNet.Server.Kestrel"
  },

  "frameworks": {
    "dnx451": {
      "dependencies": {
        "Nancy": "1.4.3",
        "Nancy.Owin": "1.4.1"
      }
    }
  },

  "exclude": [
    "wwwroot",
    "node_modules"
  ],
  "publishExclude": [
    "**.user",
    "**.vspscc"
  ]
}
var assembly = Assembly.GetExecutingAssembly();
var resourceStream = assembly.GetManifestResourceStream("MyNamespace.fakedata.json");

using (var reader = new StreamReader(resourceStream, Encoding.UTF8))
{
    return reader.ReadToEnd();
}
Or did you mean something different?
Robert Logiewa
@Ruhrpottpatriot
Jul 26 2016 21:06
Dunno if it's the same, but I meant our embedded xml event rotation ressource files
Darnell Williams
@Seeker1437
Jul 26 2016 23:00
ah I see, what I have here is resource not embedded resource