I recently upgraded to Visual Studio Community 2019 16.5.2. My current solution comprises of several projects and all of them are targeted to .NET Core 3.1
When I am trying to publish my application from Visual Studio, I get the below error:
Project GCB.Storage is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0) / win-x64. Project GCB.Storage supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)
I am not sure why it is complaining even though I changed the target version to .net core 3.1. I looked at control panel on the server where I am publishing and it has "Microsoft .NET Core SDK 3.1.201 (x64) from Visual Studio". Do I need to configure/install
something on the server?
Project GCB.Storage is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0) / win-x64. Project GCB.Storage supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)
It seems that publishing profile is out of sync with the UX. I suggest you could try to update the pubxml file and update below settings:
<TargetFramework>netcoreapp3.1</TargetFramework>
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
5 Points
31 Posts
Error while publishing project from visual studio 16.5.2
Apr 06, 2020 02:16 AM|hokn|LINK
Hello,
I recently upgraded to Visual Studio Community 2019 16.5.2. My current solution comprises of several projects and all of them are targeted to .NET Core 3.1
When I am trying to publish my application from Visual Studio, I get the below error:
Project GCB.Storage is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0) / win-x64. Project GCB.Storage supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)
I am not sure why it is complaining even though I changed the target version to .net core 3.1. I looked at control panel on the server where I am publishing and it has "Microsoft .NET Core SDK 3.1.201 (x64) from Visual Studio". Do I need to configure/install something on the server?
Any pointers?
Thanks
Star
9831 Points
3120 Posts
Re: Error while publishing project from visual studio 16.5.2
Apr 07, 2020 02:20 AM|Brando ZWZ|LINK
Hi hokn,
It seems that publishing profile is out of sync with the UX. I suggest you could try to update the pubxml file and update below settings:
Best Regards,
Brando