Version Used: Microsoft.CodeAnalysis.ResxSourceGenerator 5.0.0-1.25277.114
Steps to Reproduce:
Add an EmbeddedResource item like this:
<EmbeddedResource Include="$(PlatformPath)\Utilities\Impl\DpiAwarenessResources.resx" />
Where $(PlatformPath) is set to an absolute path.
Expected Behavior:
A valid code-behind is source generated.
Actual Behavior:
The emitted file has an invalid namespace:
namespace Microsoft.VisualStudio.Utilities.E:.VS.src.Platform.Utilities.Impl
Notice how this has E: as one of the segments of the namespace.
And due to #81973 I cannot workaround this bug by simply setting the ClassName metadata.
Version Used: Microsoft.CodeAnalysis.ResxSourceGenerator 5.0.0-1.25277.114
Steps to Reproduce:
Add an
EmbeddedResourceitem like this:Where
$(PlatformPath)is set to an absolute path.Expected Behavior:
A valid code-behind is source generated.
Actual Behavior:
The emitted file has an invalid namespace:
Notice how this has
E:as one of the segments of the namespace.And due to #81973 I cannot workaround this bug by simply setting the
ClassNamemetadata.