Top ".net" questions

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

How can I auto increment the C# assembly version via our CI platform (Hudson)?

Myself and my group are horrendous at incrementing assembly version numbers and we frequently ship assemblies with 1.0.0.0 versions. Obviously, this …

.net msbuild continuous-integration hudson versioning
Get Absolute URL from Relative path (refactored method)

I am really surprised that there is no native .NET method to get an absolute url from a relative url. …

c# .net asp.net .net-3.5
How can I run another application within a panel of my C# program?

I've been reading lots on how to trigger an application from inside a C# program (Process.Start()), but I haven …

c# .net windows winforms exe
Why can't I define a default constructor for a struct in .NET?

In .NET, a value type (C# struct) can't have a constructor with no parameters. According to this post this is …

c# .net struct
How to access property of anonymous type in C#?

I have this: List<object> nodes = new List<object>(); nodes.Add( new { Checked = false, depth = 1, id = "…

c# .net object properties anonymous-types
When should I use GC.SuppressFinalize()?

In .NET, under which circumstances should I use GC.SuppressFinalize()? What advantage(s) does using this method give me?

c# .net garbage-collection idisposable suppressfinalize
How to download a Nuget package without nuget.exe or Visual Studio extension?

How can I download a NuGet package? I don't have the NuGet Visual Studio extension or the command line program …

c# .net visual-studio nuget
Creating a constant Dictionary in C#

What is the most efficient way to create a constant (never changes at runtime) mapping of strings to ints? I've …

c# .net collections dictionary constants
Is it possible to write to the console in colour in .NET?

Writing a small command line tool, it would be nice to output in different colours. Is this possible?

c# .net vb.net colors
How to find reason of failed Build without any error or warning

I have a WebApplication which contains reference to WCF services. While building using Visual Studio 2010, Build fails without any error …

c# asp.net .net visual-studio-2010