How do I go about changing the version for the targeted version of the .NET Framework from 4.5.1 to 4.5 in Visual Studio 2012?
You can usually select your desired target framework within the application properties. Your setup may be slightly different, my Visual Studio installation is using the C# development settings by default, and the example image below is from a WPF project (on the off chance yours is different).
Either right-click on your project in the Solution Explorer and select Properties->Application, or select Properties from the main toolbar in Visual Studio, and select the Application tab. You should be able to select the target framework.
If you can't select the particular framework you're after, the issue may be slightly different.
You need to install the Microsoft .NET Framework x.x.x Developer Pack then only it will be visible under the Target Framework dropdown
I fixed it! I right clicked on my project - select Edit Project File - Went and looked for the <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> - then saved and reloaded the project.
Check the target framework of the project you created. To fix your problem change it to .NET Framework version.
To do this right-click your project and select Properties. On the Compile tab, Click Advance Compile Options... and set the Target Framework dropdown to .NET Framework version.
Related
I used Visual Studio 2015 and I open choose item from toolbox and browse awesomium.windows.form.dll.
Then I see four controls that have been selected , But they will not be added to the toolbox.
The Solution is actually very simple.
The awesomium is not compatible with older versions of .Net and probably your project's target framework is older than .net4.0
You should switch the target project from 3.5 to 4.5 or at least .Net4.0 then you will be able to see all the items of awesomium.
I have a windows form project and I want to create an installation package for this project. How can I create a setup file in Visual Studio 2012 ? My project is without data base.
How to create a Setup package using Visual Studio 2012.NET?
Microsoft released the Visual Studio Installer Project extension in April of this year, the catch is it's for VS2013, not VS2012.
http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx
The 'lite' InstallShield option remains in VS if you need something with more flexibility.
Advanced Installer also has a free version that includes an extension for VS. This is a commercial tool but the extension is included in the free edition as I said, for more advanced features you need to purchase a Professional or higher licenses and edit the project direct from Advanced Installer GUI, not from VS. (but you can still use the project in the VS solution, so you get the MSI built at the end of your build process)
Visual Studio setup projects (vdproj) are not supplied with VS 2012
There are several solutions for you:
You could use InstallShield instead.
If you don't want or
can't use InstallShield for any reason, you could try WiX. This
toolset builds Windows installation packages from XML source code.
If you only use Windows Presentation Foundation (.xbap), Windows Forms (.exe), console application (.exe), or Office solution (.dll) you could look at ClickOnce. To use this you should right click on the project file in the solution explorer and select "Publish" from the pop-up menu.
Alternatively you can use previous version of Visual Studio (2010).
I have used the ajaxtoolkit with .NET 4 and Visual Studio 2010, and I was able to add a new tab to the toolbox and add the ajaxtoolkit controls to the toolbox. How do I do this in Visual Studio 2012?
I have added the ajaxtoolkit with NuGet, but I would like to see the controls in the toolbox, so I can drag the controls in. How is this done?
It's located in the packages folder created by Visual Studio 2012 after you use NuGet Package Manager to download it.
Create a tab in Visual Studio (you can name it Ajax Toolkit).
Right click on it and select: Choose Items..
Click Browse and navigate to the packages folder that Visual Studio 2012 creates with your source. Something like this: ..\packages\AjaxControlToolkit.7.0123\lib\40\AjaxControlToolkit.dll
Select AjaxControlToolKit.
I just installed it in Visual Studio 2013. Here's a summary of the process:
Click on solution and Manage Nuget Packages
Filter for AJAX and select the Ajax Control Toolkit
After NuGet installs this, it won't be in the toolbox!
Create a new toolbox group for AJAX CONTROL TOOLKIT
Add Items
Browse
Navigate to the toolkit URL. Project is Webapplication1 in the c:\temp folder so the toolkit was in: C:\temp\WebApplication1\packages\AjaxControlToolkit.7.1213\lib\45 (because I am using framework 4.5)
Click OK and the toolbox should be populated.
Slight sort cut for finding the dll folder, for example step 7 in the instruction set given by user3546149.
(Good job, I would up vote your answer but no reputation).
AjaxControlTookkit should show under References for the project. Right click it and select Properties. The Path property is the path to the AjaxControlToolkit.dll. Copy that Path property.Then for step 7 paste the Path property directly in the search box. Saves eye strain and clickity click oops syndrome.
(Works for VS 2013 also, maybe others).
The current version of the AJAX Control Toolkit does everything to install itself into the VS toolbox. First exit out of VS (it will tell you to exit if you don't) then click the Download button in AJAX Control Toolkit.
To install Ajax Control Toolkit, run the following command in the Package Manager Console
PM> Install-Package AjaxControlToolkit
this is install the Ajaxtoolkit in your current project..
Missing ADO.NET entity data model template from Visual Studio 2012 Professional. I don't even have "Data" category from Visual Studio template category.
I modified the Visual Studio 2012 installation, and selected all the available packages to install. But even then no luck.
I did a search in C:\ProgramData\Package Cache for "eftools.msi"
There were three versions (from different beta/RCs I guess)
I picked the most recent and installed it.
This solved the problem for me.
Firstly you can add ClassLibrary in your Solution.
Then, Add New Item to ClassLibrary and you can add Data>ADO.NET Entity Data Model
I solved this by going into project properties and changing the target framework. In my case, the default target framework for the project was 2.0 (no idea why - I would've expected 4.5 to be the default). I changed it to 4.5 and I was able to see the "ADO.Net Entity Data Model" option. I think it's all about having the correct EF tools installed for the CLR version that you are targeting.
Close Visual Studio and then install "Entity Framework Tools for Visual Studio" from this location:
► [Visual Studio Disk or installer folder]\packages\EFTools\EFTools.msi"
I do it and I got the result.
You can also download this tool from here.
Press right click on an existing project
select "add" -> "New Item..."
Under "data" node you can select the "ADO.NET Entity Data Model"
Here I found the solution
I found the EFTools.msi file in my packages folder, and run it then choose uninstall then run it again and choose install. After this reinstall, the template appeared.
If you have installed the new EFTools6.1.3ForVS2013.msi, and then uninstalled it, it removes the ADO.net Entity Model option.
Microsoft never puts the old version back.
Thank you Hainesy.
I faced the same issue today. But in my C:\ProgramData\Package Cache folder there was only one eftools.msi file. I installed it. Still the template was missing. Then I installed the same msi file again with repair option. Then the template appeared.
When you click on add new item you will get general list of templates. "Visual c# " may be highlighted on left had side menu when you open it. From that you must click on "Data" menu. Now you can see ADO.NET Entity Data Model :)
It succeeded me in a way just downloaded from given link https://www.microsoft.com/en-in/download/details.aspx?id=40762 and run for repair the Entity framework.
I had the same problem with Visual Studio Express 2013. If you have that problem, don't reinstall Visual Studio, you have to repair EF tools:
Search in C:\ProgramData\Package Cache for "eftools.msi"
Pick the most recent, run it and select repair.
Right click on the Project In Solution Explorer
Add > New Item > Data > ADO.NET Entity Data Model
You can update here
In Visual Studio 2010 SP1, there is an option on the right-click menu on a web project to Add Deployable Assemblies. Phil Haack blogged about it here.
In Visual Studio 11 beta and Visual Studio 2012, this option appears to be missing. Thankfully, you can easily round trip solutions between VS 2010 and VS 11 so I could just open the solution in VS 2010 to add the MVC assemblies to the _bin_deployableAssemblies folder.
Is it just my installation thats broken or do I need to install anything else to get this working?
The Add Deployable Assemblies dialog was a feature that enabled you to deploy MVC or Web Pages projects. It was necessary because in older versions all the assemblies were installed into the GAC on your dev machine but you wouldn't necessarily know if that was the case on the server. Thus this tooling gesture that made your project bin-deployable.
Starting with MVC 3 Tools Update we are now using Nuget package references, which means that your project is automatically bin-deployable. Since the tooling gesture is no longer necessary it was removed from VS 11.