How can I upgrade windows workflow templates from VS2010 to VS2012? - workflow-foundation-4

We have created workflow templates in VS2010 and want to upgrade the templates to VS2012. Using the same templates in VS2012 are ending up with errors. How to go on this? We are using side by side versions of VS 2010 and 2012.

This is related to the .net framework. I was using .net framework 3.5 and the required is 4.5 for VS2012. Link http://pragmaticpattern.wordpress.com/2013/04/04/opening-a-tfs-2010-build-process-template-in-visual-studio-2012/ helped.

Related

How to create a .Net version 2.0 website using Visual Studio 2012?

I have created a website using Visual Studio 2012. It is working just fine. The problem is I have to deploy it on a server that has .Net Framework 2.0 only. So I created another website using Visual Studio 2012 and set its version to 2.0. After copying the code of just a single page I tried to run it. But I am getting the errors "Unknown server tag asp:ScriptManager" and "Unknown server tag asp:UpdatePanel". I need them both as I have to use PageMethods in my page. How can I create a .Net Framework 2.0 website with ScriptManager and UpdatePanel without any error? Thanks in advance.
You didn't have to recreate your project. Go to the project settings, application, then change the "Target Framework".
To clearly answer your question, the answer is : you can't.
As Jamie Keeling suggested, Script Manager and Update Panel came with .Net Framework version 3.5.
You will have to find other components or some kind of workaround.
You might have to install ASP.NET 2.0 AJAX Extensions 1.0 if you are planning to use scriptmanager and update panel in .NET 2.0. Prior to .NET 3.5, Ajax was available as a separate library.

SQL Server 2012 and .NET Framework 4.0

I have a server which configured for SQL Server 2008 R2 and ASP.NET 4.0.
The hosting company won't support .Net Framework 4.5 and SQL Server 2012 and latest Entity Framework.
I have created my website with .Net Framework 4.5 and latest Entity Framework 5. How can I change the publish settings to old server execute that ?
Change the Target Framework of the Website, In Solution Explorer right click the Website select 'Properties'. In the dialog that appears select Application now change the Target Framework to 4.0 and Publish.
You need to change the Target Framework for your website.In Visual Studio (with your website project selected) go to Project > Settings. Change Target Framework from .Net Framework 4.5 to .Net 4. Then rebuild all and test your app.
If it's all working OK you can then publish to your web host as normal.
The above 2 answers are correct. Additionally, many hosting companies do not support the MVC or EF dll's of any version. There is any easy work around to this. As long as you can get your code to compile in Visual Studio 2010 using .NEt 4.0, right click on your project and click 'Add Deployable Deployable Dependencies'. Check the boxes for the dll's groups you will need and they will be added to your project so they can be deployed with your website.
When installing EF5 from Nuget it will install EntityFramework.dll assembly version 5.0.0.0. if your app is targeting .NET Framework 4.5 or EntityFramework.dll assembly version 4.4.0.0 if your app is targeting .NET Framework 4. The difference between these is that EF5 for .NET Framework 4 is scoped down to what is supported by the core assembly (System.Data.Entity.dll) that is a part of .NET Framework (most notably on .NET Framework 4 you will get no enums, spatial types etc.). If you change the target after installing EntityFramework then you most likely need to uninstall what you have and install again to get the right version of the EntityFramework.dll.
you just create a new project in framework 4 and add existing items from the right click in solution in project

How to update sharepoint project from .net 3.5 to 4.0

I need to change the .NET Framework Version of my Sharepoint Project from 3.5 to 4.0.
The project is generated with VisualStudio2010, Sharepoint version is also 2010. I already found this blogpost regarding this topic, but it doesnt work.
.NET 4.0 is installed on the development machine but I'm not able to select the framework in the target-framework tab at the project settings:
SharePoint 2010 does not support .NET 4.0.
If you really have to connect a .NET 4.0 application to SharePoint, you can use a web service to communicate. But you won't be able to write a .NET 4.0 WebPart or a similar SharePoint artifact.

Targeting .NET3.5 with ASP.NET MVC2 Web Application in Visual Studio 2010?

Our current environment is .NET 3.5 SP1 but we're in the process of migrating to .NET4 and Visual Studio 2010.
I would like to stick to using .NET 3.5 for the deployment/production environment however use Visual Studio and TFS 2010 for development, until the production environment is cleared for upgrade to .NET4. Is this possible (I assume yes :B), and how?
What I have tried is changing the TargetFrameworkVersion in the project settings to "v3.5". However, I get a build failure due to the classes in System.Web.Security that moved to System.Web.ApplicationServices in .NET 4 (e.g. MembershipUser) not being found... so it appears that it is using .NET4 libraries and not .NET3.5? Do I add the System.Web.ApplicationServices library to my project, and if so, does this mean it will still run on .NET 3.5?
Also, I noticed that the ToolsVersion of the project is 4.0, would changing it from 4.0 to 3.5 be the correct thing to do? When I do this, re-opening the project causes Visual Studio to run the conversion process, changing the ToolsVersion back to 4.0 ...
Cheers,
James
You must have Visual Studio 2008 installed to be able to target .NET 3.5 in Visual Studio 2010.

Which versions of ASP.NET gets installed with Visual Studio 2010?

Does Visual Studio 2010 install of ASP.NET 2.0, ASP.NET 3.5, and ASP.NET 4.0?
Thanks in advance.
VS2010 comes with asp.net 2.0,3.5 and 4.0.
So if you have an existing asp.net 2.0 site for example then you can open and run this in vs2010 (vs 2010 will prompt you when you click the original solution that in order to run in vs2010 you need to upgrade the solution,this is all very straight forward). Similarly if you have an existing asp.net 3.5 site.
Also if you wish to start creating a new asp.net site and wish to use the 2.0 framework or 3.5 etc rather than the 4.0 framework then you can just select the desired version.

Resources