Category: "Announcements [B]"
DateTime in ASP.Net Core at Azure
I did the ASP.Net Core MVC web app in Azure. I found all DateTime values are displayed in US format. Even I set in Startup.cs set DefaultRequestCulture to be en-au. It does not work. Finally, I used to use DisplayFormat attribute in The object.
Code
[DisplayFormat(DataFormatString = @"{0:dd\/MM\/yyyy}", ApplyFormatInEditMode = true)] | |
public DateTime? DateTime { get; set; } |
That works in display form. Moreover, the input field will display value in this format.
[Xamarin] Error: AppData\Local\Xamarin\[packages]\[version]\class.jar missing
After I had installed a new component in my Xamarin project, I got an error like that: C:\Users\[username]\ AppData\Local\Xamarin\[packages]\[version]\class.jar missing.
I found the problems are caused the downloading packages are failed before. The Xamarin is not smart enough to re-download automatic.
The solution is simply. I only need to delete all zip files under Error: C:\Users\[username]\AppData\Local\Xamarin\zips and the package folder in the error message. Then I need to rebuild the project. The packages will be download again. The project will build successfully.
New version Visual Studio Team Service
In ten years ago, we started to use Visual Studio Team Foundation Server. That sounds only a source control system. Last night, I went .net user group meeting for the new version of Visual Studio Team Service. The presentation is great. The new version have on-premise and on the cloud. Moreover, that is more than a source control system. It is similar with JIRA, and it can handle the change request and user story, you can use it to do scrum meeting. In addition, it is not for Visual Studio, it got the plug-in for eclipse and Android Studio. Also, it got build agents for Android and Linux too, even you use the cloud version, you can install a build agent on your computer. The on-cloud service can trigger the agent. Lastly, it just supports TFS, it supports ZGit, and can link up any external git system. That is great!
Error 255 after I installed Visual Studio 2015
This week, I installed Visual Studio 2015 in my laptop. Then all of websites I build which is running .Net Framework 4.5 or 4.5.x are not working. They got .net framework error Error 255 and it cannot execute vbc.exe. I did a lot of research. There are a lot of people wrote about this error is about App Pool Identity. They are right in the past, I found out if you have .net framework 4.5 an 4.6, this error is caused by some security patched, 3098779 and 3097997. If you uninstall these two patches, then you will be fine again.
Code Visual Studio (Preview)
Last night, I went to the .Net User Group in Brisbane. The speaker introduced the new product from Microsoft, Code. That is a visual studio style code editor. Well, that is not very impressive at all.
You are not right, that is an very interesting product. It can run in OSX,Linux and WIndows. It provides a tool to work on interface codes outside from Windows. It made my life easier, I can do all js and shtml in OSX and leave only a bit little c# code which I can do in visual studio in windows VM.
Although it is a code editor, it still has some debugging features, it can debug node and mono application.
Lastly, even you only require to use Windows, that is still good to try this. This is without all heavy weighted features from Visual Studio. It load up so quick and less chances to break! That is very cool to use!