<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>编程疑难杂症 &#8211; 岁月细碎点滴快查</title>
	<atom:link href="https://blog.mutadecheng.com/category/%e7%bc%96%e7%a8%8b%e7%96%91%e9%9a%be%e6%9d%82%e7%97%87/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.mutadecheng.com</link>
	<description></description>
	<lastBuildDate>Sat, 25 Oct 2025 08:12:56 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Blazor项目编译Docker问题汇总</title>
		<link>https://blog.mutadecheng.com/2025/10/25/blazor%e9%a1%b9%e7%9b%ae%e7%bc%96%e8%af%91docker%e9%97%ae%e9%a2%98%e6%b1%87%e6%80%bb/</link>
					<comments>https://blog.mutadecheng.com/2025/10/25/blazor%e9%a1%b9%e7%9b%ae%e7%bc%96%e8%af%91docker%e9%97%ae%e9%a2%98%e6%b1%87%e6%80%bb/#respond</comments>
		
		<dc:creator><![CDATA[木它]]></dc:creator>
		<pubDate>Sat, 25 Oct 2025 08:12:55 +0000</pubDate>
				<category><![CDATA[Blazor]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[编程疑难杂症]]></category>
		<guid isPermaLink="false">https://blog.mutadecheng.com/?p=403</guid>

					<description><![CDATA[1.Debug可以但是编译时候报语法错误找不到某些函数 答: 有概率是window下blazor文件格式不对, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list"></ul>



<h2 class="wp-block-heading">1.Debug可以但是编译时候报语法错误找不到某些函数</h2>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="error CS0103: The name 'xxx' does not exist in the current context
error CS1002: ; expected
error CS1513: } expected
error: File not found
error: Invalid character in source file" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">error</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">CS0103:</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">The</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">name</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;xxx&#39;</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">does</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">not</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">exist</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">in</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">the</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">current</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">context</span></span>
<span class="line"><span style="color: #DCDCAA">error</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">CS1002:</span><span style="color: #D4D4D4"> ; </span><span style="color: #DCDCAA">expected</span></span>
<span class="line"><span style="color: #DCDCAA">error</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">CS1513:</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">}</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">expected</span></span>
<span class="line"><span style="color: #DCDCAA">error:</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">File</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">not</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">found</span></span>
<span class="line"><span style="color: #DCDCAA">error:</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Invalid</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">character</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">in</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">source</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">file</span></span></code></pre></div>



<p>答: 有概率是window下blazor文件格式不对,主要体现在<strong>换行符格式</strong>（Windows是CRLF，Linux是LF）导致编译/语法错误、找不到某些函数等异常, 需要<strong>统一格式和编码</strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mutadecheng.com/2025/10/25/blazor%e9%a1%b9%e7%9b%ae%e7%bc%96%e8%af%91docker%e9%97%ae%e9%a2%98%e6%b1%87%e6%80%bb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
