Can I use Enterprise library while developing Windows application and how?
Suggest you download and run the samples.
Related
In Visual Studio for .net projects I can use built in tools to generate API clients by swagger. It simply and works great.
This option is missing from Windows Runtime projects as well, like Windows 10 IOT ones.
What is the best way to create API clients by swagger for this? If there is no built in tool / extension for VS, any external tools are highly appriciated.
Thanks a lot!
I don't get your question completely; on Windows IOT Core you can run UWP (background) apps; they are compatible with .net framework and .net standard up to version 1.4. This should work with a generated client from swagger.
Also you can use Refit to create a REST client according to best practices based upon an interface with attribute decorations.
I have a requirement to develop a SDK(kind of class library) for Windows app supporting Windows 8.1 and Windows universal apps. Please suggest me the right type to choose for this.
At first I was thinking to use Portable class library supporting these 2 platforms but later on some researching found out Windows Runtime component(Universal apps) and read that using this would support app build using non managed code too(C++, JavaScript) which kind of seemed good for me. but when I try to refer this into a windows 8.1 app it says not supported, Do I need to build a separate windows runtime component again for this(I see Windows runtime component(portable for universal windows 8.1 template)?
Is there any chance I could build this without the need of having 2 projects for different platforms?
I've been able to successfully use a WinRT component targeting Windows 8.1 in a Windows 10 app before, but it might have changed and YMMV. Try it out.
I ported my windows phone7 application to windows 8(just copy paste the xaml and c# code in visual studio 2012->new->project->WPFApplication) and made changes in UI sizes.The problem is the .exe file(after building wpf application) runs only in the system with .NET framework installed.I want to run my application in all system running windows(7(32/64),xp,vista).I am newbie to windows application basically wp7 developer.Thank u.
If you really want to port a windos phone 7 app to windows 8, You should go through the following resources. They provide most of the information.
http://msdn.microsoft.com/en-us/library/windows/apps/hh465136.aspx
http://leventoz.wordpress.com/2012/03/07/moving-a-windows-phone-app-to-windows-8-a-case-study-part-1/
http://leventoz.wordpress.com/2012/03/11/moving-a-windows-phone-app-to-windows-8-a-case-study-part-2/
WPF is a part of the .NET framework, so you can't write a WPF application that can run without the framework on the machine.
If you want to create a binary that run on the classic windows runtime you can't use WPF/C#/VB etc.
Best thing if you want to port your Windows Phone app to Windows 8 is to create a Microsoft Store app, File > New Project > Blank App in VS2012. The app won't run on anything except Windows 8 but the Microsoft Store for Windows 8 is probably the best place to have your app if it's ported from Windows Phone.
Migrating application to WP7 is not that easy as it sounds. There is lot of different APIs and also limited async/await in WP7 when using this extension.
I would probably recommend starting with this MSDN article. It describes basic problems and challenges and also contains useful namespace and API mapping:
Migrate/port a Windows Phone 7 app to a Windows Store app
I am trying to using wordpress xml-rpc on windows phone 7 but can't find any API's for making rpc calls. Does anyone know of any libraries or a way to do it.
Try using XML-RPC.NET which is a free library. Once you download the bundle, there is a CF (Compact Framework) version of the DLL - due to platform restrictions, you have to use this version.
Note, however, that (quote from the documentation):
6.11 Does XML-RPC.NET work with .Net Compact Framework?
The XML-RPC.NET distribution contains
an assembly which provides support for
the .NET Compact Framework:
CookComputing.XmlRpc.CF.dll. Note that
this is an experimental version and is
mostly untested. Also, because the
Compact Framework does not support
reflection it is necessary to
implement XML-RPC.NET proxies manully.
The XML-RPC.NET library version 3.0 is now compatible with Windows Phone 7 projects.
I believe XmlRpcProxyGen doesn't exist in the Windows Phone library as the platform doesn't support the System.Reflection classes.
I was trying to run an application locally with Enterprise Library 4.1 and do logging to the event viewer. I didn't see Windows 7 under the supported operating systems. Does anyone know of a workaround or if this will not work at all? Also does anyone know if any other logging such as email or DB through Enterprise Library is available on Windows 7?
Thanks in advance.
Yes the enterprise library should work fine as its part of the .NET framework not the OS. Your problem is down to permissions issues.
You need admin rights to 'create' a new source in the event log. You could create a console app to do this (run it under elevated permissions) or set it up directly in the registry.
Once the source is set up you should be able to write your logs away.
P.S - You can use any of the (formatters are they called?!) in the enterprise logging block. (Database, email, text file, etc)
Its setup in the config file. you can use the tool that comes with EL to do this)
Since it works with Windows Vista, it will work with Windows 7.
Under the hood, both operating systems are version 6 and both run the .NET framework.
Enterprise library is built on top of .net so there should be problem.
Enterprise library 4.1 was released before Windows 7, that's why it does not apper listed. However it should work in Windows 7 since it works in Windows Vista.