I get that error when I create project on a junction directory
This junction directory:
C:\User\Developer\Codes
points to:
D:\dev-codes
To avoid the error, just create the project directly on D:\dev-codes
I want to emulate Unix/Linux's symlink in Windows by using junction directory, so the directory appears local to current user, and also to prevent the internal SSD from wearing out quickly. However, for some reasons, Visual Studio is having problems compiling from a junction directory.
"Simplicity can't be bought later, it must be earned from the start" -- DB
Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts
Wednesday, October 23, 2019
Wednesday, February 10, 2016
Cannot Load Visual Studio Project
Error:
One possible cause of this error is when you configured your IIS 10 to accept wildcard in host name, think subdomain, or multi-tenant website. To fix it, do Unload Project, then edit the csproj, then change the IISUrl to something like this:
The Web Application Project SomethingGood.Api is configured to use IIS. The Web server 'http://www.localhost.com/api' could not be found.
One possible cause of this error is when you configured your IIS 10 to accept wildcard in host name, think subdomain, or multi-tenant website. To fix it, do Unload Project, then edit the csproj, then change the IISUrl to something like this:
<IISUrl>http://*.localhost.com/api</IISUrl>
Monday, August 1, 2011
Formatting your code on Visual Studio
On Visual Studio, if you have misaligned lines of code, to align them altogether, highlight the misaligned code code, then press Ctrl+E+F
Result:
That functionality can also be reached under Edit > Advanced > Format Selection.
To format the whole code, press Ctrl+E+D
class MyClass { void A() { int i = 1; if (i == 1) { Console.WriteLine(""); } } }
Result:
class MyClass { void A() { int i = 1; if (i == 1) { Console.WriteLine(""); } } }
That functionality can also be reached under Edit > Advanced > Format Selection.
To format the whole code, press Ctrl+E+D
Subscribe to:
Posts (Atom)