how to add target framework to visual c# 2010 express - wpf

I have installed .net framework 4 but i can't see any changes in the project property window in the target framework list (i can only see 2,3,3.5). How to add 4 and 4.5. I would really appreciate any help because I have been working 2 days for this, and it's not yet fixed.

Did you try restarting your computer after installing the .net framework?
If nothing helps you should update your vs to 2012, you can backup all your projects anyway :)

Related

How can I add the .NET framework 5.0 to Visual Studio Professional 2019?

I have downloaded and installed the new .NET framework 5.0 from this website.
But I would like to know how to add this framework to a project created on Visual Studio 2019 16.8.0.
Note:
I have launched VS installer and I have searched for the new framework, but I can't find it.
I have already opened: Project -> Properties -> Target Framework.
But the most recent framework that I got is .NET framework 4.8
How can I add the new framework to the target frameworks in Visual Studio 2019?
Update:
I have a conflict now and I would like to know what's the difference between .NET framework SDK and .NET framework Developer pack, I'm wrong in this point.
As mentioned in the link above, there is no .NET framework 5.0 in the developer pack list.
Can anyone explain this to me?
Download and install the Visual Studio 2019 SDK from the .NET Core releases site.
.NET 5.0 is continued development of .NET Core and it no longer follows the old (.NET 4 and older) targeting pack. Instead, .NET 5 is installed as an SDK into the .NET Core framework & sdk directory structure. For folks who have been doing .NET Core for some time, this feels natural, but coming from .NET 4, it's new.
Create a new .NET Core project type and set the .NET version to .NET 5.0:
There are specific .NET (not .NET Framework) project templates for Winforms and a few other project types. These will also target .NET 5 or .NET Core where appropriate:
Unfortunately, there is no magic wizard to upgrade a .NET 4 project over to .NET 5. The step-by-step guidance can be found here:
Winforms Migration from .NET 4 to .NET 5
WPF Migration from .NET 4 to .NET 5
Many ASP.NET folks have gone through these steps to move from .NET 4 to .NET Core in the past. There are many blog posts on the issues they bumped into and how they solved that. The process is very similar and there are some tools now to help you along the way.
The main steps are the same for every .NET 4 project:
Change your packages.config to <packageReference> format.
Change your project file to the new SDK project format.
Run the API Compatibility analyzers. This will tell you where to expect breaking changes.
Switch the target framework to .NET 5 in the project file
Update/change/add required nuget packages to the versions that support .NET Core/.NET 5.
Fix any build issues.
Alternatively:
Create a new .NET 5 project of the desired target type.
Add the required project configurations etc.
Add the NuGet Packages you're going to need.
Copy the sources over from your .NET 4 project. Or copy the project file into the folder where your existing project resides. It should automatically import all source files.
Fix build issues
It may be possible there won't be a NuGet package of 3rd party components you use that are compatible with .NET 5. In that case you'll need to either wait for one to be released or find an alternative. Of course, in case of open source projects, you could help them out by porting the package for them and sending a pull request.
The Migration guidance linked above gives you multiple approaches to achieve each step.

Design View is not opening in Blend 2013

I saw set of people have the same problem and I tried some it, But I do not know why I still cannot see the design view!!
The output type is Windows Application.
Design view is working properly in VS 2013.
I created this project using MVVM Light Templates; So I do not know if there is a missing stuff in project file.
I also had the same problem until few minutes ago.
I've noticed that Blend 2013 on my PC was supporting up to .NET Framework 4.5.1
But the project on Visual Studio was done with .NET Framework 4.6.1
I changed the Framework to 4.5.1, since that was the latest Blend supports, and that was it. Problem solved.
you can go to
Tools>Options>Documents and in default document view option select which view you liked.

Always see NullReference exception in designer with all silverlight business applications in visual studio 2010

