Skip to content

.deps.json for desktop app is not including any nuget package references (VS2022 17.3.0 Preview 3.0) #46247

@rickbrew

Description

@rickbrew

This might be related to, or a duplicate of, #45686. Please let me know which log files, or whatever, you need. I can also provide access to a GitHub repo with the whole solution. I was told (@tannergooding) on Discord that this is probably an SDK issue.

In VS 2022 17.2.4 ("latest public stable"), my app builds and runs fine.

In VS 2022 17.3.0 Preview 2.1, it also worked fine.

In VS 2022 17.3.0 Preview 3.0, which I installed yesterday, it's completely broken. When the app launches, it throws a FileNotFoundException for TerraFX.Interop.Windows, despite the file being present and the working directory (via Environment.CurrentDirectory) being correct (the same dir as the exe, its DLL dependencies, etc.).

If I roll back to VS 2022 17.3.0 Preview 2.1, it works fine. If I then update to Preview 3.0, it again does not work.

This screenshot is just inside my Main method:
Image

In the .deps.json, all of the nuget package references are missing:

paintdotnet.deps.VS2022.17.12.4.Works.json
paintdotnet.deps.VS2022.17.13.0.Preview.3.0.Broken.json

Here's a screenshot showing some of the diff between the working and broken ones. The only difference I can tell between these two .deps.json files is that the "broken" one is missing all of the nuget packages:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions