Add auto build and publish using gitlab ci/cd services and deploy to ubuntu.
Category: .net
dotnet core dependency graph
My other open source project https://gitlab.com/quantr/toolchain/dotnet-core-dependence-walker can generate a dependency graph for dotnet core dll.
Framework 4.6 Namespace-to-Assembly Reference
Below is the table show you the mapping between namespace and assembly, thanks to the book “C# 7.0 in a Nutshell” Namespace Assembly Microsoft.CodeAnalysis Microsoft.CodeAnalysisMicrosoft.CodeAnalysis.CSharpMicrosoft.CodeAnalysis.VisualBasic Microsoft.CodeAnalysis.CSharp Microsoft.CodeAnalysis.CSharp Microsoft.CodeAnalysis.CSharp.Syntax Microsoft.CodeAnalysis.CSharp Microsoft.CodeAnalysis.Diagnostics Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Diagnostics.Telemetry Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Emit Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Semantics Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Text Microsoft.CodeAnalysis Microsoft.CodeAnalysis.VisualBasic Microsoft.CodeAnalysis.VisualBasic Microsoft.CodeAnalysis.VisualBasic.Syntax Microsoft.CodeAnalysis.VisualBasic Microsoft.CSharp System Microsoft.CSharp.Activities System.Activities Microsoft.CSharp.RuntimeBinder Microsoft.CSharp Microsoft.SqlServer.Server System.Data Microsoft.VisualBasic System Microsoft.VisualBasic.Activities System.Activities […]
咪記今次啲Doc幾準,唔錯!
Easy easy to extend c# class
Love this book, a very easy way call “extension methods” can let you easily inject new method to existing classes (even you don’t have its source code). I tested it in windows with .net framework and mac .net core, both work correctly.
Proved ASP.net can call class in GAC
Nothing special, it works. SharePoint Master page doesn’t have a code behind, we can use this skill to add it in GAC.
dotnet core will produce two exe
dotnet core will produce two exe if you make it self contained. One in win-x64\ and one in win-x64\publish\ . The different between it is referencing two different coreclr.dll. See the arrow in the below image.
咪記唔將成套.net搞到portable其中一個原因可能係CLR
咪記唔將成套.net搞到portable其中一個原因可能係CLR係用com server寫,com一引用DLL根本係好難移值
Useful AD command about AD user
get user properties get-aduser -filter {name -eq ‘administrator’} -property * get-aduser -filter {name -eq ‘administrator’} -property *|select mobile,city
主題分享 – 走進 .NET Core 的世界
dotnet core pptx
.net core CLR ELF analyst in Ubuntu 16.04
Analyst the ELF files build from .net core CLR in Ubuntu 16.04 by https://sourceforge.net/projects/elf-dependency-walker/
Powershell學習之旅 – Object Type
Powershell是一種typed的語言,和其它同種的語言比,它有一個我認為比較特別的地方,就是它支援不同的Object typ。Windows世界裏幾個大的Object家族它都支持: Common Object Model (COM) .Net Windows Management Instrumentation (WMI), 它是Management Object Format格式 ActiveX Data Objects Active Directory Services Interface (ADSI) XML Powershell是用adaptor的方式去和不同格式的object聯絡,此Topic沒有太多人有興趣所以書中並沒有提及。
Grid in Office UI fabric js
Office UI fabric js library embedded a very old Fabric Core 5.0.1, so the grid example from Fabric Core will not work. All you have to do is change the class from “ms-lg2” to “ms-u-lg2”. Just go to https://github.com/OfficeDev/office-ui-fabric-core/releases , download the source and check all the class names you need.
Calling SharePoint authentication.asmx
Calling SharePoint authentication.asmx need to set the “Content-Type” in header. For SOAP 1.1 (namespaces “soap”) it’s needed to use “text/xml” content type, while for SOAP 1.2 (namespaces “soap12”) – “application/soap+xml”. “application.xml” is not working. Beware of this.
For Java developer, login to microsoft api is a problem
I have developed a SharePoint library to read/write SharePoint Online restful api. As you can see the below image from Microsoft, we need to sign-in to Microsoft before we can get the access token. Access token is a value that you need to pass to every restful calls as a parameter, otherwise the restful call […]
PowerBI may not be a very good option to build stock chart
PowerBI may not be a very good option to build stock chart if your data set is over 10,000,000 records, it take too long to load in from MySQL.
Azure functions first try
Azure functions first try, sending around 60,000 to a very simple function on Azure functions, just returning a random number. Speed seems good and the charges is very very low, my account only raised $0.01 HKD for those 60,000 requests. The dashboard is not very real time, the “number of requests” has some delay. Java […]
Kendo with asp.net MVC ScriptBundle issue
Kendo with asp.net MVC, need to be careful this link in your web.config You have to turn off debug=”true”, otherwise the ScriptBundle includes will not working.