Add .cs file extension to AddSource hint name
MODIFY
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
@@ -51,8 +51,8 @@ namespace WalletWasabi.Fluent
public void Execute(GeneratorExecutionContext context)
{
- context.AddSource("AccessModifier", SourceText.From(ModifierText, Encoding.UTF8));
- context.AddSource("AutoNotifyAttribute", SourceText.From(AttributeText, Encoding.UTF8));
+ context.AddSource("AccessModifier.cs", SourceText.From(ModifierText, Encoding.UTF8));
+ context.AddSource("AutoNotifyAttribute.cs", SourceText.From(AttributeText, Encoding.UTF8));
if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{

MODIFY
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
@@ -88,7 +88,7 @@ namespace WalletWasabi.Fluent
public void Execute(GeneratorExecutionContext context)
{
- context.AddSource("NavigationMetaDataAttribute", SourceText.From(AttributeText, Encoding.UTF8));
+ context.AddSource("NavigationMetaDataAttribute.cs", SourceText.From(AttributeText, Encoding.UTF8));
if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{

MODIFY
WalletWasabi.Fluent.Generators/PropertyGenerator.cs
WalletWasabi.Fluent.Generators/PropertyGenerator.cs
@@ -65,9 +65,9 @@ namespace WalletWasabi.Fluent
{
if (context.Compilation.GetTypeByMetadataName("WalletWasabi.Fluent.PropertyModifier") == null)
{
- context.AddSource("PropertyModifier", SourceText.From(ModifierText, Encoding.UTF8));
+ context.AddSource("PropertyModifier.cs", SourceText.From(ModifierText, Encoding.UTF8));
}
- context.AddSource("PropertyAttribute", SourceText.From(AttributeText, Encoding.UTF8));
+ context.AddSource("PropertyAttribute.cs", SourceText.From(AttributeText, Encoding.UTF8));
if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{

MODIFY
WalletWasabi.Fluent.Generators/StaticViewLocatorGenerator.cs
WalletWasabi.Fluent.Generators/StaticViewLocatorGenerator.cs
@@ -30,7 +30,7 @@ namespace WalletWasabi.Fluent
public void Execute(GeneratorExecutionContext context)
{
- context.AddSource("StaticViewLocatorAttribute", SourceText.From(AttributeText, Encoding.UTF8));
+ context.AddSource("StaticViewLocatorAttribute.cs", SourceText.From(AttributeText, Encoding.UTF8));
if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{

Add .cs file extension to AddSource hint name