Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Im trying to find a good mocking framework to Unittest my UWP App, bt it seems that all good Mocking infrastructures (MOQ, RhinoMocks etc) understandably rely on Dynamic Proxies which is not supported in UWP.
It looks like MOQ knows of this limitation:
https://github.com/Moq/moq4/issues/195
And Microsoft is less than helpful in this situation:
https://social.msdn.microsoft.com/Forums/en-US/652b9d16-c4ab-401c-9239-0af01108e460/uwp-is-there-any-indication-that-windows-10-uwp-universal-applications-will-support-code-emitting?forum=wpdevelop
Is there any Mocking infrastructure for unittesting UWP apps? Or any ideas if Dynamic Proxy support is coming anytime in the near future for UWP?
Thanks!
We (Microsoft BigPark Studio) have just released a mocking framework that is compatible with UWP, .NetCore and .Net Framework (Nuget Etg.SimpleStubs). The framework uses Roslyn to generate stubs.
To get around the Reflection.Emit restriction in UWP, the framework generates the stubs at compile time. The stubs are generated and compiled in one step (during the build). If you've ever used VS Fakes, the experience is very similar.
SimpleStubs is opensource and available as a NuGet:
Docs: https://github.com/Microsoft/SimpleStubs
NuGet: https://www.nuget.org/packages/SimpleStubs/
There is now a framework called HyperMock which performs mocking in a similar way to other frameworks on the .NET platform.
Visit HyperMock
As this is available via Nuget, you can find it via the package manager with HyperMock.Universal or install it via the package console
Install-Package HyperMock.Universal
Use the Universal version for the UWP projects.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Is there a way to develop Linux applications with C # with a graphical interface? That is to say with a window buttons and such things, I have tried it with .net core but apparently it is just for console applications.
When you look for writing c# code on linux you will probably run into http://www.mono-project.com/.
This is what you find on Mono's page :
"Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime. A growing family of solutions and an active and enthusiastic contributing community is helping position Mono to become the leading choice for development of cross platform applications."
Both Mono and .NET Core support GNU/Linux systems like Ubuntu.
.NET Core is available on different Linux distributions. You will learn more about it on Microsoft's documentation site:
https://learn.microsoft.com/en-us/dotnet/core/install/linux
Editors like Gedit Vim have syntax for C#.
MonoDevelop and Visual Studio Code are two environments which run on Ubuntu and support C# development.
Additionally I recommend this site , if you want to learn more about developing apps for Linux:
https://teckangaroo.com/c-sharp-linux/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
How can I determine what version of C# I can use against a particular .NET Framework version?
I have read:
https://stackoverflow.com/a/247623/223742
https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies
However I cannot tell with any degree of certainty what version of C# I can use say against .NET Framework 4.6.1 for instance.
C# version history could be found here.
C# version depends on the compiler version which is shipped with .NET SDK (generally known installed with Visual Studio Installer).
You could still target an .NET implementation (which means .NET Core, Mono, or the obsoleted .NET Framework) of lower version with a project that builds with SDKs of a later version, but some language features are not supported, which are implemented with some built-in types that are not provided by the target .NET implementation. For example, you cannot use the tuple syntax targeting .NET Framework 4.5, even if you build it with the latest .NET SDK, because .NET Framework 4.5 does not have ValueType definitions. But some could be fixed with nuget packages that supplement them such as System.ValueTuple.
C# 8.0 has already been released with .NET Core 3.0.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want to upgrade my live WPF Application's .Net Framework.
Which is the stable and latest version in .Net Framework ?
Thanks in advance!!!
As of right now, the latest version of the full .NET framework is version 4.7.2. You can find the latest SDK and runtime downloads here on the Microsoft download website and install what you need.
I think that it is a nice iniciative of you to upgrade the .Net of your WPF Application.
Right now, as 20 June,2018, it is .NET Framework 4.7.2 and it can be downloaded at
https://www.microsoft.com/net/download/windows
This month they released .NET Framework 4.8 Early Access build 3621
https://blogs.msdn.microsoft.com/dotnet/2018/06/06/announcing-net-framework-4-8-early-access-build-3621/
Also it was announced earlier that .Net Core 3 will support for Windows Desktop, namely: WPF, Windows Forms and UWP
https://blogs.msdn.microsoft.com/dotnet/2018/05/07/net-core-3-and-support-for-windows-desktop-applications/
Note: To do this upgrade, on my projects, on the most cases it was just a matter of installing the newest Net Framework SDK, set the target in Project settings and rebuild the App in Visual Studio 2017.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Microsoft announced a open-source cross-platform .NET 5. I know that there are librarys like mono that act as a framework for cross-platforming with C# - but does the release of .NET 5 mean that it will be easier to work with C# on other platforms without MONO, Xamarin etc?
.NET 5 will allow cross development, have a look at this blog posts:
Microsoft takes .NET open source and cross-platform, adds new development capabilities with Visual Studio 2015, .NET 2015 and Visual Studio Online
And:
Announcing .NET 2015 - .NET as Open Source, .NET on Mac and Linux, and Visual Studio Community
Delivering on its promise to support cross-platform development, Microsoft is providing the full .NET server stack in open source, including ASP.NET, the .NET compiler, the .NET Core Runtime, Framework and Libraries, enabling developers to build with .NET across Windows, Mac or Linux. Through this implementation, Microsoft will work closely with the open source community, taking contributions for future improvements to .NET and will work through the .NET Foundation.
source
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have got C# .Net based applications. Is there any way I can run these applications for Apple IOS. I don’t have resources to develop all applications from scratch.
Many Thanks,
Ni
First of all, you can not just run your existing .NET programs unmodified on the iOS platform.
The .NET runtime does not work on iOS, nor will it (in relation to current app guidelines regarding runtime compilation). Mono has the same fate and will not run on the iOS platform.
Your only option is to get the code compiled to native iOS executables, and this will involve 3rd party tools.
One of those is the MonoTouch product. It is not free.
Note that this is not a technical limitation. The .NET runtime could run on the iOS platform if Microsoft, or Mono made it for that platform, but Apple does not allow such runtimes (the ones that download/execute not-yet-100%-compiled code) on their platform at all.
This is the same problem that prevents Flash from executing on the platform. The way Flash has gone to solve this is to compile the Flash programs to native iOS executables.
You can use the tools made by the mono project.
These will not support all of the MS namespaces (non of the windows specific ones, such as WMI) and your application code needs to be written to be cross platform (so using Path.Combine for directory paths instead of concatenations).
Try the MoMA tools to see if your code is cross platform and get recommendations for fixing it if it is not.
Take a look at Xamarin for IOS. Integrates nicely with Visual Studio otherwise you can use its own IDE.
You can also reference .net assemblies. Hope this helps.