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

VS Create or open assembly resources gives "The system cannot find the file specified." #13762

Open
0101 opened this issue Aug 16, 2022 · 3 comments
Labels
Area-VS VS support for F# not covered elsewhere Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone

Comments

@0101
Copy link
Contributor

0101 commented Aug 16, 2022

Visual Studio Version

17.4-32814.25-main
Also happens on VS 17.3

Summary

Error "The system cannot find the file specified.(Exception from HRESULT: 0x8007002)" happens when clicking "create or open assembly resources" for F# project.

image

Steps to Reproduce

  1. New F# project. E.g F# console(.net)
  2. Click properties for project -> create or open assembly resources under resources tab

Expected Behavior

It works.

Actual Behavior

Error popup, see screenshot

User Impact

All users affected when using this feature. Not critical.

@0101 0101 changed the title The system cannot find the file specified.(Exception from HRESULT: 0x8007002) F# The system cannot find the file specified.(Exception from HRESULT: 0x8007002) Aug 16, 2022
@0101
Copy link
Contributor Author

0101 commented Aug 16, 2022

Is this something that needs to be fixed on the F# (VSIX) side or can you do it in project system?

@ocallesp
Copy link

ocallesp commented Aug 23, 2022

The code that appears in the stack trace haven't change in a while (Nov 2021).
Based on the stack trace it seems that either the template doesn't exist or it is not supported by the project.

I can see that we are missing to check the output from the method
AbstractFindByNameUnderAppDesignerSpecialFileProvider.EnsureAppDesignerFolderAsync() which can return null meaning that the special file is not handled by the project.

This code is using the private service ICreateFileFromTemplateService and it is called here:
image
The "ResourceInternal.zip" doesn't exist for F#

@ocallesp
Copy link

I would move this bug to the F# team and let them check if this is an installation issue or they need to add this ResourceInternal.zip for F#

@vzarytovskii vzarytovskii transferred this issue from dotnet/project-system Aug 23, 2022
@vzarytovskii vzarytovskii added Area-ProjectsAndBuild MSBuild tasks, project files, framework resolution Bug and removed Triage-Investigate labels Aug 23, 2022
@vzarytovskii vzarytovskii added this to the September-2022 milestone Sep 9, 2022
@vzarytovskii vzarytovskii moved this to Not Planned in F# Compiler and Tooling Sep 9, 2022
@vzarytovskii vzarytovskii modified the milestones: September-2022, Backlog Sep 9, 2022
@dsyme dsyme changed the title F# The system cannot find the file specified.(Exception from HRESULT: 0x8007002) VS Create or open assembly resources gives "The system cannot find the file specified." Sep 23, 2022
@dsyme dsyme added Area-VS VS support for F# not covered elsewhere and removed Area-ProjectsAndBuild MSBuild tasks, project files, framework resolution labels Sep 23, 2022
@T-Gro T-Gro added Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. and removed Needs-Triage labels Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VS VS support for F# not covered elsewhere Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Projects
Status: New
Development

No branches or pull requests

6 participants