Hi @James J ,
Thank you for reporting it in Microsoft Q&A.
For your requirement, please try the following code in .csproj file to port to .NET 5.0:
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5623B94B-4831-4479-9F46-CE995E022094}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ConsoleApp9</RootNamespace>
<AssemblyName>ConsoleApp9</AssemblyName>
<TargetFramework>net5.0</TargetFramework>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
</Project>
For more details, you can also refer to the document: Example of migrating to .NET Core 3.1.
Sincerely,
Anna
- If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.