Problem with C# WinForms .NET Core ... is Olia Gavrysh in here ? :)

JerryM 1,121 Reputation points
2021-01-26T15:32:35.407+00:00

Hello boys and girls from MS,
I am trying your C# .NET core WinForms but there is a problem:
In MS VS 2019 v16.8.4 there is no template to create C# .NET core WinForms project.
If I try to load a project from older version MS VS 2019 v16.7.4 I am receiving an error 0x80131500.
See pictures below. What I have to do now ?

60519-winforms-core.jpg

60520-vs-2019-verze.jpg

![60569-img-0079.jpg]3

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,119 questions
{count} votes

Accepted answer
  1. JerryM 1,121 Reputation points
    2021-01-27T07:34:57.073+00:00

    Great ! Thanks. It is like a miracle. It was not working yesterday, but now, it is working ! :)
    But there is still no template as you can see:
    https://drive.google.com/file/d/1gEH8VWcXwI1v8Po5zsyjPBA3uQ_bN8xr/view?usp=sharing


3 additional answers

Sort by: Most helpful
  1. Karen Payne MVP 35,461 Reputation points
    2021-01-26T18:07:07.007+00:00

    Hello,

    From the VS developer command prompt try starting in safe mode as per the following. Safe mode disables anything not absolutely needed, see if the problem persist.

    Next if the above does not work try running the VS Installer and do a repair.

    If that fails, use the feedback/issues button, top right corner of the IDE and report this as a issue.

    Edit
    Double click on the project file, should look like this.

    <Project Sdk="Microsoft.NET.Sdk">  
      
    	<PropertyGroup>  
    		<OutputType>WinExe</OutputType>  
    		<LangVersion>latest</LangVersion>  
    		<TargetFramework>net5.0-windows</TargetFramework>  
    		<RootNamespace>YourNamespace goes here</RootNamespace>  
    		<UseWindowsForms>true</UseWindowsForms>  
    	</PropertyGroup>  
      
      
      
    </Project>  
    
    0 comments No comments

  2. Castorix31 86,316 Reputation points
    2021-01-26T18:45:40.593+00:00

    I have VS 2019 v16.8.4 version and Winforms .NET Core is :

    netcore.jpg

    I got same error as you
    I changed to .NET 5.0, I re-started the project and it worked :

    netcore-properties.jpg

    0 comments No comments

  3. JerryM 1,121 Reputation points
    2021-01-27T15:50:15.877+00:00

    ok, thanks you for your help
    jerry

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.