Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Directory from Visual Studio 2019 can't run in CentOS 8 because of version of Microsoft.AspNetCore.App #28633

Closed
wuyuansushen opened this issue Dec 14, 2020 · 4 comments
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework feature-installers Includes: Installers ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved

Comments

@wuyuansushen
Copy link

I have installed aspnetcore-runtime-5.0 reference form Official Guide.
After Installation, I have got this version of dotnet

dotnet --info
Host (useful for support):
  Version: 5.0.0-preview.8.20407.11
  Commit:  bf456654f9

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.0-preview.8.20414.8 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.0-preview.8.20407.11 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

But when I run Directory published from Visual Studio 2019
It will show

It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.0' was not found.
  - The following frameworks were found:
      5.0.0-preview.8.20414.8 at [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

⚠️ .runtimeconfig.json file in VS2019 published directory is

{
  "runtimeOptions": {
    "tfm": "net5.0",
    "framework": {
      "name": "Microsoft.AspNetCore.App",
      "version": "5.0.0"
    },
    "configProperties": {
      "System.GC.Server": true,
      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
    }
  }
}

So I change it from "version": "5.0.0" to "version": "5.0.0-preview.8.20414.8"

Success run it.......

Please repair it

@mkArtakMSFT mkArtakMSFT added the feature-installers Includes: Installers label Dec 14, 2020
@BrennanConroy
Copy link
Member

Can you install 5.0.0 on your CentOS machine? preview 8 is not supported.

@BrennanConroy BrennanConroy added the ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. label Dec 14, 2020
@ghost ghost added the Status: Resolved label Dec 14, 2020
@wuyuansushen
Copy link
Author

wuyuansushen commented Dec 15, 2020

Can you install 5.0.0 on your CentOS machine? preview 8 is not supported.

@BrennanConroy I installed aspnetcore-runtime-5.0 through default repo in CentOS 8. Its default version is 5.0.0-preview.8.20414.8......

@blowdart blowdart removed ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved labels Dec 15, 2020
@BrennanConroy
Copy link
Member

I installed aspnetcore-runtime-5.0 through default repo in CentOS 8

Ah sorry, we missed that.

Looks like this is a known issue, being tracked by dotnet/core#5596
You might be able to add the microsoft feed to get the correct packages now, or you can wait for the centos folks to build the package for dist-c8 from dist-c8-stream.
You can see the packages at https://packages.microsoft.com/centos/8/prod/

@BrennanConroy BrennanConroy added the ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. label Dec 15, 2020
@ghost ghost added the Status: Resolved label Dec 15, 2020
@wuyuansushen
Copy link
Author

I installed aspnetcore-runtime-5.0 through default repo in CentOS 8

Ah sorry, we missed that.

Looks like this is a known issue, being tracked by dotnet/core#5596
You might be able to add the microsoft feed to get the correct packages now, or you can wait for the centos folks to build the package for dist-c8 from dist-c8-stream.
You can see the packages at https://packages.microsoft.com/centos/8/prod/

Thanks, I determine to wait for it.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 15, 2021
@JunTaoLuo JunTaoLuo added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework feature-installers Includes: Installers ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved
Projects
None yet
Development

No branches or pull requests

5 participants