In Visual Studio I perform the following steps to create a new C# project
Create New Project
Console App (.Net Core) C#
The project is created with a valid Hello World C# file. But the Debug option is disable (greyed out).
Presumably this is related to the fact that '0 Projects' is displayed alongside the project in Solution Explorer.
I have tried reinstalling Visual Studio but this did not help
No error messages were displayed.
I am using Microsoft.NETCore.App 3.0.0
The Visual Studio version is 16.3.1 - I did a clean install today
Screen shot showing problem
Related
I have a problem with publishing an app in VS 2017 with the Publishing Wizard. I found a stackoverflow post:
Compile a .NET Core application as an EXE file using Visual Studio 2017
But when I want to go to this menu it only opens an old Publishing Wizard that doesnt have the options I need.
I tried to update my VS 2017 to the newest Version, but it didnt help...
After that I tried to use the first approach of the stackoverflow post above, but I didnt have dotnet(???) so installed .NET 7 SDK. Tried the command in the project directory (where the .csproject lays), but I got the error: MSB4062. So Im back trying to get the new publisher, because I really dont know how to fix MSB4062.
Picture of my Publishing wizard:
Picture of the one I want:
[]
The Publish Wizard is usually the first time you publish a project and will guide you to publish the project to the specified location.
After completing the Publish Wizard, you will find Publish Settings in the Publish view and configure it. Hope it can help you
I needed a .NET Core / .NET console app, but I had a .NET FRAMEWORK console app.
And to create a .NET Core / .NET console app I needed Visual Studio 2022 (maybe 2019 is enough), but I had Visual Studio 2017.
This fixed everything for me.
I have an ASP.Net Web Application Project that was created using Visual Studio 2017. The Project includes some class libraries but nothing fancy. The Target Framework is 4.5 and the project is currently using c# 6. The project works great, except when we try to load it with Visual Studio 2015. We get the error
Microsoft.Net.Compliers is only supported on MS Build v15.0 and above.
Is there a way to set up the project in vs 2017 to allow users using Visual Studio 2015 to build and run the application? The project doesn't use any of the latest technology. Its NOT .Net Core and it doesn't use c# 7. Thanks.
I cant create new xamarin.forms projects. visual studio 2015 gives me following error
repaired my visual studio project,
uninstalled and installed full visual studio software,
I can open existing xamarin projects and deploy successfully. but can not create new one
I do not know what is the exact solution to this but you can follow these steps. It works for many people with this error.
Go to Add/Remove programs and open Visual Studio installer in modify mode
Remove Xamarin and related features
Reinstall Xamarin and related features.
Now open Visual Studio>>New Project>> Xamarin Project
Please keep in mind that you remove all Xamarin related tools from your Visual Studio.
Yes, i've tried devenv/install, with no help.
So, I don't have the Console C# Project option when creating the project,
as shown here
Currently i have installed windows basic pack - there's my 'about' screen.
I have just reinstalled Windows because i was getting the same exact problem on old system, and because VS2015 had interface bugs and crashed consequently, but it didn`t help(as well as reinstalling both VS 2015 and 2017 numerous times)
Hope that you can guess whats wrong with my PC.
Visual Studio 2017 setup allows you to very fine-grainedly install various "components" separately, or groups of components delivered as "workloads".
You're missing the workload named ".NET desktop development", which contains among others these project templates. So re-run setup and install that workload.
You have a link, Open Visual Studio Installer in a New Project window that will allow you modify your installed components
This is my first time of using Visual Studio 2015 Community with Xamarin, and in using them to create Tizen apps.
In Visual Studio 2015, I chose File - New Project - Blank Tizen App (Tizen Xamarin.Forms Single). The files were generated, but virtually every keyword was not recognized i.e. red underline on them.
What configuration is wrong is my system, and how to fix them?
OK, so I did the following and it fixed this problem (somehow):
1. Uninstalled VS2015.
2. Reinstalled VS2015. I encountered installation failure on Roslyn and NDK-R11C.
3. I Ran VS2015 installer again in elevated mode (Run as Admin) and chose Repair. Roslyn was successfully installed but NDK-R11C was still failed, with the same error as before: Cannot extract the zip file to the target location.
4. Manually I ran the extraction of NDK using windows' default unzipper. I got unclear error message stating that NDK cannot be expanded.
5. Using Norton Commander, Extracted the zip file to the same target location. Success.
6. Ran VS2015, created the blank project. Now NuGet could get the updates, and after that the keywords were properly recognized.
I don't know, though, what was the connection between NDK and Tizen Extension. Maybe the act of reinstalling VS2015 just fixed the problem. At least now I got it now. Thanks all!.
I think it's bug of VS plugin. (it's preview version.)
Project - Unload project and Project - Reload project
I think this should solve your problem.