dotnet / dotnet/project-system

An exception pops up when right-clicking Form1.resx to choose "View Code" or F7 directly

Open
#9,044 1 comment 0 reactions 1 assignee Claimed by @melytc View on GitHub
Feature-WinForms Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

## Visual Studio Version
17.7.0 Preview 2.0 [33724.423.main]

## Steps to Reproduce
1. Create a Winforms .Net Core application and open Form1.cs code file
2. In Solution Explorer, find Form1.resx file, right-click it to choose "View Code"

## Expected Behavior
No any function
![ViewCode_nofunction](https://github.com/dotnet/project-system/assets/26474449/e452acdf-e4bc-4959-ba2a-b64ab4e258ef)

## Actual Behavior
An exception pops up
![image](https://github.com/dotnet/project-system/assets/26474449/dcd82e60-48ec-4838-9db5-eb7cb2a87ce8)
![ViewCode_Issue](https://github.com/dotnet/project-system/assets/26474449/602388b6-9ffd-4617-8e80-c1dd91a6ed6e)

## More Info
1. In .Net framework app, there is no this "View Code" option when right-click Form1.resx in Solution Explorer
2. This is a regression issue, cannot repro in 16.11.26, 17.4.7, 17.5.5 release builds, 17.6 Preview 7 build with no any function when "view code" for form1.resx file. But repro from 17.7 Preview 1 build.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.