fix Res Link

This commit is contained in:
Aigio Liu
2021-07-31 20:09:03 +08:00
parent d6a0dff432
commit 7fd234802e
12 changed files with 134 additions and 120 deletions
@@ -45,10 +45,10 @@
<ProjectReference Include="..\ST.Client.Desktop\ST.Client.Desktop.csproj" />
</ItemGroup>
<!--VisualStudioAppCenterSDK namespacePrefix = "System.Application.Resources."-->
<ItemGroup Condition="'$(Configuration)'=='Debug' And Exists('$(MSBuildProjectDirectory)\..\..\appcenter-secret-debug.pfx')">
<EmbeddedResource Include="..\..\appcenter-secret-debug.pfx" Link="Resources\7EE83DD3" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Release' And Exists('$(MSBuildProjectDirectory)\..\..\appcenter-secret-release.pfx')">
<EmbeddedResource Include="..\..\appcenter-secret-release.pfx" Link="Resources\0794704F" />
</ItemGroup>
@@ -47,7 +47,7 @@ namespace System.Application
{
var assembly = typeof(VisualStudioAppCenterSDK).Assembly;
const string namespacePrefix = "System.Application.Resources.";
Stream? func(string x) => assembly.GetManifestResourceStream(x);
Stream? func(string x) => assembly!.GetManifestResourceStream(x);
var r = GetResValue(func,
#if XAMARIN_MAC || MONO_MAC || MAC
"appcenter-secret-mac",