Share via

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

JerryM 1,126 Reputation points
Jan 26, 2021, 3:32 PM

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,362 questions
{count} votes

Accepted answer
  1. JerryM 1,126 Reputation points
    Jan 27, 2021, 7:34 AM

    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,556 Reputation points
    Jan 26, 2021, 6:07 PM

    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 88,061 Reputation points
    Jan 26, 2021, 6:45 PM

    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,126 Reputation points
    Jan 27, 2021, 3:50 PM

    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.