How do I create a blank blazor project on Visual Studio? - c#

I am trying to create a blazor project on visual studio, because I have a LOT of C# code I could recycle, but I have never used blazor before and therefore have little experience to know what on the default-generated samples (which include weather forecasting and a side nav bar I still haven't figured out how to delete) is completely useless to my purposes and should be deleted.
As such, I'd like to create a blank website. However, VS will not allow me to do so.
Does anyone know how?

Related

Adding any control to an existing C# Windows form corrupts the display

I'm using Visual Studio 2022 Community Edition w/ .Net 4.8 but the same behavior presents itself with Visual Studio 2019 Professional w/ .Net 4.6.1
What is happening is that I can clone a new Feature branch from Git to my local system and when I launch it everything is fine. The main application form presents itself just fine and I can get to all of the buttons, dropdown lists, file selectors just fine. The minute that I had any new control to the form when I subsequently launch the application the form is cut in half and I can't get to any of the controls and maximizing the form doesn't help either. When I inspect the designer code things have been drastically moved around in the post modification file as compared to the original. I've included sample information--
Original Form Display
Post Modification Form Display
Designer Code Compare Sample
A team member can take the same code base and add controls without any problems. Additionally he took my codebase which runs fine on his system compiled it and sent me the executable and when I launched that executable I had the problems with form display that my solution exhibits.
One final not thinking it was my laptop I got a brand new laptop and I'm still seeing the issue. I also created an AWS EC2 Instance and tried it there with the same behavior.
We're all stumped here none of us has ever seen behavior like this. We're hoping that someone in the Community has seen this sort of thing before and can shed some light on the issue.
Thanks,
Bill

Visual Studio extensibility

Based on our project we created several item and project templates which after installation using our installer works perfectly. this was really good step as it avoids spending time on setting up new projects or modules inside our enterprise application. Now we want to move forward and create something similar to the context menu inside visual studio when u click Views or Controls folder inside ASP.NET MVC application and in other types of projects as well (for example when u click your right mouse button on your WPF application, under Add menu u get different items which avoids opening new window where u have to search for item time.
My goal is to create add in or whatever it is called to make it even easier to work with our SDK so for example when developer right-clicks on project we want to have our own menu items under New menu so developers will be able to add OURPROGRAM View, OURPROGRAM view with validation. can anyone assist me with this? or how provide good examples of this?
Look for the Visual Studio SDK documentation on MSDN.
There is an open source Iron Python project which is your best resource.
http://msdn.microsoft.com/en-us/library/bb165436(v=vs.80).aspx
Also on MSDN there is a walkthru for creating a basic project system.
http://msdn.microsoft.com/en-us/library/cc512973.aspx

Adding controls to a form when I only have the reference to it’s EnvDTE

I am writing na Add-In for Visual Studio 2010, and I want it to add controls to an existing Form in an existing Project in an existing Solution, and I already have references to all of them.
As I have the reference to the Project Item that represents the file of the form, I want a reference to the Form per se, then I’ll be able to do anything to it (changing properties, and adding controls).
I have tried some approaches, though I must admit I haven’t ran out of tries. But since this is quite an interesting subject, instead of keeping on beating around the bush, I decided to write this question, so it would be faster for me, and would be registered for future similar doubts from anyone else.
Summarizing:
I have:
EnvDTE.ProjectItem myPrjItemForm
And I want to have:
System.Windows.Forms.Form myFormObject
Have a look at these articles:
HOWTO: Add a control to a Windows form from a Visual Studio add-in
HOWTO: Manipulating controls of Windows forms from Visual Studio .NET add-ins
It's VB code, but as far as I can tell, it illustrates the steps you need to perform.

Components for WPF similar to the simplified Visual Studio

I would like to make a support plug-ins in my program.
For example in my program there are several tabs in one tab is the editor in which the code is written also in that tab has a button run.
After pressing the button run occurs a compilation of source code and its execution.
The results of work are displayed in the other tab.
I would like to find such a component in which there are:
Syntax Highlighting, Debugger, Analogue of solution explorer
Thank you very much for your answers.
I would like to bring more of clarity to my question.
I want to do something similar to that is shown in the screenshots below
On a single tab there is the editor and at the other tab displays the results.
To write plug-ins I'd like to use C #.
I guess the best place to start is AvalonDock from CodePlex, specifically what you are trying to do is a Tabbed User Interface.
Keep in mind that even with a TabbedWindows framework build/debug and syntax highlighting are not for free and you will have to find icons and design the UI mostly yourself.
for code coloring there are also many components, also free, like Scintilla .NET
You obviously understand that Visual Studio is a very complex application, so rewriting portions of it will be difficult. There are components available to help you, like the ICSharpCode text editor. In fact, that whole project is probably quite valuable.
However, when thinking of plugins and actually writing code for it, I'd personally go down the MEF route. In fact, this is the very framework that VS.NET 2010 uses for extensibility. Provide your user/developer with a set of libraries to code against (like an SDK), and let them use a Visual Studio Express edition to write proper code :)
As source code editor you can use AvalonEdit (it is great, in some aspects even better than VS code editor), solution explorer is fairly easy to create and debugger is way too language-specific to be a reusable component (you didn't specify what language are you developing for!).
The whole thing can be packaged into AvalonDock, so you get the draggable and dockable panels - it even has VS 2010-like skin (and again - is very easy to implement even with only very basic WPF knowledge).
Or you can use the Visual Studio Isolated Shell - it allows you to use the Visual Studio interface in your program (the end users don't have to have VS installed!), but it requires extensive knowledge of VS API (if you ever developed VS extension you know what I am talking about). For example Civilization V used this approach for it's modding environment, but the result smells as stripped VS with custom splash screen, not as professional product. There are many buttons and config. options that don't work, some features that would be expected from such program (and easy to do in custom app) didn't get in because it would be nigh impossible to implant them into the VSIS etc...
EDIT: You may also eventually be interested in this.

Creating UI framework more like Visual studio

I want to develop the application UI much like as VS2010 or any similar UI models. My requirements are as below:
Opening new project will create empty canavs.
When I will do add data sheet it will add new tab page in that.
Remaining few things I will do on that added tab page like showing charts, different types of controls etc.
When I will press 'Save' it will persist whatever there on UI like added tab pages and every controls on it on disk.
When I will open any saved project, It will recreate everything what was there on UI at the time of saving the project.
I will have recently open project list.
Any idea for creating how to create such UI?
Thanks,
Omky
Maybe develop your solution over Visual Studio SDK? A good sample is AddonStudio for World of Warcraft which is customized dev. environment for World of Warcraft addon development based on Visual Studio.
It's quite easy to implement the Visual Studio-inspired UI using DevExpress Docking library for WinForms.

Categories

Resources