dotnet / core

.NET news, announcements, release notes, and more!
https://dot.net
MIT License
20.74k stars 4.86k forks source link

How to Upgrade Net Core 3.0 project to Net Core 3.1 in Visual Studio 2019 16.4 Preview 5 #3864

Open ghost opened 4 years ago

ghost commented 4 years ago

Issue Title

Be as descriptive as you can with your title.

General

Provide details on the problem you are experiencing including the .NET Core version, operating system version and anything else that is relevant.

Please provide a code sample for your issue if it is relevant, either inline, link to a gist (or similar) or add it as a zipped attachment.

For some issues, you will get a quicker and better response if you file it at a more specific .NET repo. For example, if the problem is with ASP.NET Core, you are encouraged to use the aspnet/home repo.

ghost commented 4 years ago

I have a Net Core 3.0 solution that I want to test under Net Core 3.1 but in Visual Studio 2019 16.4 Preview 5 under Application Properties the Target framework only shows .Net Core 3.0. If I edit the project file(s), projects and solution will not compile stating:

Error       Project '..\RssImageProcessorX64\RssImageProcessorX64.csproj' targets 'netcoreapp3.1'. It cannot be referenced by a project that targets '.NETCoreApp,Version=v3.0'.    

Error   NU1201  Project RSSImageX64ProcessorNetCore3 is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0). Project RSSImageX64ProcessorNetCore3 supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)   

Error   NETSDK1045  The current .NET SDK does not support targeting .NET Core 3.1.  Either target .NET Core 3.0 or lower, or use a version of the .NET SDK that supports .NET Core 3.1. 

If I create a new .Net Core 3.1 project in Visual Studio 2019 16.4 Preview 5 it lists both Net Core 3.1 and Net Core 3.0 under VS Application Properties, and allow downgrading the Net Core 3.1 to Net Core 3.0.

So for existing Net Core 3.0 solutions, how do I upgrade from Net Core 3.0 to Net Core 3.1 when using Visual Studio? I am using Microsoft Visual Studio Enterprise 2019 Preview Version 16.4.0 Preview 5.0 VS Info:

Microsoft Visual Studio Enterprise 2019 Preview
Version 16.4.0 Preview 5.0
VisualStudio.16.Preview/16.4.0-pre.5.0+29512.175
Microsoft .NET Framework
Version 4.8.03761

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00433-90100-63537-AA870
Microsoft Architecture Diagrams and Analysis Tools

Visual C++ 2019   00433-90100-63537-AA870
Microsoft Visual C++ 2019

.NET Portability Analyzer   1.1.10808.0
Evaluates portability of assemblies across .NET platforms.

Add New File   3.5.134
The fastest and easiest way to add new files to any project - including files that start with a dot

ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

ASP.NET and Web Tools 2019   16.4.455.40912
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019   16.4.455.40912
For additional information, visit https://www.asp.net/

Atomineer Pro Documentation   1.0
Source-code documentation-comment creation and maintenance, and other documentation-related tools.

Automatic Versions   2.0.48
Provides tools for managing assembly versions.

Azure App Service Tools v3.0.0   16.4.455.40912
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.4.2000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools   16.4.455.40912
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio   2.4.2000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools   3.4.0-beta4-19562-01+1cb14195ed43eefdf7f9de59140ff6db70eea76e
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeRush for Roslyn   19.2.3.0
DevExpress CodeRush for Roslyn package.

CodeRush for Roslyn Tool Windows   19.2.3.0
DevExpress CodeRush for Roslyn Tool Windows package.

Comment Remover   1.3.25
Remove all comments in any file with a click of a button. Can also remove #regions and preserve XML Doc comments.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

ConvertAppToCore3Command Extension   1.0
ConvertAppToCore3Command Visual Studio Extension Detailed Info

Cookiecutter   16.4.19310.1
Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Dotfuscator Community Edition   5.42.0.9514-e0e25f754
PreEmptive Protection - Dotfuscator CE

Extensibility Message Bus   1.2.0 (d16-2@8b56e20)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

GhostDoc   19.3.19260.0
Generate XML Comments from your code, maintain clean and up-to-date documentation, produce help documentation in multiple formats, use intelligent source code Spell Checker in Visual Studio.

IntelliCode Extension   1.0
IntelliCode Visual Studio Extension Detailed Info

