mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Embedded resources of referenced project #299
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Silver-Rabbit on GitHub (Apr 3, 2019).
I have set up an Electron.NET app with a reference to another project.
This project contains embedded resource files, mainly text files containing SQL queries, including a .resx file to easily access them.
When trying to access the resources in my Electron.NET application, I get the following output:
SqlQueries\List.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8
So instead of the content of the file, I get some kind of description of the embedded resources.
When using the project in a basic .NET console application without Electron.NET, it works fine.
Did I miss something or is this a bug during the compilation?
@Silver-Rabbit commented on GitHub (Apr 30, 2019):
Seems that this is a problem with the packaged msbuild of the .NET Core CLI.
See the following issues:
https://github.com/dotnet/cli/issues/7534
https://github.com/Microsoft/msbuild/issues/2221
A workaround for this problem is to use System.Reflection: