project-system icon indicating copy to clipboard operation
project-system copied to clipboard

AnalysisLevel property in csproj is broken when choose any localized item in Analysis Level combobox on Code Analysis prop page

Open vsfeedback opened this issue 3 years ago • 1 comments

This issue has been moved from a ticket on Developer Community.


Environment Visual Studio 2019 version 16.9.1 Language: Japanese

Steps to reproduce the issue (1) Create a new .NET project.

(2) Open “Code Analysis” property page.

(3) Enable .NET Analyzer and choose analysis level “プレビュー”. ! [proppage.png] (https://aka.ms/dc/image?name=B542e39f72ee4458694224ee5e75b8ce9637509900181200775_proppage.png&tid=542e39f72ee4458694224ee5e75b8ce9637509900181200775)

(4) Then you'll see error dialog below. ! [errordiag.png] (https://aka.ms/dc/image?name=B3971e61d42ba40859f025d5f1bcfd198637509902372046985_errordiag.png&tid=3971e61d42ba40859f025d5f1bcfd198637509902372046985)

(5) AnalysisLevel property is broken by the localized display text of selected item and project is unable to be built. AnalysisLevel property should be the value corresponding to the selected item. <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net5.0</TargetFramework> <AnalysisLevel>プレビュー</AnalysisLevel> </PropertyGroup> </Project>


Original Comments

Feedback Bot on 3/10/2021, 10:04 PM:

(private comment, text removed)

Feedback Bot on 3/12/2021, 10:07 AM:

(private comment, text removed)

Feedback Bot on 6/7/2021, 07:12 PM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Jun 28 '22 13:06 vsfeedback

Note for triage: this is an issue in the old property pages.

tmeschter avatar Jun 28 '22 20:06 tmeschter