Top ".net-4.0" questions

Version 4.0 of the .NET Framework.

VSTS 2010 SGEN : error : Could not load file or assembly (Exception from HRESULT: 0x80131515)

I am experiencing a strange issue with VS2010. We use TFS to build our API dlls and we used to …

visual-studio-2010 msbuild .net-4.0 tfsbuild sgen
Windows SDK 7.1 Setup failure

I am trying to install Windows SDK for Windows 7 with .NET Framework 4 but when I open the setup I receive …

.net windows sdk .net-4.0 installation
MSBuild error MSB3021: Unable to copy file. Could not find file 'obj\Release\myWebProject1.dll'

When using TeamCity to compile my MSBuild XML task script, it fails with this: [10:43:03]: myWebProject1\ myWebProject 1 .csproj (3s) [10:43:07]: [ myWebProject1\ myWebProject1 .…

.net .net-4.0 msbuild teamcity msbuild-task
What does MaxDegreeOfParallelism do?

I am using Parallel.ForEach and I am doing some database updates, now without setting MaxDegreeOfParallelism , a dual core processor …

c# .net-4.0 task-parallel-library parallel-extensions parallel.foreach
Where is the location of GAC?

I wanted to become more familiar with the .Net Global Assembly Cache. Various sources online say it can be found …

.net .net-4.0 gac
Cancellation token in Task constructor: why?

Certain System.Threading.Tasks.Task constructors take a CancellationToken as a parameter: CancellationTokenSource source = new CancellationTokenSource(); Task t = new Task (/* …

c# .net-4.0 task-parallel-library cancellation-token
String.Replace() vs. StringBuilder.Replace()

I have a string in which I need to replace markers with values from a dictionary. It has to be …

c# .net .net-4.0 replace
Cannot install windows service

I have created a very simple window service using visual studio 2010 and .NُET 4.0. This service has no functionality added …

c# windows-services .net-4.0 installutil
Mixed mode assembly in .NET 4

I wrote a class library in .NET 2.0 for database access some 2 years ago and have been using it all along …

.net .net-4.0 mixed-mode
Conditional compilation and framework targets

There are a few minor places where code for my project may be able to be drastically improved if the …

c# .net-3.5 msbuild .net-4.0