Starting with the most simple case.
If I press "File->new project->silverlight business application" it opens up to MainPage.xaml saying the message attached at the bottom of this post.
It also does the same thing to any silverlight business application that exists in sourcesafe - this is the first time I've personally needed to work on this technology.
Any advice would be very much appreciated I really need to get started on a project and I feel quite disabled to not have the designer.
Thanks in advance.
An Unhandled Exception has occured
Click here to reload the designer
Details:
System.NullReferenceException Object reference not set to an instance
of an object. at
Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.d__8.MoveNext()
at
MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption()
at
MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier
identifier) at
MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope
parentScope, IParseContext context) at
MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent,
PrefixScope parentScope, IParseContext context, IMarkupSourceProvider
provider) at
MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean
convertToXamlWithErrors) at
MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem()
at
Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem()
at
Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState()
at MS.Internal.Host.PersistenceSubsystem.Load() at
MS.Internal.Host.Designer.Load() at
MS.Internal.Designer.VSDesigner.Load() at
MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() at
MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView
view) at
MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory
factory, IsolatedView view) at
MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory
factory, IsolatedView view) at
MS.Internal.Host.Isolation.IsolatedDesigner.Load() at
MS.Internal.Designer.DesignerPane.LoadDesignerView()
If you run into this issue, a possible cause is due to you having Microsoft SilverLight version 5.0 installed on your pc versus that of 4.0 (Version: 4.0.50826.0). Remove the copy of SilverLight 5.0. Install the version located at the following link - http://go.microsoft.com/fwlink/?LinkId=146060
DO NOT INSTALL version 5.0 IF YOU HAVE SDK 3 AND 4. INSTALL MICROSOFT SILVERLIGHT 4.0
This happens if you have installed visual studio 2011 developer preview on your pc.
To resolve the error close visual studio and your browsers. Uninstall silverlight (no need to uninstall the sdk just silverlight itself).
Then re-open your project. Follow the instructions and it'll be working just fine.
it might be because of your application is developed on Silverlight 5 and you are opening it with the machine having silverlight 4. i am just giving example of 5 and 4. or might be you have not installed the SDK pack of it.

SL 4 Version Hell? The silverlight developer runtime is not installed please install a matching version

I've been developing for and running Silverlight 4 for about a week. A week ago I installed the Silverlight 4 design time components to develop and debug silverlight for VS 2010 - I posted some of these apps and they were used by users running SL4. Today, I went to a website that told me to upgrade my SL (I think it was the MS expression site) - so I did that and all the sudden I get this error when running SL 4 apps within VS 2010.
The silverlight developer runtime is not installed please install a matching version
Installing the latest version of the Silverlight SDK does not correct this. Basically I am stuck and unable to run Silverlight apps from VS2010.
Are versioning problems like this a common theme in SilverLight? The only thing I can think of is that there is a minor version difference between the versions used on the the MS Expression web site and the version (SL4) I installed from MS site a few days ago? However re-installing the latest version of SL4 does not correct this.
Any help?
The developer runtime is a different download than the normal "end user" runtime.
Again quoting from Tim Heur's Blog, you need to look for the link under "getting the updates" that points to the developer runtime. This will allow you to debug etc.

how to setup VS 2010 to allow debugging of Silverlight 3 and Silverlight 4

I have some code which is in Silverlight 3. I am unable to move to SL4 at this time.
I would however like to use VS 2010 to do my SL 3 development... and SL4 development.
The idea of both runtimes coexisting on 1 machine i thought I heard Microsoft got
right this time in VS 2010.
is this correct?
if yes, then Where can I find the instructions how to set this up?
thanks for any help you can provide,
Sincerely,
J
Silverlight is not side-by-side. VS 2010 provides multi-targeting support for the full .NET framework, which is side-by-side, but NOT Silverlight.
There can only be one version of the Silverlight plugin and runtime on the machine.
That said, if you want to build code targeting one or the other, that is possible by checking in the Silverlight versions to your source enlistment. This post is a little outdated but provides an example for doing this for SL2 and SL3.

Resources