When i put a break point on code line in visual studio 2022 it didn't stop on that line.
I'm trying to develop an Asp.Net Core Mvc project. I had a more project too. And break point is not working in that project too. But when i try to type code in Console Application and i want to put a break point it's working.
I watched videos on youtube.
I visited Microsoft Web Site.
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 get this error when trying to add an existing project to my solution file, I'm getting into C# and its the only issue stopping me from being able to run my CSharp code, I'm using tutorials so I don't have much knowledge about VS yet.
I wanted to create MVC5 web application but I am unable to find the option. Should I have to install something? I am using visual studio 2013 professional version. I followed this How to add MVC5 to Visual Studio 2013? But I could not find the option mentioned in that stackoverflow link.
File->New project-> web-> Asp.net web application not found instead I have only the list of templates shown in the image.
Look in here, instead of the Visual Studio 2012 element
You should then see something like this
Previously when working with .net 4.5 and Visual Studio 2013, I could just right click the project, select Web and choose Local IIS like this:
Here I could select a URL for my application and stuff like that.
However, in Visual studio 2015 it looks like this:
How do I use a local IIS? I dont want to start IIS express everytime, I just want to build and then refresh the page like I always have done... :)
That's because in VS 2013 you're using ASP.NET 4.5 -or similar- Web application.
In VS2015 you can also use that one but as you can see in your screenshots that project properties screen is for ASP.Net 5 preview project
So, for ASP.Net 5 preview there's no current support for Local IIS.
This screenshot is from VS 2015 with both types of projects:
You can take a look to the ASP.Net 5 roadmap here
ASP.NET 5 Schedule and Roadmap
As a Workaround you can follow the 'manual steps' listed in this other stackoverflow post
ASP.NET 5 project hosting on IIS
I have a project which uses MVC and Bootstrap (C#). It was working 100% in VS2013. Yesterday, I moved to 2015, but now, all my MVC objects are not recognized by the IDE anymore.
I am getting the design time error:
HtmlHelper does not contain a definition for 'BeginForm'
and all other functions of HtmlHelper.
Is there a step when moving from 2013 to 2015 that is required to allow for MVC functionality to be available in the ide? Note, the solution compiles and runs perfectly. I just don't have code hints and the cshtml files all show errors when editing.
We believe these are occurring because you are currently using MVC 4, and MVC 4 tooling is not included with Visual Studio 2015. Only MVC 5 and MVC 6 tooling is included. If you are in fact using MVC 5 and seeing these issues, please do let us know. You can confirm you are using MVC 4 by opening packages.config and scrolling to the entry for Microsoft.AspNet.Mvc. If the version listed starts with "4", this means you are using MVC 4.
Having said that, we appreciate your feedback and the investment you have made in MVC 4. Based on yours and other customers’ feedback, we are looking into the possibility of making MVC 4 tooling available for Visual Studio 2015. In the meantime, your project will compile and run in Visual Studio 2015 despite the tooling issues. Alternatively, you can keep both Visual Studio 2013 and 2015 installed on your machine side-by-side. That way, you can use Visual Studio 2013 for MVC 4 projects and Visual Studio 2015 for MVC 5 and above projects.