Skip to content

Commit 7035b75

Browse files
committed
Preparing for scripted execution
1 parent 9883ab7 commit 7035b75

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CMWTAT_DIGITAL/CMWTAT_DIGITAL.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@
194194
<Content Include="Res\ClipUp.exe" />
195195
</ItemGroup>
196196
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
197-
<Import Project="..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets" Condition="Exists('..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets')" />
198197
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
199198
<PropertyGroup>
200199
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
201200
</PropertyGroup>
202-
<Error Condition="!Exists('..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets'))" />
203201
<Error Condition="!Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" />
204202
<Error Condition="!Exists('..\packages\Fody.6.9.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.9.1\build\Fody.targets'))" />
203+
<Error Condition="!Exists('..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets'))" />
205204
</Target>
206205
<Import Project="..\packages\Fody.6.9.1\build\Fody.targets" Condition="Exists('..\packages\Fody.6.9.1\build\Fody.targets')" />
206+
<Import Project="..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets" Condition="Exists('..\packages\MaterialDesignThemes.4.5.0\build\MaterialDesignThemes.targets')" />
207207
</Project>

CMWTAT_DIGITAL/MainWindow.xaml.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void LoadLang(string LangName = Constants.DefaultLang)
145145
try
146146
{
147147
//根据名字载入语言文件
148-
langRd = System.Windows.Application.LoadComponent(new Uri(@"Lang\" + LangName + ".xaml", UriKind.Relative)) as ResourceDictionary;
148+
langRd = System.Windows.Application.LoadComponent(new Uri(@"/CMWTAT_DIGITAL;component/Lang\" + LangName + ".xaml", UriKind.Relative)) as ResourceDictionary;
149149
NowLang = LangName;
150150
if (LangName != Constants.DefaultLang)
151151
{
@@ -158,7 +158,7 @@ public void LoadLang(string LangName = Constants.DefaultLang)
158158
{
159159
NotSupportLang = true;
160160
//System.Windows.MessageBox.Show("The " + LangName + " language pack was not found and the language was set to English.\nIf you want to use Chinese as the interface language, click the \"Language\" button to switch.");
161-
langRd = System.Windows.Application.LoadComponent(new Uri(@"Lang\" + Constants.DefaultLang + ".xaml", UriKind.Relative)) as ResourceDictionary;
161+
langRd = System.Windows.Application.LoadComponent(new Uri(@"/CMWTAT_DIGITAL;component/Lang\" + Constants.DefaultLang + ".xaml", UriKind.Relative)) as ResourceDictionary;
162162
NowLang = Constants.DefaultLang;
163163
}
164164

CMWTAT_DIGITAL/Properties/Settings.Designer.cs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)