How to get information about runtime .Net Core - asp.net-core

I have an app which works on Linux and Windows. I need to know where the app is working for use difference code. Thanks

You are probably looking for System.Runtime.InteropServices.RuntimeInformation with the IsOsPlatform function to do runtime checks.
Have look at the video tutorial https://channel9.msdn.com/Series/aspnetmonsters/ASPNET-Monsters-Episode-46-Finding-Platform-Information of the ASP.NET Monsters.

Related

QML and webassembly

I have a python-qml app and I uploaded qml files in https://qt-webassembly.io/designviewer/.
The app works, how can I get the webassembly code to put it in my site-app?
Update:
In MaintenanceTool I see this:
In QCreator (with c++ project and qml)
It looks like that site compiles and runs QML in the browser directly. Meaning it doesn't support what you want to use it for.
Seems like you'd have better luck using the Qt Creator IDE targeting Web Assembly.
https://doc.qt.io/qtcreator/creator-setup-webassembly.html

Live coding in AspNet Core

I was wondering, if it is possible to do live coding using Asp.Net core similar how it is possible to do this in node.js using nodemon. I am trying to learn asp.net core and I find the code-compile-debug cycle very slow and inconvenient.
Is possible to do live coding using ASP.NET Core similar how it is possible to do this in Node.js using nodemon?
Yes, it is. You can use the dotnet watch command. This command will allow you to do "live coding". In also works with tests, i.e.; if you find a bug and you can fix the bug and watch will detect the changes, recompile your code and re-execute the tests.
https://learn.microsoft.com/en-us/aspnet/core/tutorials/dotnet-watch

Can we use any javascript framework to build maximo anywhere app

Mobile First supports any javascript Framework like DOJO/Sencha/jQuery/AngularJS. So is it possible to build new maximo anywhere app also through any above mentioned JS Framework?
The answer is Yes. The mentioned frameworks are frontend/client-side frameworks and as such have no relation to the functionality that MobileFirst and/or Maximo provide you with. They relate to how the app looks, not what the app does.
Yes but, please understand you could have to rewrite some of the ANT scripts used to build the apps. I haven't attempted this yet, and would love to hear your feedback as to what you find. I'm not a fan of dojo and would like an alternative like ionic too!

What happened to ManagedSpy?

ManagedSpy is supposed to be the .NET equivalent of Spy++, but somehow the download page is now not availeble any more.
Anyone who knows why?
Anyone that knows a replacement?
--jeroen
I've cloned the original ManagedSpy source code and maintaining the code in modern environments (for example, ported it to .NET4).
See project on GitHub.
You can still download it here, but the original website seems to be gone. There is however still an article in MSDN (from 2006) about ManagedSpy.
I've cloned the ForNeVeR's ManagedSpy source code and changed a bit to support 64-bit process. see https://github.com/slimzhao/ManagedSpy
Is there a newer equivlent tool? ManagedSpy fails completely on .NET 4.0 enabled machines because Native Images existing under \Windows\Assembly* and it tries loading those as .NET assemblies and fails.

DNP3 with VB.Net

I am looking for a good DNP3 library for .NET/VB applications.
Any recommendations?
Thanks,
The open-dnp3 project has recently added .NET bindings:
code.google.com/p/dnp3
Automatak maintains a fork of the opendnp3 library with .NET bindings:
http://automatak.com/opendnp3/
We have heard from users that opendnp3 significantly outperforms the TMW library for large master integrations.
Opendnp3 is Apache-licensed (free-to-use), but commercial support is available if you get stuck.
All I could find with a Google search was Trianble MicroWorks' .NET Protocol Components.
It looks like they're not exactly on top of the latest technology (it lists itself as .NET framework 2.0 compatible), but I wasn't able to find anything else that looked terribly promising.
I've managed to build the Automatak version of this library:
https://github.com/automatak/dnp3
and use the .NET bindings with C#, though they would work equally well with VB.
OpenDNP3 from automak is available in Nuget, but you should install 32bit openssl application to able to load it.It installs two required .dll files.