File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
67
67
private static string LoadAttributeSourceWithMetadataName ( string typeFullName )
68
68
{
69
69
string typeName = typeFullName . Split ( '.' ) . Last ( ) ;
70
- string filename = $ "CommunityToolkit.Mvvm.SourceGenerators.EmbeddedResources. { typeName } .cs";
70
+ string filename = $ "{ typeName } .cs";
71
71
72
72
Stream stream = Assembly . GetExecutingAssembly ( ) . GetManifestResourceStream ( filename ) ;
73
73
StreamReader reader = new ( stream ) ;
Original file line number Diff line number Diff line change 11
11
<ItemGroup >
12
12
<EmbeddedResource Include =" $(MSBuildThisFileDirectory)EmbeddedResources\INotifyPropertyChanged.cs" >
13
13
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
14
+ <LogicalName >INotifyPropertyChanged.cs</LogicalName >
14
15
</EmbeddedResource >
15
16
<EmbeddedResource Include =" $(MSBuildThisFileDirectory)EmbeddedResources\NotNullAttribute.cs" >
16
17
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
18
+ <LogicalName >NotNullAttribute.cs</LogicalName >
17
19
</EmbeddedResource >
18
20
<EmbeddedResource Include =" $(MSBuildThisFileDirectory)EmbeddedResources\NotNullIfNotNullAttribute.cs" >
19
21
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
22
+ <LogicalName >NotNullIfNotNullAttribute.cs</LogicalName >
20
23
</EmbeddedResource >
21
24
<EmbeddedResource Include =" $(MSBuildThisFileDirectory)EmbeddedResources\ObservableObject.cs" >
22
25
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
26
+ <LogicalName >ObservableObject.cs</LogicalName >
23
27
</EmbeddedResource >
24
28
<EmbeddedResource Include =" $(MSBuildThisFileDirectory)EmbeddedResources\ObservableRecipient.cs" >
25
29
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
30
+ <LogicalName >ObservableRecipient.cs</LogicalName >
26
31
</EmbeddedResource >
27
32
</ItemGroup >
28
33
<ItemGroup >
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ internal static class Execute
31
31
public static ClassDeclarationSyntax LoadClassDeclaration ( string attributeType )
32
32
{
33
33
string attributeTypeName = attributeType . Split ( '.' ) . Last ( ) ;
34
- string filename = $ "CommunityToolkit.Mvvm.SourceGenerators.EmbeddedResources. { attributeTypeName . Replace ( "Attribute" , string . Empty ) } .cs";
34
+ string filename = $ "{ attributeTypeName . Replace ( "Attribute" , string . Empty ) } .cs";
35
35
36
36
using Stream stream = Assembly . GetExecutingAssembly ( ) . GetManifestResourceStream ( filename ) ;
37
37
using StreamReader reader = new ( stream ) ;
You can’t perform that action at this time.
0 commit comments