-
Notifications
You must be signed in to change notification settings - Fork 218
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
Convert to C# does not appear on context menu #1143
Comments
The main thing that jumps to mind is that you might be using a "website" project, which doesn't have a vbproj file and hence can't trigger the extension. |
Hello Graham,
Yes, this is a website project.
I created a vbproj file using another project file as a template. I listed all of the website vb files, restarted Visual Studio, but there is still no “convert” on the context menus.
To illustrate, here is a copy of the vbproj file with just one vb file listed.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns=http://schemas.microsoft.com/developer/msbuild/2003>
<ItemGroup>
<Compile Include="App_Code\Test.vb" />
</ItemGroup>
</Project>
Best regards,
Bill Clark
www.earthpoint.us<http://www.earthpoint.us/>
(208) 860-6311
From: Graham ***@***.***>
Sent: Sunday, October 27, 2024 11:19
To: icsharpcode/CodeConverter ***@***.***>
Cc: Bill Clark ***@***.***>; Author ***@***.***>
Subject: Re: [icsharpcode/CodeConverter] Convert to C# does not appear on context menu (Issue #1143)
The main thing that jumps to mind is that you might be using a "website" project, which doesn't have a vbproj file and hence can't trigger the extension.
If that's the case, just create a vbproj that contains all the relevant files (that compiles) and use that during the conversion
—
Reply to this email directly, view it on GitHub<#1143 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACVNP2GJKI7QQ6O3NRDD2RDZ5UHANAVCNFSM6AAAAABQPPEIUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGEYDKNZSG4>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Error message shown
None. "Convert to C#" is not listed on context menus, so process is never started.
If there's no error message, try the Visual Studio Activity log:
Not applicable.
Details
This is my first time trying CodeConverter
According to the Visual Studio "Extension Manager" version 9.2.6.0 is installed.
According to Visual Studio "Help"
Visual Studio Version is
Microsoft Visual Studio Professional 2022
Version 17.11.5
VisualStudio.17.Release/17.11.5+35327.3
Microsoft .NET Framework
Version 4.8.09032
Installed Version: Professional
The text was updated successfully, but these errors were encountered: