-
Recent Posts
Recent Comments
Archives
- May 2024
- October 2023
- September 2022
- November 2021
- May 2021
- April 2021
- January 2021
- February 2020
- May 2019
- August 2018
- July 2018
- April 2018
- December 2017
- November 2017
- October 2017
- June 2017
- May 2017
- April 2017
- February 2017
- December 2016
- September 2016
- July 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
Categories
Meta
Author Archives: WUDI
How to set Visual Studio support C# 7 features.
open visual studio and click on project and choose ‘Properties’ in ‘Build’ tab, choose ‘Advanced…’, check screen dump in language version, in dropdown list showing in screen dump, there is not ‘C#7’ and ‘C# 7.2’ for visual studio 2015 in … Continue reading
Posted in Uncategorized
Comments Off on How to set Visual Studio support C# 7 features.
Typescript – tsc didn’t copy .html .css .txt to destination folder
tsc would translate .ts file to js and keep folder struction. however, for some special file for tsc, such as .txt, .html, .css, tsc command chooses to ignore them. we have to copy manually for cross-platform, we are using node.js … Continue reading
Posted in Typescript
Comments Off on Typescript – tsc didn’t copy .html .css .txt to destination folder
Orchard 2 – Microsoft open source CMS using asp.net core
Here we assume that %Orchard% is Orchard Source code workspace folder Orchard 2 uses autofac as DI library as well as NHibernate. %Orchard%\src\Orchard.Web\Global.asax.cs is entry of whole website. %Orchard%\src\Orchard.Web\Modules\Orchard.Setup\Views\Setup\Index.cshtml %Orchard%\src\Orchard.Web\Modules\Orchard.Setup\Controllers\SetupController.cs after filling at required field, ‘finish setup’ is clicked. it … Continue reading
Posted in Orchard
Comments Off on Orchard 2 – Microsoft open source CMS using asp.net core
Asp.net Core publish on Ubuntu
1. Download asp.net core sdk 2 from Microsoft website 2. link ‘dotnet’ command line to ‘/usr/bin/dotnet’ 3. publish project and zip all binary files including dlls, scp zip to ubuntu vps 4. export ASPNETCORE_URLS=”http://*:80″ This step is very important, because … Continue reading
Posted in Uncategorized
Comments Off on Asp.net Core publish on Ubuntu
.net core – create project and adding reference by command line only
dotnet new sln # new solution file mkdir webapi cd webapi dotnet new webapi # new project named webapi dotnet add package Autofac # try to add Autofac dotnet add package Autofac.Extensions.DependencyInjection dotnet add package MongoDB.Driver cd .. mkdir webapi_test … Continue reading
Posted in .net core
Comments Off on .net core – create project and adding reference by command line only
Code-First EntityFramework – step by step
This is first post for code-first entity framework and how to use it. 1. add entity framework, open project, in VS Package Management PM> Install-Package EntityFramework 2. Don’t enable migrations, if you enable migrations then, add Enable migrations only after … Continue reading
Posted in entityframework
Comments Off on Code-First EntityFramework – step by step
IIS subdomain configuration
1. open ‘IIS manager’ 2. right click on ‘site’ to create a new site 3.leave ip as ‘unsigned’, put all ‘host name’ to subdomain name for example ‘tool.wudilab.com’ 4. go to godaddy to add ‘core’ as subdomain
Posted in IIS
Comments Off on IIS subdomain configuration
WPF – simple wpf calculator
Here is example of WPF calculator, will add more function such as scientific calculator https://github.com/emacslisp/wpf/tree/dev/SimpleCalculator Visual Studio 2017 enhanced the symbols token searching function which originally VS2010 has and disappear in VS2013 and VS2015.
Posted in WPF
Comments Off on WPF – simple wpf calculator
Azure – creating app service talking with sql server
‘app service’ and ‘sql server’ are excellent combination for creating a small website. creating sql server on azure following step by step guide. Even on local visual studio, it talk with sql server on azure as well. 1. open microsoft … Continue reading
Posted in azure
Comments Off on Azure – creating app service talking with sql server
webapi – remove web api json string only
by default web api return is xml only. even return json string, but it is still embedded inside an xml file. for example: 1 2 3 <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> [{"Id":1,"Name":"Glenn Block"},{"Id":2,"Name":"Dan Roth"}] </string><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> [{"Id":1,"Name":"Glenn Block"},{"Id":2,"Name":"Dan Roth"}] </string> in WebApiConfig.cs: 1 … Continue reading
Posted in Uncategorized
Comments Off on webapi – remove web api json string only