Created
March 13, 2023 15:17
-
-
Save Infarh/0b0c48740b7ca018e51d6d974bca15ab to your computer and use it in GitHub Desktop.
Задание имени ресурсу в .csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assembly = typeof(ProgramNamespace.Program).GetTypeInfo().Assembly; | |
using var resource = assembly.GetManifestResourceStream("Information.Data.xml"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<ItemGroup> | |
<EmbeddedResource Include="data.xml" LogicalName="Information.Data.xml"/> | |
</ItemGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment