microsoft / vs-dapr

View, manage, and diagnose Dapr services within Visual Studio.
https://dapr.io
MIT License
22 stars 2 forks source link

Installed the extension in VS 2022 Preview but nothing appears in solution context menu? #9

Open chrisrlewis opened 9 months ago

chrisrlewis commented 9 months ago

Followed the instructions to install the extension, and it is installed and enabled. However, when I right-click the solution and go to 'Add' there is no 'Dapr Run File' option there? I've tried with an existing, and a brand new VS solution. In addition, beyond adding a Dapr run file to the solution, what other features does the extension have?

philliphoff commented 9 months ago

@chrisrlewis Which version of VS and extension? What type of project did you add to the solution?

ikarakayali commented 9 months ago

I faced same issue. After adding a new project to existing sln, "Project to Dapr Run File" option appeared. My VS version : 17.8.3 Extension : 0.1.1204.2

ggacura-h commented 6 months ago

I was having the same issue, was on VS 17.9.XX non prerelease. Had to move to 17.10.XX PreRelease version and it appeared. I am currently stuck at "Waiting for Dapr to start processes..." the process does start as I'm able to call my web api, it just does not goto the debugger.

iqoOopi commented 4 months ago

same issue here. VS2022 Version 17.10.0 with Dapr Extension 0.1.109.3. There is no "Dapr Run File" in the "Add" option

philliphoff commented 4 months ago

@ggacura-h I've been able to reproduce your debugging hang; it was a race condition while waiting for Dapr to start the applications and .NET to start their respective underlying processes. I have a fix for that and hope to get it out shortly.

@iqoOopi Under which node in Solution Explorer were you looking? For a new ASP.NET project, with 17.9 or 17.10, you should see the option under both the solution and project nodes. (Screenshots below are from 17.10.)

Screenshot 2024-05-29 at 14 13 38 Screenshot 2024-05-29 at 14 12 53
iqoOopi commented 4 months ago

@philliphoff I do not see the option in neither the solution nor project nodes

philliphoff commented 4 months ago

I do not see the option in neither the solution nor project nodes

@iqoOopi Well that is, indeed, odd. That's with 17.10.0 (GA, i.e. non-Preview)? With which kind of solution/project?

AppKajBonfils commented 4 months ago

Same here... no Solution or project level menu items. Visual studion 17.10.1: image

Below is the Info from "About Visual Studio"

Microsoft Visual Studio Professional 2022 Version 17.10.1 VisualStudio.17.Release/17.10.1+34928.147 Microsoft .NET Framework Version 4.8.09032

Installed Version: Professional

Visual C++ 2022 00476-80000-00000-AA710 Microsoft Visual C++ 2022

ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools

ASA Service Provider 1.0

ASP.NET and Web Tools 17.10.338.1105 ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.10.338.1105 Azure App Service Tools v3.0.0

Azure Data Lake Tools for Visual Studio 2.6.5000.0 Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 17.10.338.1105 Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.6.5000.0 Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 4.10.0-3.24270.2+e8f775c1d8a73dee7ad02408712d714251e708ea C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Code alignment 15.1.118.0 Code alignment helps you present your code beautifully, enhancing clarity and readability.

CodeRush for Roslyn 23.2.7.0 DevExpress CodeRush for Roslyn package.

CodeRush for Roslyn Tool Windows 23.2.7.0 DevExpress CodeRush for Roslyn Tool Windows package.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter 17.0.24064.1 Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Entity Framework Core Power Tools 2.6 Adds useful design-time EF Core DbContext features to the Visual Studio Solution Explorer context menu.

Extensibility Message Bus 1.4.39 (main@e8108eb) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

File Icons 2.7 Adds icons for files that are not recognized by Solution Explorer

GitHub Copilot 0.2.889.30432 GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

Linux Core Dump Debugging 1.0.9.34902 Enables debugging of Linux core dumps.

Markdown Editor v2 2.0.162 A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.

Microsoft Azure Hive Query Language Service 2.6.5000.0 Language service for Hive query

Microsoft Azure Stream Analytics Language Service 2.6.5000.0 Language service for Azure Stream Analytics

Microsoft Azure Tools for Visual Studio 2.9 Support for Azure Cloud Services projects

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio 17.10.8 (a565b86) Support for debugging Mono processes with Visual Studio.

Node.js Tools 1.5.60329.1 Commit Hash:15fce86a17f9f33e5bd7ca7ccb9b216aff149252 Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager 6.10.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Office Developer Tools for Visual Studio 17.10.34627.00 Microsoft Office Developer Tools for Visual Studio

Python - Django support 17.0.24064.1 Provides templates and integration for the Django web framework.

Python - Profiling support 17.0.24064.1 Profiling support for Python projects.

Python with Pylance 17.0.24064.1 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Razor (ASP.NET Core) 17.10.3.2427201+4f57d1de251e654812adde201c0265a8ca7ca31d Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.10.171.4 Microsoft SQL Server Data Tools

Test Adapter for Boost.Test 1.0 Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0 Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor 1.0 Hosting json editor into a tool window

TypeScript Tools 17.0.30327.2001 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.10.0-3.24270.2+e8f775c1d8a73dee7ad02408712d714251e708ea Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Cross Platform Mobile Development (Android) 15.0.34804.30 Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Linux Development 1.0.9.34902 Visual C++ for Linux Development

Visual F# Tools 17.10.0-beta.24228.1+dd749058c91585e9b5dae62b0f8df892429ee28f Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio.

Visual Studio Tools for Unity 17.10.1.0 Visual Studio Tools for Unity

VisualStudio.DeviceLog 1.0 Information about my package

VisualStudio.Mac 1.0 Mac Extension for Visual Studio

Workflow Manager Tools 1.0 1.0 This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin 17.10.0.110 (main@cf2e960) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 17.10.3.10 (remotes/origin/d17-10@3beef58f89) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 17.9.0 (38e87ba) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 13.2.2.0 (d17-5/45b0e14) Xamarin.Android Reference Assemblies and MSBuild support. Mono: d9a6e87 Java.Interop: xamarin/java.interop/d17-5@149d70fe SQLite: xamarin/sqlite/3.40.1@68c69d8 Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@ca1552d

Xamarin.iOS and Xamarin.Mac SDK 16.4.0.23 (9defd91b3) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

philliphoff commented 4 months ago

@AppKajBonfils That's unfortunate. I tested a new machine with 17.10.1 (non-preview) and am able to see the commands on a new ASP.NET solution/project. It's always possible that multiple extensions can interfere with each other (e.g. when they try to load conflicting versions of assemblies in to the VS process) so you might try disabling as many extensions other than the Dapr one just to see if that could be the issue.

What kind of solution/project were you testing with?

AppKajBonfils commented 4 months ago

I have disabled all my extensions and reinstalled the the dapr extension. That worked – even after re-enabling all my extensions. Its hard to say which extension that caused the problem, but obviously there were some kind of conflict.

-Kaj

Fra: Phillip Hoff @.> Sendt: 30. maj 2024 19:12 Til: microsoft/vs-dapr @.> Cc: Kaj Bonfils @.>; Mention @.> Emne: Re: [microsoft/vs-dapr] Installed the extension in VS 2022 Preview but nothing appears in solution context menu? (Issue #9)

@AppKajBonfilshttps://github.com/AppKajBonfils That's unfortunate. I tested a new machine with 17.10.1 (non-preview) and am able to see the commands on a new ASP.NET solution/project. It's always possible that multiple extensions can interfere with each other (e.g. when they try to load conflicting versions of assemblies in to the VS process, so you might try disabling as many extensions other than the Dapr one just to see if that could be the issue.

What kind of solution/project were you testing with?

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vs-dapr/issues/9#issuecomment-2140314619, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BHTPQVRUGA7MNMVDFFKEMS3ZE5MVTAVCNFSM6AAAAABA7Y5I6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBQGMYTINRRHE. You are receiving this because you were mentioned.Message ID: @.**@.>>

philliphoff commented 4 months ago

@AppKajBonfils Glad you resolved the issue. The downside to in-process extensions is that they can conflict in strange ways depending on their starting order. Unfortunately, the new VS extensibility model doesn't allow me to move everything out of process (yet).