SteeltoeOSS / MainSite

This repository is used for building the steeltoe.io website, along with the Getting Started guides. The docs portion is in the Documentation repository.
https://steeltoe.io
Apache License 2.0
8 stars 6 forks source link

C# Project Acme Fitness acme-order is point at legacy .NET version #117

Closed kzawad1 closed 2 years ago

kzawad1 commented 2 years ago

Describe the bug

The Acme Fitness Store project contains a acme-order C# project that is generating a warning "This project is targeting a version of .NET which is not installed.". Mainly because it is not using the latest version of .NET.

Steps to reproduce

Steps to reproduce the behavior:

  1. Clone https://github.com/Azure-Samples/acme-fitness-store
  2. Use Visual Studio 2022 to open acme-fitness-store\apps\acme-order\acme-order.csproj
  3. After Visual Studio 2022 launches, the following message will be displayed: "This project is targeting a version of .NET which is not installed." CSharp_Steeltoe_Project

Expected behavior

The project should open and not show the warning. It should use the latest version of .NET.

Environment (please complete the following information, if applicable):

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context or links

Add any other context about the problem here.

TimHess commented 2 years ago

I believe that is a local machine issue. You should be able to add support for .NET Core 3.1 inside the Visual Studio Installer.

As far as I know, .NET Core 3.1 is the only supported runtime version in ASA, so that is likely why that sample app is using that version (which is still supported until December).

kzawad1 commented 2 years ago

The history for ".NET Core" is:

It looks like the projects I create with Steeltoe Initializr allows to select the latest .NET 6:

SteeltoeInitialz_main

It is just the previously created sample projects that are pointing to the ".NET Core 3.1", all newly generated projects are using the latest version.