VS2019 Extension how to add a new Top Menu - visual-studio

I am trying to create a VS2019 extension that adds a entire new menu to the top menu. My goal for this is to write an extension that actually works with the TC3 XAE shell which is a VS isolated shell application. This has been done by one guy with the STweep extension.
Top Menu of STweep in the XAE shell
Through some digging to install an extension into the XAE shell you just have to manually place the unzipped .vsix file contents into a folder.
C:\Program Files (x86)\Beckhoff\TcXaeShell\Common7\IDE\Extensions
This works with the demo of STweep. I can simply copy and paste the contents of his extension into the XAE shell and it works.
So I am trying to develop my own extension. I am trying to do this with VS2019 community. I can easily build an extension that adds a button to an existing menu like tools or edit. There are a bunch of videos on how to do this. This will work in VS2019 but no the XAE shell. If I take the same extension that works in VS2019 and puts a button in the Tolls menu, it doesn't work in the XAE shell. Not surprised. So, I am trying to figure out how to make a new top menu and this seems to be rather difficult to accomplish.
I found this guys site. He has an example of how to make a top menu item. It must have been built in VS2015 as it doesn't work in VS2019 when compiled. I went down the path of migrating the project and even in VS2019 when running the project the top menu doesn't show up.
Does anyone have a good link to a tutorial on how to accomplish adding a top menu in VS2019?

If anyone else has this problem, the solution was to start the extension in VS2017. It looks like the shell for XAE is built with the isolated shell 2105 or 2017. Starting an extension project with VS2017 worked right out of the box. Same steps in VS2019, different libraries are used and it simply doesn't work. Hope this helps someone.

You need to go to Extensions - Customize Menu to enable top level menu for your extension:

Related

how to get color code on my code FOR EXAMPLE (Debug.Log) to be in a color?

s
I want someone to tell me how to put colors on the code so its easier for me to code.
I think you forgot to select unity c# components when installing visual studio,
try again with visual code
If you are talking about Intellisense / syntax highlighting, you need to make sure that you installed Visual Studio Tools for Unity (Note this is needed for Visual Studio only and you may already have it installed).
Then follow these steps:
Close Visual Studio
In Unity, go to Edit > Preferences > External Tools
Click on the External Script Editor dropdown (this should be on which ever Visual Studio editor you are using or any other supported editor).
Make sure Embedded packages and Local Packages is checked under Generate csproj files for:
Click on Regenerate project files
Open any C# script and check if syntax highlighting is working.
In the worst case, if that does not work, you can close Unity and delete everything except the Assets/ and Project Settings/ folders (as well as anything you explicitly added) in your project's root directory. Unity will regenerate the project folders and files again when you open the project in the editor. It may just be that some of your project files were corrupt.
Also, in case I misinterpreted your question and you are talking about coloring the output in the console window within the editor, you can try using rich text which I believe is supported by Unity's console window in the latest versions.
Example:
Debug.Log("<color=red>this is red text</color>");
For more info on that:
https://docs.unity3d.com/Packages/com.unity.ugui#1.0/manual/StyledText.html

Moving from Visual Studio to Sublime Text

