Running Visual Studio with a ASP .NET application, but where can I change the validation language in the website? - asp.net-mvc

I'm running an ASP .NET application with individual authentication on the visual studio. When I check with the validation, the error sentences are showen in Chinese. I check the controller, viewer and some JS file. I couldn't find any Chinese words. I want these error sentences to be English.
Is this because my computer system or chrome version are Chinese? Where can I change the language?

Look at this first...
In Visual Studio
Click Tools->Options->Environment->Internations Settings->Language.
Look at this second...
In Windows Settings (Windows + I) select Time and language and click language.
Finally...
Open Chrome->Settings->advanced->
Select the three dots next to preferred language.
Uncheck Offer to translate pages in this language

Related

How to change Visual Studio Code error language?

I have Win 10 language set to Czech (I live there) and VS Code to English. But the errors (Problems panel) still show in Czech. Errors in the problems panel How do I change it to English? I tried deleting some language files in the .NET Framework folder or in the VS Code installation folder.

Use emmet(ZenCoding) with Visual Studio for Mac (not VS Code)

I'm making an Asp.Net Core MVC application using Visual Studio for Mac.(Not VS Code)
I want to use Emmet with Razor Page(*.cshtml file.) coding, but I can not use it even by pressing the Tab key.
I feel like I was able to use it before. (It is not certain.)
Is there a setting to enable Emmet somewhere?
Visual Studio for Mac does not have support for Emmet and there is no extension available that you can install.
Visual Studio for Mac has support for code snippets. If you open the Preferences dialog, select Text Editor - Code Snippets, you should find some snippets available for Razor files, and other files.
Code snippets are available in the completion list and you need to press tab - tab to select and then expand the snippet. However this does not match all the features that Emmet supports.

Umbraco MVC4 IntelliSense not working

I'm working on a few Umbraco projects that use MVC4. The MVC intellisense doesn't work within visual studio and I get lots of errors underlined. But when I run build the project, I don't get any errors, and when I run the site everything works fine.
I'm using Visual Studio 2013 and I created a new MVC4 site and compared the web.configs within the Views folder and they're identical.
I'm pretty sure it's not a code problem as my colleague is using the same code and he doesn't have this problem.
I've just done a fresh install of Visual Studio 2013.
Any ideas?
This could be a clue:
When I hover over #Htmlit tells me that my HtmlHelper is a System.Web.WebPages.Html.HtmlHelper instead of a System.Web.Mvc.HtmlHelper
The common one is to ensure that it is switched on (Visual Studio menu: Tools > Options > Text Editor > All Languages (or C# if you want it just for that language) > Tick "Auto list members", Untick "Hid advanced members", tick "Parameter information")
Once you've checked this, sometimes if you're using one HDD on Windows, because the disk has its bandwidth used up (particularly if using ReSharper then you need two or more drives ideally with the pagefile going to the non-OS drive I find). This is the case if the red lines do disappear after up to two minutes of not touching the IDE.
Finally check you project's references folder to make sure where the paths for your includes are coming from and that Visual Studio has permission to read from there. Permission issues cause all manner of problems I find, so when you launch VS, right click and choose "run as Administrator".
Hopefully one of these solves your problems. If not, then please update your question to explain how you create your project. Do you create an empty site or an MVC site? Do you then use Nuget to install Umbraco through the Package Manager Console like this?
Install-Package UmbracoCms

Visual Studio Team Services - how to change language?

I use Visual Studio Team Services. I goto - My Profile - Locale - choose another language. But the language in the browser there is in English. How to change language in Visual Team Services?
From Brian Harry's Blog Post about Microsoft's first non-US hosted instance of Visual Studio Online:
Although we have our first instance in a non-US, non-English speaking
region, we do not yet support a localized experience for VS Online.
You can enter data in any language you wish but the UI for VS Online
is currently English only. This is something we expect to begin
addressing sometime next year.
Emphasis mine.
I had a problem where my TFS online was displaying in French rather than English even though other sites that I had been on were displayed in English. I discovered that my language had been set to French in Chrome and when I changed it back to English TFS also changed. So basically if you want to change the language of TFS online just change the default language in your browser!
The reason this works is that a lot of new web applications which are localised will look at the language settings for your browser and use that information to decide what language the website should be displayed in.
Source: I work with web applications that use this technique.
You can manage VS Team Explorer locales here:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
For example, you can rename folder with current team explorer locale to anything else (be sure to shutdown VS). After that locale will be switched to default (en-us).

ASP.NET MVC Razor designer

I am introducing ASP.NET MVC to a new team and one of the questions that comes up often is "Is there a designer view"
Even if it's not for layout is there an IN visual studio design view for ASP.NET MVC3 using the razor view engine.
No, there is no designer. It would likely be difficult for a designer to even know what is meant by Razor code in many cases.
It's really not so difficult to just use your web browser as a viewer. You can make changes to the HTML without having to recompile, just make the change, save, and refresh your browser.
EDIT (8/2/2013)
Since this answer was originally written, Microsoft has released Visual Studio 2012 which includes a feature called Page Inspector, which while not a true "designer" in the way that the question was written, it does give a much nicer semi-live preview mode. This has been improved in Visual Studio 2013 (which was RTM'd today, 10/17/13).
I use a web browser window and set the url my localhost in place of the designer.
view > "other windows" > "web browser". I then split the windows vertically or horizontaly.
I was able to work using the following trick:
change the razor file's extension to .html
Open the document
with the document open, change file extension back to .cshtml
Congratulations, you now have a designer's view of the razor file. If you need razor intellisense, close and re-open it.
No, in general you should try and steer clear from visual designers. The combination of HTML/CSS/Javascript is something that just cannot be done well with visual designers and the short term pain of learning these manually will be well worth it. Once you know these well you will be coding in a cleaner and quicker way. I often use Expression Web to do initial layouts before copying it to Visual Studio.
I know I am late to the party, but..
You can trick the IDE as mentioned above, but if you are building applications in MVC, you should be comfortable in code view. It is more productive and most of the responsive design and css implementation can give you false results in design view. Designer is useful in WebForms. But with the Browser Link feature in Visual Studio 2013, there is no longer any reason to trick your IDE, you can have one-to-many browsers open and get live updates back and forth from browser to visual studio. Can't beat that! The browser is where it's at!
Browser Link!
Install the following and you will be golden!
Microsoft Visual Studio 2013 Update 3
Web Essentials (Dependent on VS Update 3)
I think they are working on that as a feature for Expression Blend 5 Developer Preview .
They clearly recognise the issue of designing JS in the designer so I suspect they realise the same applies to some designers working on MVC applications.
I was told by someone from Microsoft "I think in Blend for HTML, using interactive mode, you would probably be just fine with designing MVC or MVVM patterns"
Also check out Visual Studio Page Inspector it looks like it will do what is needed
In Visual Studio 2013 added browser link this allows two way communication between browser and Visual Studio. It means you can refresh browser when you change code and instantly see how it looks. Also you can change Css in the browser and have it saved in Visual Studio
There is workaround it is mentioned here http://www.codeproject.com/KB/aspnet/EnablingDesignerSupport.aspx

Resources