You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NET Core 3.0.0 - incorrect embedded resource name if resource and code file names differ only by extension in the same folder
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="MyCsFile.xml" />
</ItemGroup>
</Project>
// in file MyCsFile.cs
namespace NetConsoleApp1
{
public class FirstClassInTheCsFile
{
}
}
// Program.cs
using System;
namespace NetConsoleApp1
{
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine(typeof(FirstClassInTheCsFile).Assembly.GetManifestResourceNames()[0]);
}
}
}
Output:
NetConsoleApp1.FirstClassInTheCsFile
Expected:
NetConsoleApp1.MyCsFile.xml
Observed: after cs file or xml file name has been changed just starting the app in debug mode does not build the change into the binaries. Rebuild does.
The text was updated successfully, but these errors were encountered:
NET Core 3.0.0 - incorrect embedded resource name if resource and code file names differ only by extension in the same folder
Output:
Expected:
Observed: after cs file or xml file name has been changed just starting the app in debug mode does not build the change into the binaries. Rebuild does.
The text was updated successfully, but these errors were encountered: