NGEN for Clickonce with Framework 4.5 - frameworks

Referring the link use-ngen-with-clickonce-deployment how can i use NGEN for dot net application developed in framework 4.5. I used the code in this link but there is no change in performance. please share the code and help.

Related

Where is the "System.Composition.TypedParts.dll"?

I am trying to use the ContainerConfiguration type from the Managed Extensibility Framework (MEF). According to here, it lives in "System.Composition.TypedParts.dll" which is part of .NET Framework 4.5. But I cannot find it in Add Reference for a .NET 4.5 application.
Where can I find this DLL?
It turned out to be part of MEF 2, which needs to be installed with NuGet. It's not distributed with .NET Framework.

Can I use EF4 in VS 2012?

I wanted to follow up on a post from last year ("EF5 , Widows Forms , Dragging a chield entity from project datasource into a GridView creates only 2 columns").
I believe the problem described with EF5 is still true and the solution found (use EF4) continues to be the only reasonable answer.
Before I upgrade to VS2012, I wanted to check whether anyone knows if there is any problem using EF4 in VS 2012.
Anyone with experience on this?
VS2012 requires .NET Framework 4.5 which is an in-place update. This means that once you install the .NET Framework 4.5 it will be always used when running .NET Framework 4 or .NET Framework 4.5 apps. This also means that you will be running EF5 even if you target .NET Framework 4 in VS (targeting is only a design time thing which prevents from using APIs that were not available in the targeted .NET Framework version while at runtime the app will use the version installed on the box).
With regards to the problem you are reporting - take a look at this bug report on the EF codeplex site as it apparently contains a solution to the problem

Using Facebook C# SDK in .Net 2.0 framework

I want to use Facebook C# SDK in my website to allow users to login using their facebook account. My website is built in .Net Framwork 2.0 . I have .Net Framework 3.5 and Visual Studio 2008 installed on my box. As per the documentation I saw online, I tried to download the Nuget command line tool and got the error saying that I need to have .Net Framework v4.0.30319.
I also tried to reference Facebook.dll (which I got using Nuget on a machine with .Net 4.0) in my website. But that gave errors saying that the assembly was built in a newer runtime.
How can I get Facebook.dll that works with .Net 2.0?
You can download the latest version by opening the following url in a browser.
http://nuget.org/api/v2/package/Facebook
To download a specific version use the following url instead
http://nuget.org/api/v2/package/Facebook/6.0.20
Then extract it using your favorite zip program.
We don't support .net 2.0. You at least need to be on .net 3.5 SP1.
And make sure you are referencing the right Facebook.dll under net35-client folder.

Convert MVC2 .NET 4 application to run on .NET 3.5

This might seem like an odd request, but is there any simple way to downgrade my ASP.NET MVC2 application running on .NET 4 (developed in VS2010) to run on .NET 3.5? I'm asking because the server I will be using to host the application on is within my university and only has.NET 3.5 installed.
Many thanks
The ASP.NET MVC 2 is built against .Net 3.5 so there is no downgrade needed there. The only problem you might have is your own code - if you are using some .Net 4.0 specific stuff you will have to change it. For starters change your projects target framework (in project properties) to 3.5 and check if it still builds.

Where can I find the .NET Framework 3.5 Entity Framework Sample application files that are described in the MSDN documentation?

Where can I find the .NET Framework 3.5 Entity Framework Sample application files that are described in the MSDN documentation?
The download link in the MSDN documenation is a link to the Visual Studio 2008 SP1 download.
Try the HRSkillsCombined.zip file. It should contain both the windows app and the website.
It still lists it as the "VS2008 SP1" download, but the summary seems to be correct. I believe it was just mislabeled on this page.