Top ".net-4.5" questions

Version 4.5 of the Microsoft .NET Framework.

What is the purpose of "return await" in C#?

Is there any scenario where writing method like this: public async Task<SomeResult> DoSomethingAsync() { // Some synchronous code might …

c# .net .net-4.5 async-await
Not allowed to load assembly from network location

I've recently set up a new Windows Server 2012 R2 environment and installed Visual Studio 2012. Now I'm having a problem with …

.net visual-studio visual-studio-2012 .net-4.5 .net-assembly
EF6 DBContext Dynamic Connection String

public partial class ProcessContext : DbContext { static ProcessContext() { Database.SetInitializer<ProcessContext>(null); } public ProcessContext() : base("Name=ProcessCS") //Comes from …

entity-framework asp.net-mvc-4 .net-4.5 dbcontext
IList<T> and IReadOnlyList<T>

If I have a method that requires a parameter that, Has a Count property Has an integer indexer (get-only) What …

c# .net collections interface .net-4.5
Does C# 7.0 work for .NET 4.5?

I created a project in Visual Studio 2017 RC to check whether I can use new C# 7.0 language features in a .…

c# .net-4.0 .net-4.5 c#-7.0
Check .NET Framework 4.5 is installed or not Using Installshield 2010

I'm using InstallShield 2010. I want to check whether .NET framework 4.5 is installed or not on the machine. I can check .…

.net version .net-4.5 installshield-2010
What does the Microsoft.Bcl.Build NuGet package do?

I'm unable to find any documentation on this - the links from the Microsoft.Bcl.Build Nuget page don't provide …

.net nuget .net-4.5
Non-static method requires a target. Entity Framework 5 Code First

I am getting the error "Non-static method requires a target." when I run the following query: var allPartners = DbContext.User .…

ef-code-first .net-4.5 entity-framework-5
Decompressing password-protected ZIP files with .NET 4.5

Microsoft introduces improvements for ZIP file handling in .NET 4.5 in the System.IO.Compression namespace. Namely the classes ZipArchive and …

c# .net zip .net-4.5
Creating Directories in a ZipArchive C# .Net 4.5

A ZipArchive is a collection of ZipArchiveEntries, and adding/removing "Entries" works nicely. But it appears there is no notion …

c# .net zip .net-4.5