Open JGCreator opened 3 years ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
"Microsoft.NETCore.App', version '3.1.15" is the runtime version, {"sdk": {"version": "3.1.407",}} is the SDK version https://docs.microsoft.com/en-us/dotnet/core/introduction#sdk-and-runtimes
version '3.1.15" is set in the application (in runtimeconfig.json) you plan to run. In this case, you should download and install the runtime 3.1.15.
"Microsoft.NETCore.App', version '3.1.15" is the runtime version, {"sdk": {"version": "3.1.407",}} is the SDK version https://docs.microsoft.com/en-us/dotnet/core/introduction#sdk-and-runtimes
version '3.1.15" is set in the application (in runtimeconfig.json) you plan to run. In this case, you should download and install the runtime 3.1.15.
@wli3 This has been closed without answering the question.
Obviously I can read that the error message is telling me to install the 3.1.15 runtime as I quoted said message
You can resolve the problem by installing the specified framework and/or SDK.
The question is: why does my app continue to require me to install the latest runtime whenever there is a new patch release and documentation indicates that it should select the latest installed? None of the config of my my app indicates that this should be my desired functionality (I have no runtimeconfig.json specifying anything about runtime configurations so I would expect it to follow documentation).
could you show me the content of your csproj or a sample repro?
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="AutoMapper" Version="9.0.0" />
<PackageReference Include="Azure.Identity" Version="1.2.0" />
<PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.0.3" />
<PackageReference Include="CsvHelper" Version="26.0.1" />
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" />
<PackageReference Include="LazyCache" Version="2.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.5" />
<PackageReference Include="Microsoft.Graph" Version="3.8.0" />
<PackageReference Include="Microsoft.Graph.Auth" Version="1.0.0-preview.5" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.5.0" />
<PackageReference Include="Newtonsoft.Json.Schema" Version="3.0.14" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.13.1.21947">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.5.0" />
<PackageReference Include="X.PagedList" Version="8.0.7" />
</ItemGroup>
</Project>
I have a .net core 3.1 project
netcoreapp3.1
that continues to fail to buld/run from visual studio whenever there is a new release of .net core.Error:
dotnet --info
global.json at .sln root
What is causing this project to require the latest release of .net core and is preventing it from resprecting my global.json preference?