Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How can I run an EXE program from a Windows Service using C#?

How can I run an EXE program from a Windows Service using C#? This is my code: System.Diagnostics.Process.…

c# .net windows windows-services process.start
Equivalent of Math.Min & Math.Max for Dates?

What's the quickest and easiest way to get the Min (or Max) value between two dates? Is there an equivalent …

.net
Handling warning for possible multiple enumeration of IEnumerable

In my code in need to use an IEnumerable<> several times thus get the Resharper error of "Possible …

c# .net performance resharper
ICommand MVVM implementation

So in this particular MVVM implementation I'm doing, I need several commands. I really got tired of implementing the ICommand …

c# .net wpf mvvm icommand
Is it possible to run a .NET 4.5 app on XP?

First, I have read the following: Connect case VS case and especially this channel9 post So, from the last bullet, …

c# .net .net-4.0 compatibility .net-4.5
How to quickly check if folder is empty (.NET)?

I have to check, if directory on disk is empty. It means, that it does not contain any folders/files. …

.net io directory
Error message "Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC"

When one user tries to run the application, our ClickOnce application is reporting: Unable to install or run the application. …

.net clickonce gac stdole
What are the true benefits of ExpandoObject?

The ExpandoObject class being added to .NET 4 allows you to arbitrarily set properties onto an object at runtime. Are there …

c# .net .net-4.0 c#-4.0
Best way to test exceptions with Assert to ensure they will be thrown

Do you think that this is a good way for testing exceptions? Any suggestions? Exception exception = null; try{ //I m …

c# .net unit-testing
Build error, This project references NuGet

When I try to build my solution, I get the following error message: Severity Code Description Project File Line Suppression …

.net visual-studio nuget nuget-package-restore