<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>.NET on Martin‘s Physics Club</title><link>https://martinphysics.club/tags/.net/</link><description>Recent content in .NET on Martin‘s Physics Club</description><generator>Hugo</generator><language>en-US</language><copyright>2020-2026 martinphysics.club</copyright><lastBuildDate>Thu, 20 Mar 2025 14:04:23 +0000</lastBuildDate><atom:link href="https://martinphysics.club/tags/.net/index.xml" rel="self" type="application/rss+xml"/><item><title>I choose WPF as my first Windows-based App Framework in 2025</title><link>https://martinphysics.club/posts/wp-100003/</link><pubDate>Thu, 20 Mar 2025 14:04:23 +0000</pubDate><guid>https://martinphysics.club/posts/wp-100003/</guid><description>&lt;p&gt;&lt;strong&gt;Windows Presentation Foundation&lt;/strong&gt; (&lt;strong&gt;WPF&lt;/strong&gt;) was born in November 21, 2006. At that time i was a &amp;ldquo;child&amp;rdquo; who only know use VB.NET to creat old fashion GUI Application. At that time I prefer find a app than creat one by my-996-self.Not crazy about coding.&lt;/p&gt;
&lt;h4 id="the-beginning"&gt;The Beginning&lt;/h4&gt;
&lt;p&gt;The meaningful time is about 2016.Microsoft released &lt;strong&gt;Universal Windows Platform&lt;/strong&gt;(&lt;strong&gt;UWP&lt;/strong&gt;) Framework,coder can code one sample to publish in Windows 10 destop/Windows 10 mobile/XBoxOne. I was so attracted to learn &lt;strong&gt;UWP&lt;/strong&gt; by Channel 9&amp;rsquo;s video.I learned how to use XAML to design an interface/space and studied .NET syntax. From compiling a simple calculator to run on my Windows 10 PC and my Lumia phone, to flashing Windows 10 IoT on a Raspberry Pi and running my self-built local network media server—those were wonderful times.Back then, in China, platforms like NetEase Cloud Music were among the first to support the &lt;strong&gt;UWP&lt;/strong&gt; framework, bringing countless surprises to users. Unfortunately, we, the 1%, still lost in market.&lt;/p&gt;</description></item><item><title>Deploy Moonglade Blog System Manually on Linux Server</title><link>https://martinphysics.club/posts/wp-100007/</link><pubDate>Sun, 01 Sep 2024 08:05:26 +0000</pubDate><guid>https://martinphysics.club/posts/wp-100007/</guid><description>&lt;h2 id="beginning"&gt;&lt;strong&gt;Beginning&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Hello there! Recently, I&amp;rsquo;ve been thinking about moving my blog system from WordPress/GitHub Pages to a more reliable environment. My friend &lt;a href="https://edi.wang" title="Edi Wang's Blog"&gt;Edi Wang&lt;/a&gt; mentioned that his &lt;a href="https://github.com/EdiWang/Moonglade"&gt;Moonglade Blog System&lt;/a&gt; can be deployed without Azure, and I&amp;rsquo;ve been interested in his blog system for a long time. So, I decided to start my 996 deployment.&lt;/p&gt;
&lt;h3 id="environment-setup"&gt;&lt;strong&gt;Environment Setup:&lt;/strong&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;A server (Windows/Linux; I chose a Vultr VPS with Ubuntu 24.04 LTS x64 for this guide)&lt;/li&gt;
&lt;li&gt;A domain with properly configured DNS pointing to your server&lt;/li&gt;
&lt;li&gt;An already set-up database(Means ctreat database,tables can be automatically creat by Moonglade)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="some-tips"&gt;&lt;strong&gt;Some Tips:&lt;/strong&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Sever chosening&lt;/strong&gt; :You can opt for an Oracle &amp;lsquo;Always Free&amp;rsquo; cloud instance for the Linux server, but the firewall settings can be quite complex.If u r looking for a cheap but reliable vps,try &lt;a href="https://www.vultr.com/?ref=8538231" title="vultr aff"&gt;vultr with my aff&lt;/a&gt;.I recommend a 1 CPU, 1 GB RAM server for $5/month, which I&amp;rsquo;ve tested and found adequate for this system.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Database &amp;amp; Domain&lt;/strong&gt; : Moonglade supports multiple database systems (Microsoft SQL Server, MySQL, PostgreSQL. Please &lt;a href="https://github.com/EdiWang/Moonglade?tab=readme-ov-file#setup-database"&gt;Check this link FYI&lt;/a&gt;). Database setup is not covered in this guide. The same applies to domain registration and DNS configuration.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Why not Dockers&lt;/strong&gt; ：as my saids in title,&lt;strong&gt;an reliable environment&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Building Soucre Code&lt;/strong&gt; : Using the &lt;a href="https://github.com/EdiWang/Moonglade/releases"&gt;Release Version&lt;/a&gt; is highly recommended;  avoid using the master branch.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="setp-to-setp-deployment"&gt;Setp to setp deployment&lt;/h2&gt;
&lt;hr&gt;
&lt;h3 id="get-code-and-build-project"&gt;Get code and Build project&lt;/h3&gt;
&lt;p&gt;download the latest &amp;ldquo;Source code(zip)&amp;rdquo; in &lt;a href="https://github.com/EdiWang/Moonglade/releases"&gt;https://github.com/EdiWang/Moonglade/releases&lt;/a&gt; in a Linux/Windows environment.&lt;strong&gt;I&lt;/strong&gt; &lt;strong&gt;strongly recommend&lt;/strong&gt; that you start &lt;strong&gt;compiling from the source code&lt;/strong&gt;. Because every time I use the version compiled by github, strange problems will occur.&lt;/p&gt;</description></item><item><title>使用.Net搭配EF Core记录你城市的天气</title><link>https://martinphysics.club/posts/wp-100008/</link><pubDate>Fri, 08 Dec 2023 21:09:08 +0000</pubDate><guid>https://martinphysics.club/posts/wp-100008/</guid><description>&lt;h2 id="项目简述"&gt;项目简述&lt;/h2&gt;
&lt;p&gt;这个项目是我在学习.Net Core编程的时候用到的简单例子，整体就是通过Get请求获取某地区的天气信息，经过json反向序列化后写入到数据库中存储起来。通过.net6的EntityFramework我们可以很优雅地为这个小项目进行CodeFirst的设计（沿用杨中科老师的一个观点：“关系型数据库对程序员来讲只是一个存放数据模型的媒介，理想状态下程序员不用关心数据库的操作。”）这个项目将会用EntityFramework进行数据库的CURD操作，任务目标：&lt;/p&gt;</description></item></channel></rss>