I try to create Prism(WPF) using Prism Template Pack, which version is 2.4.1
click to see Prism Template Pack version
However, I can't choose .net framework to create new project.
click to see project create 1
click to see project create 2
What should I do to create .net framework 4.x Prism(WPF) project?
Related
A WPF project and a UWP project share the same solution. Can both projects reference a common project?
"Common" - .NET 6 target framework, class library
"UWP" - targets Windows 10 Creators Update (Build 15063)
"WPF App" - .NET 6 target framework, references "WPF2"
"WPF2" - .NET 6 target framework
The "WPF" project can reference "Common" no problem, but the "UWP" project says "Unable to add a reference to project 'Common'".
Annoyingly, the error message does not give a reason why.
How to use a class from one C# project with another C# project
Common controls for UWP and WPF
Reference a class library from UWP and ASP.NET 5 (solution here)
UWP is not compatible with .NET Core or .NET 6.
If you want to share code between a WPF app and a UWP app, your shared project should target .NET Standard 2.0.
Please refer to the docs for more information about .NET Standard and the supported .NET implementations for each version.
I have two C# console applications. In one project, under Properties -> Application -> Target Framework, I can choose .NET Core 1.0 through .NET Core 3.1 and .NET 5.0. In a different project, I have none of those choices. Instead I have .NET Framework 2.0 through .NET Framework 4.7.2. (In addition, the csproj files of the two projects look very different.) If I wanted to change one project to a framework only listed for the other, is that possible?
This page showed that .NET Core is a cross-platform, open-source successor to .NET Framework.
https://learn.microsoft.com/en-us/dotnet/core/introduction#net-core-and-net-5
If you want to change .NET Core project to .NET Framework project, you can refer to this page.
https://learn.microsoft.com/en-us/dotnet/core/porting/
https://learn.microsoft.com/zh-cn/dotnet/architecture/modernize-desktop/example-migration
By the way, VS2022 can modify the target framework directly in the properties.
You can also refer to this.
How to change .NET version in Visual Studio 2019 to .NET Framework 4.7.2?
Good day all,
I'm using Visual Studio Professional 2019 and when I start a new c# project (doesn't matter if it is console, WPF or Windows forms) I can only choose from the .Net frameworks: core 3.0, core 3.1 and 5.0 while on the machine are installed also other frameworks like 3.5, 4.5, 4.6, 4.8 etc.. .VS_Screen The strange fact is that if I look to older c# projects I can choose from all the frameworks installed on my pc. How can I use one of those framework on a new project
Also as You can see in the attached image in the solution explorer the "Reference" tab does not appear, how can I make it appear?
Agree with Flydog57's comment; take a look at this "New Project" window:
See after the project name on eg the Console app it has "(.NET Core)" and after the WPF one it has "(.NET Framework)"? That defines what you'll see in your targeting box.. Make sure you pick the one you want to later choose some relevant version from
I created a blank web project in Visual Studio 2017 using the .NET Framework 4.6.2. This project gets created correctly:
I go to the Solution Explorer, select the Solution and select the "Add Project" menu option:
I make sure that I select the ".NET Standard" option and add a new Class Library project to my solution:
When I select the project and view its properties, the target framework is not the 4.6.2 I specified, it's .NET Standard 1.4:
Why is Visual Studio assigning the wrong framework to new projects? Is there any way to prevent it from doing this? Are there any workarounds? Is there some way to convert an existing .NET core project into a .NET Framework project?
How do I create a class library targeting .Net Core in visual studio 2015?
I found this getting started “guide”, which shows how to create a new .Net Core project using the dotnet command line tool.
Do I need to create somehow a VS project manual based on the generated files (project.json…)?
Is there a way to create a .Net Core DLL inside of VS without using the “dotnet” tool?
For .net Core RC 2 if you have installed the tools then you can simply go: File -> Visual C# -> New project -> .Net Core using visual studio. I am currently working on a guide to get started with these kind of projects here if you want so see