Microsoft Azure HDInsight Azure Node   2.4.2000.0
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.4.2000.0
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio   16.0
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service   2.4.2000.0
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.21016.1

Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   2.0.87+gbb515bf382
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   16.5.23 (1b51e8c)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   5.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Office Developer Tools for Visual Studio   16.0.29417.02
Microsoft Office Developer Tools for Visual Studio

Open in Visual Studio Code   1.4.46
Adds a menu command that lets you open any solution, project, folder and file in Visual Studio Code.

OzCodePackage Extension   1.0
OzCodePackage Visual Studio Extension Detailed Info

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Python   16.4.19310.1
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Conda support   16.4.19310.1
Conda support for Python projects.

Python - Django support   16.4.19310.1
Provides templates and integration for the Django web framework.

Python - IronPython support   16.4.19310.1
Provides templates and integration for IronPython-based projects.

Python - Profiling support   16.4.19310.1
Profiling support for Python projects.

Snapshot Debugging Extension   1.0
Snapshot Debugging Visual Studio Extension Detailed Info

Snippet Designer   1.6.5
Snippet Designer is a Visual Studio plug in which allows you to create and search for snippets inside the IDE

SQL Server Data Tools   16.0.61911.11100
Microsoft SQL Server Data Tools

Syncfusion ASP.NET Core (Essential JS 1) Project Templates   17.3.0.26
Provides project templates for creating an ASP.NET Core Web Application using Syncfusion Essential JS 1 components.

Syncfusion ASP.NET Core (Essential JS 2) Project Templates   17.3.0.26
Provides project templates for creating an ASP.NET Core Web Application using Syncfusion Essential JS 2 components.

Syncfusion ASP.NET MVC (Essential JS 2) Project Templates   17.1.0.32
Provides project templates for creating ASP.NET MVC (Essential JS 2) Web Applications using Syncfusion components.

Syncfusion UWP Project Templates   17.3.0.26
Project to create an Universal Windows Application using Syncfusion Products.

Syncfusion WPF Project Templates   17.3.0.26
Provides Project Templates to add Syncfusion WPF Project along with corresponding configurations.

Syncfusion.ASP.NET.Extension   17.3.0.26
Provides Project Templates to create Syncfusion ASP.NET web sites.

Syncfusion.WindowsForms.Package   17.3.0.26
Provides Item/Project Templates to add Syncfusion Windows Forms Item/Project along with corresponding configurations.

SyncfusionMenu Extension   1.0
SyncfusionMenu Visual Studio Extension Detailed Info

Syntax Visualizer   1.0
An extension for visualizing Roslyn SyntaxTrees.

Tabs Studio   4.5.0
The document tabs manager.

TermWindow Extension   1.0
TermWindow Visual Studio Extension Detailed Info

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   16.0.11031.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   3.4.0-beta4-19562-01+1cb14195ed43eefdf7f9de59140ff6db70eea76e
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 10.4 for F# 4.6   16.4.0-beta.19504.1+e3676d75d501a2df6789ad0f5ebc310bc2cee6b5
Microsoft Visual F# Tools 10.4 for F# 4.6

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Color Theme Editor   1.0
Allows users to create and edit Visual Studio themes. Themes can customize colors used for menus, toolbars, tabs, titlebars, the text editor, and other environment colors.

Visual Studio Container Tools Extensions (Preview)   1.0
View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

Visual Studio Tools for Kubernetes   1.0
Visual Studio Tools for Kubernetes

VisualStudio.DeviceLog   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   16.4.000.301 (d16-4@4593f70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   16.4.0.457 (remotes/origin/d16-4@2fad68f52)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   16.4.25 (579ee62)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   10.1.0.30 (d16-4/5e2fd06)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: e1ef774
    Java.Interop: xamarin/java.interop/d16-4@c4e569f
    ProGuard: xamarin/proguard/master@905836d
    SQLite: xamarin/sqlite/3.28.0@46204c4
    Xamarin.Android Tools: xamarin/xamarin-android-tools/master@9f4ed4b

Xamarin.iOS and Xamarin.Mac SDK   13.8.2.2 (44c08f2)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
ghost commented 4 years ago

Note: I also reported this in feedback to Visual Studio.

scalablecory commented 3 years ago

@SFC-Sarge is this still an issue? If not, can you provide a sample project? Thanks.