Visualstudio
Debugging a dotnetcore application hosted in a local IIS server
· Reading time: ~1 minute(s) (153 words) programming visualstudio dotnet coreWhen debugging a dotnet framework application that is hosted in a local IIS server, you would usually identify the w3wp.exe instance running the Application Pool and attach your Visual Studio instance to it. Sure you might get some issues with modules not loading, but on the whole this technique allows you to debug your application through IIS.
However, with dotnet core applications, things are a little different as they’re not ran as managed code from within a w3wp.exe instance but instead from within a dotnet.exe instance, so this is the process you should attach your Visual Studio instance to when debugging dotnet core.
The imported project ".../Microsoft.WebApplication.targets" was not found
· Reading time: ~2 minute(s) (253 words) programming visualstudioWe have an existing web application project at work which was failing to open in Visual Studio 2019 with the following error:
The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\vCurrent\WebApplications\Microsoft.WebApplication.targets" was not found.
After some research, I came across this a VS Community post where Microsoft have deemed it to be under consideration, but after a few months, it’s still outstanding.
Figuring out that the issue could surround the vCurrent part of the path, I did a bit more research, coming across another VS Community post which discusses this point, and it turns out that Microsoft have changed the MSBuildToolsVersion variable to output Current rather than the version (as it did previously). Luckily, Jim Waite has posted a useful workaround which appears to have fixed the problem I was having (which I quote):
JSX/ES6 Syntax Highlighting in Visual Studio 2015
· Reading time: ~3 minute(s) (538 words) programming javascript reactjs visualstudioVisual Studio 2015 (by default) isn’t exactly crash hot for editing JavaScript, especially JSX/ES6 for React etc.
A lot of developers seem to opt for alternative IDEs/editors for writing JavaScript code instead of staying in Visual Studio, however it’s often more effort to manage multiple IDEs for one project. I’ve tried a few things myself to get things working, some of the steps below are courtesy of Nick Dewitt on this StackOverflow post.
(Continue reading)Connection problems in Visual Studio 2013
· Reading time: ~1 minute(s) (148 words) techsupport csharp visualstudioSince installing Update 2 on the work laptop, I’ve been unable to check for available updates through the Tools > Extensions & Updates screen as it always timed out. If I continued working (without closing the IDE), it would eventually prompt me through the Notifications pane that it required credentials for the company proxy. Once I did that, it’d report updates etc. but over the last couple of days, that is no longer happening either.
(Continue reading)