Visual Studio 2019 fails to add a new file to my project - c#

I have a functions app project called Gorge.FunctionApp with the file path D:\Kernelgen\Platform\Gorge\gorge-products-catalog\Gorge.FunctionApp. However, when I try to add a new function, the dialog box just does not show up. When hit Ctrl+Shift+A to add a new file, I get the error as shown in the picture below.
Below is the folder path which is less than 100 characters
I'd appreciate any kind of insight on this issue.

Seems like some installation issue to me as i tried in Visual studio 2019 Preview edition and it worked for me.
I would suggest you to repair your VS 2019 and try it again.
Also if you still see this an issue , feel free to report it to VS team by clicking on following link in visual studio.
Hope it helps.

Related

Xamarin forms content page issue

I'm having some issues adding a new content page. I think it's some kind of issue with Visual Studio 2017 Community. When I add a new content page I can't see the .xaml file. After clicking show all files I see this:
Also, I can't include the .xaml file in the project. When I click include in project nothing happens. I'm using visual studio 2017 community, Windows 10.
What should I do?
I fixed it manually by editing the xml in project file and closing / opening the project. However, after upgrading my version of Visual Studio it seemed to resolve itself going forward.
I'm on 15.5.2 Also, I seem to remember this being related:
https://bugzilla.xamarin.com/show_bug.cgi?id=55591
...and suggestions here being helpful:
https://forums.xamarin.com/discussion/100129/xamarin-forms-vs2017-netstandard-xaml-and-code-behind-are-not-grouped

Can't add new project to existing Solution

I have a WinForms application. I see the solution file, but when I try to add new project to it and select the needed type of file, after pressing "OK" nothing happens, any ideas why?
Visual Studio Professional 2017 15.4.0
UPDATE:
As it turned out I couldn't even create any empty project, so I had to reinstall visual studio cause I didn't find any other solution. All works fine now.

Install Monogame on Visual Studio 2017

I am trying to install Monogame on VS 2017 however the option on the installer for VS 2017 is greyed out, even though I have VS 2017 installed. I also have VS 2015 and VS 2010 however I am not sure if it is those that are causing a problem. The version of MonoGame is 3.6.0.1625 and I currently have the directory: C:\Users\MY NAME\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#
Please help thanks
If anyone have this problem and is trying to install on non Admin account then just copy over whole Visual Studio 2017\Templates structure from your Documents to Administrator's Documents. (or the account with admin right you use in UAC prompt to install)
That solved it for me :)
This problem often happens when your templates are in the wrong directory.
The path you provided seems to be the right one tho.
Are your VS2015 templates in the C:\Users\MY NAME\Documents\ directory aswell ?
If not, try to move your VS2017 templates to the same directory as your VS2015 templates.
If those two are both in C:\Users\MY NAME\Documents\, look into Documents\Visual Studio 2017\Templates\ProjectTemplates and try to find the Visual C# folder. If it is missing add a new folder with this name and try again.
OK, simple answer is, that until MonoGame 3.7 drops, you are going to need to download the latest MonoGame Development build from the download page. This is fine as the dev build is still very stable and based off the current MASTER version of MonoGame from source.
I did a short Video on my "Darkside of MonoGame" channel a while back which walks you through everything you need to know to get up and running using VS017. (there is even a version there for VS2015 :D)
https://www.youtube.com/watch?v=zphaylhOrm0
Hope this helps.
I was having this same issue. Uninstalling MonoGame then Visual Studio, and reinstalling Visual Studio then MonoGame worked for me.

Visual Studio 2017 file icon after saving file changes

Does anyone know why every time I save changes to a file within Visual Studio 2017 it changes my file icon (see screenshot below)?
I'm not sure if this is the result of an extension I've installed or was rolled out within an update to Visual Studio.
I would really like to disable this, any help is appreciated.
UPDATE 1
This doesn't seem to be related to Git integration as the icons still change with source control features disabled (see screenshot below).
This seems to be a known issue for .NET Core solutions within Visual Studio 2017.
The developer community has already reported this issue, see Solution Shows Missing File Icon, which is currently "Under Investigation".
Updated August 30, 2017
The fix for this known issue is now currently marked as "Fixed - Pending Release".
Updated September 15, 2017
This issue has been fixed and is included within version 15.4 which is included in Visual Studio 2017 Preview. Downloaded and confirmed this is not longer an issue with the preview edition.
If you made sure VS didn't throw any error, warning or info exception in its Error List regarding the modified file, it most likely is related to the Git integration this Visual Studio edition came with. It works like a file version controller software, showing visual icons like this one to show if the files were commited and if they were, if they are new or not and altered or not.
To disable source code control, go to Tools, Options, Source Code Control and select None. If nothing changes instantly, I recommend restarting VS and checking again.

Error message with Visual Studio 2013 on Windows 7

Visual Studio 2013 with Windows 7, when I want to edit C# code, it show me a error
NO Editor option definition export found for the given option name Visual Studio
like at this picture
(source: ppt.cc)
.
Is something wrong with my Visual Studio?
I just change the path with the "project path " in the tool/option/project/general. but I change back when it happen error.
Follow the steps:
Close Visual Studio
Open the folder: %LocalAppData%\Microsoft\VisualStudio\12.0\
Rename the ComponentModelCache folder
Restart Visual Studio.
Visual studio will recreate the folder and all will be well with the world (or at least VS). I love a simple solution, and I hope its of use to anybody else who runs into this issue!
Resource

Categories