I'm working with Sublime Text for a while now and it works perfectly! But at my new work they're using Visual Studio, with some plugins and shortcut changes I'm now be able to work a little bit faster but I prefer Sublime Text.
Why I'm stuck to Visual Studio at my work is because of 3 things:
1. TFS: Team Foundation Server
I've found the Sublime TFS plugin, I haven't tested it yet but I think it works the same as the Sublime SVN plugin which I don't like (no status on checkout, just waiting until it's done). For SVN I'm using TortoiseSVN which works nicely. Is there something like TortoiseSVN for TFS?
2. Solutions
If I browse to the solution/product folder on my computer, add a new file and go back to Visual Studio I've to include that file into the solution/project. I'm used to exclude files which I don't like to use in my project instead of include. Is it possible to change this?
3. Build system
After every change I've to build. Instead of just save (F5) and go to my browser (ALT-TAB) which refreshes automatically after every change, I have to save (F5), build (SHIFT-F6), go to my browser (ALT-TAB) and refresh (F5) with Visual Studio. I'm pretty handy with it now, but I think this can be done easier. So is it possible to build automatically after saving?
What I did until now is searching on Google. I've found some interesting things but nothing which covers these 3 things. For example; here a simple tutorial for the build system. I hope someone can help me out with this so I can say good bye to Visual Studio and return to Sublime Text with love.
I have setup a shortcut key in Visual Studio to open my files in Sublime Text Editor. Below is a step by step guide to doing this.
Step 1:
Open Visual Studio, Go to "Tools" menu and Select "External Tools..."
Step 2:
Click on "Add". Set up a Title say "Open in Sublime" , browse to "sublime_text.exe" to the set the Command textbox. For the arguments fill them with $(ItemPath):$(CurLine):$(CurCol) - this will tell Sublime to open the Visual Studio's current file and go to the same location within that file. Set the Initial Directory to $(ItemDir).
Step 3:
Now if you go Menu > Tools you will find our newly added "Open In Sublime" option. Now let's take this one step forward and setup a shortcut key for this.
Step 4:
Go to Menu > Tools > Options, Under Environment select "Keyboard". In the "Show command containing:" field search for "externalcommand6" and press in your shortcut key combination you want to assing and click the "Assign" button. Avoid combinations that are already in use.
That's it you're done
Sublime text editing is now just a keystroke away.
You can use them both. Visual studio is an ide and manages a lot more then just editing the text files.
If you want to use your text editor of choice you just need to get familure with the command line tools that VS hides from you.
For TFS tasks you need to use TF
When you need to build just invoke MSbuild which is what Visual Studio more or less does anyway. You can also edit the project files by hand as there just msbuild files.

Visually Editting AXML file in VS2010

My VS2010 won't allow me to visually edit AXML files. I want to configure the "Open With..." feature in VS to run the visual editor.
The "Open With" feature is available by right-clicking a file in the solution.
Another one of my VS installations has this feature so I know it's possible. There must be something in the Xamarin install that this feature doesn't get setup some times.
Does anyone know how to set this up manually via the "Open With..." selection dialog?
Right now, I switch back and forth between Mono Develop and VS...what a pain...
This should not be the case you should just be able to select the file from the Resources/Layout folder and have the option of either the Source/Design view. If you are unable to do this just use the Xamarin Studio as you have been doing but it might also be a idea to use the DroidDraw website www.droiddraw.org/ in order to have a GUI to design your interfaces.
Hope this helps,
James

Visual Studio 2010 addin /Projects with GUI

I'm trying to figure out how to do a VS2010 add in with gui, (like a simple popup with a few fields and an enter button)
I found stuff on stack that says Visual Studio (2010?) projects is what I need (instead of an addin) but all the tutorials I can find are for VS2008, and dont' apply to vs2010.
Is the answer outdated? what do I use?
Can anyone tell me what technology I need to use?
We have some powershell scripts that take parameters and generate code for us, I want to click on a menu item under tools (or a tool bar button) popup and ask for the parameter values, click ok, and then run the powershell. (someone else wrote the powershell, i just want to creat a built in gui for them)
As a bonus I'd like to add resultant files to the projects, but that's down the line.
Any hint or tutorials you can point me towards would be a great boon.

Windows Explorer - Dynamic Icons For Same File Extensions

For Visual Studio .sln files, Window Explorer is doing something "clever" to figure out whether to display the v8 or v9 icons.
Now when it comes to double-clicking/launching the icon, I know that it goes through a "Visual Studio Launcher" app which looks at the version info in the sln file and selectively runs VS2005 or VS2008
But any idea how it does the icon part. Presumably that simply by browsing to a folder, something is opening the file in the background and making a decision on which Icon to use, but its so seamless/quick.
Any idea how it's done. We have config generator here, that gets updated deployed by ClickOnce but it would be nice for people to see at a glance which version of the generator app, created the config files.
Cheers,
I think this is what you're looking for?
How to Create Icon Handlers
Take a look at this part of a tutorial to shell extensions on custom icons.

Resources